Forum Discussion

kolersa's avatar
kolersa
Contributor
10 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?

  • nmrao's avatar
    nmrao
    Icon for Champion Level 2 rankChampion Level 2
    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
        Icon for Champion Level 2 rankChampion Level 2
        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?