How many rows in your CSV file do you have in the first test case?
It looks like two rows failed and only the message for the first row is
available. Are both rows supposed to fail? I hope to add a link to the
state of the application for each failure in the future for test cases
that fail multiple times, once for each row in the CSV file.
Quoting Robin.Spark@...:
> Christian,
>
> I think I've found a few bugs here...
>
> If I put the Tutorial-ValidLogin Test-case (which fails) above the
> Tutorial-InvalidLogin Test-case (which passes) in the XML file, the
> Tutorial-InvalidLogin Test-case doesn't run. When the first test-case
> fails, the second doesn't get executed - is this supposed to be like
> this?
>
> #:
> Result:
> Test Case:
> Execution Time:
> Run:
> Failed:
> Passed:
> Message:
> 1
> ?
> Tutorial-ValidLogin
> 0h 0m 5.141s
> 2
> 2
> 0%
>
>
file:/C:/DATA/javadevelopment/jameleon/tst/xml/tutorial/devTestCases-DataDriven.xml:9:-1:
>
> <jmln:jameleon-tutorial-page-validator>
> junit.framework.ComparisonFailure:
>
>
>
> assertTitleEquals
> expected:<...Welcome> but was:<...Invalid Username and/or Password>
> 2
> ?
> JUnitTest
> 0h 0m 0.078s
> 1
> 0
> 100%
>
> 3
> ?
> JUnitTest
> 0h 0m 0.109s
> 1
> 0
> 100%
>
>
>
>
> Also, if some of the logins are valid in the Tutorial-ValidLogin.csv
> file,
> (as below), ALL 5 test results are reported as having failed - which is
> not true.
>
> "loginUsername","loginPassword"
> "validUser2","validPassword2"
> "validUser3","validPassword2"
> "validUser5","validPassword2"
> "invalidUser1","validPassword1"
> "invalidUser4","validPassword2"
>
> Log session start time Tue Nov 04 11:03:53 WST 2003
>
>
> #:
> Result:
> Test Case:
> Execution Time:
> Run:
> Failed:
> Passed:
> Message:
> 1
> ?
> Tutorial-InvalidLogin
> 0h 0m 5.500s
> 5
> 0
> 100%
>
> 2
> ?
> Tutorial-ValidLogin
> 0h 0m 0.985s
> 5
> 5
> 0%
>
>
file:/C:/DATA/javadevelopment/jameleon/tst/xml/tutorial/devTestCases-DataDriven.xml:20:-1:
>
> <jmln:jameleon-tutorial-page-validator>
> junit.framework.ComparisonFailure:
>
>
>
> assertTitleEquals
> expected:<...Welcome> but was:<...Invalid Username and/or Password>
> 3
> ?
> Navigate To Start Page
> 0h 0m 0.047s
> 1
> 0
> 100%
>
> 4
> ?
> JUnitTest
> 0h 0m 0.062s
> 1
> 0
> 100%
>
>
>
> regards,
> Robin
>
|