Forum Discussion
pradeepbishnoi
14 years agoContributor
Hi,
the scenario what you have mentioned would be used to just verify the status code of your response with DataSource values.
Yes, you can do it.
Just use the expression
def tempVar = context.expand( '${#DataSource#PropertyName}' )
and use tempVar for comparison purpose.
To put the same, you can right click in the script assertion window (where u write code) and use GetData... from the context menu. It will automatically generate the code for you.
Hope this will help
~~ Pradeep Bishnoi ~~
the scenario what you have mentioned would be used to just verify the status code of your response with DataSource values.
Yes, you can do it.
Just use the expression
def tempVar = context.expand( '${#DataSource#PropertyName}' )
and use tempVar for comparison purpose.
To put the same, you can right click in the script assertion window (where u write code) and use GetData... from the context menu. It will automatically generate the code for you.
Hope this will help
~~ Pradeep Bishnoi ~~