cucumber file name:UMB_001
Gerkhin Code in cucumber file:
@Umbrella-UMB_001
Feature:sdhfgdfgtwueiytwi
Scenario: Verifying policy information returned
Given the user is on the policy details page
And Certified Acts of Terrorism Rating Factor is pre-filled as 1% and
grayed out
_________________
Feature file line considered for test: And Certified Acts of Terrorism
Rating Factor is pre-filled as 1% and grayed out
Step definition in product_details_steps.rb step file:
Given /^certified acts of terrorism rating factor is pre\-filled as
xyz and grayed out$/i do
waiter.wait_until
{ product_details_page.certified_acts_of_terrorism_cell.exist? }
product_details_page.certified_acts_of_terrorism_cell.innerText.should
== "xyz"
product_details_page.certified_acts_of_terrorism_cell.document.currentstyle.color.should
== "#8d8d8d"
end
Object property defined in the product_details_page file:
element(:certified_acts_of_terrorism_cell)
{iframe.cell(:class=>"dataValueRead",:index=>2)}
Expected Path and line number of the above mentioned Step definition :
lib/steps/product_details_steps.rb:8708
After executing the cucumber file, Actual Path and line number of Step
definition seen in HTML file : lib/steps/product_details_steps.rb:516
Code present in line 516 :
'516end
517
518#RST
519# Step triggers AJAX CAll with 2 XML downloads
520When /^the user selects \$(\d{3,}) from Location deductible drop
down box$/i do |option|
Though the execution is happening fine, the line number in step file
and result file are not same. As explained above the expected line
number is 8708, but the one shown in result file is 516 which has a
different code.
Please let me know for any queries.
On Jun 28, 2:37 pm, Željko Filipin <[email protected]>
wrote:
> On Tue, Jun 28, 2011 at 11:17 AM, Deep <[email protected]> wrote:
> > I have a step file (SF) which contains more than 6000 lines. I execute
> > a feature file line that executes a step definition (in line 4500) in
> > step file SF successfully. However in HTML result file it is shown as
> > line 330 instead of line 4500.
>
> We can not read your mind. Show us relevant code.
>
> Željko
> --
> watir.com - community manager
> watir.com/book - author
> watirpodcast.com - host
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]