Newbie working with fluid table

J

Joe Pizzanley

I'm slowly and excitedly learning to do automated testing via Ruby. I
have a webpage with details for a specific video file stored. I can
check the details for correctness, but my problem is that not all the
details will display every time. This re-numbers the table rows and I
don't know how to adapt to this.

For example, this:
def test_verifyData
verify(($ie.table:)index, 4)[1][2].text ==
'Movie.mpg'),message="wrong name")
verify(($ie.table:)index, 4)[2][2].text == 'VID0817'),message="wrong
ID")
verify(($ie.table:)index, 4)[3][2].text == '02/28/08'),message="wrong
sent date")
verify(($ie.table:)index, 4)[4][2].text == 'mp2'), message="wrong
filetype")
end

can become this:
def test_verifyData
verify(($ie.table:)index, 4)[1][2].text ==
'Movie.mpg'),message="wrong name")
verify(($ie.table:)index, 4)[2][2].text == 'VID0817'),message="wrong
ID")
verify(($ie.table:)index, 4)[3][2].text == 'mp2'),message="wrong
filetype")
end

i.e., "date sent" in row 3 isn't displayed and now file type which was
row 4 becomes row 3.

thanks!
 
J

Joe Pizzanley

Reposting - hoping to get some helpful ideas.
I'm slowly and excitedly learning to do automated testing via Ruby. I
have a webpage with details for a specific video file stored. I can
check the details for correctness, but my problem is that not all the
details will display every time. This re-numbers the table rows and I
don't know how to adapt to this.

For example, this:
def test_verifyData
verify(($ie.table:)index, 4)[1][2].text =='Movie.mpg'),message="wrong
name")
verify(($ie.table:)index, 4)[2][2].text == 'VID0817'),message="wrong
ID")
verify(($ie.table:)index, 4)[3][2].text == '02/28/08'),message="wrong
sent date")
verify(($ie.table:)index, 4)[4][2].text == 'mp2'), message="wrong
filetype")
end

can become this:
def test_verifyData
verify(($ie.table:)index, 4)[1][2].text =='Movie.mpg'),message="wrong
name")
verify(($ie.table:)index, 4)[2][2].text == 'VID0817'),message="wrong
ID")
verify(($ie.table:)index, 4)[3][2].text == 'mp2'),message="wrong
filetype")
end

i.e., "date sent" in row 3 isn't displayed and now file type which was
row 4 becomes row 3.

thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top