Forum Discussion

kolersa's avatar
kolersa
Contributor
9 years ago

HOW USE RESULT FROM DATASOURCE IN GROOVY AND HOW USE SQL RESULT FOR ASSERTETION IN OTHER STEPS?

How use result from datasource in groovy (I use Dataconnection) and how use sql result for assertetion in other steps? Could I convert result in Json?

4 Replies

  • nmrao's avatar
    nmrao
    Champion Level 3
    Can you please elaborate the use case more clear?
    • kolersa's avatar
      kolersa
      Contributor

      The problem is that I get row as result in datasourse, and I don't know how to address to it further..I attached screen.

      • nmrao's avatar
        nmrao
        Champion Level 3
        Not sure why you wanted to convert it to json? When the result is received from sql, it can be accessed thru xpaths. Any thing specific that needs to be done further?