Forum Discussion

newbie's avatar
newbie
New Contributor
8 years ago

Test Step Pass Individually but fails when run in Test Case

I created a test case that's testing for some business rules.

 

1st step is to run the application which returns the workid

2nd step use the workid as a property then property transfer

3rd created a datasource and connected to the database

4th created a JDBC request

 

The problem I'm facing is that the JDBC request always fails when I run the test case. However, when I run the test step individually then it passes without any problem.

 

The failed result: 

  • The XPathContains assertion failed for the following path: [//Results[1]/ResultSet[1]/Row[1]/RULE[1]]. Expected value: [BACKPM]; Actual value: [].

3 Replies

    • newbie's avatar
      newbie
      New Contributor

      I tried the Step by Step approach and it passed twice. It passed the first time and another time but failed the rest. 

       

      Edit: I got a response when I run the query in the window itself but when I use Build Query with the same query nothing shows up. What Name and Value do I need to add in the SQL Preview? I have the query below that box.