How to get input for Assertion Step
Hi Team,
Below is the scenario.
Test1 : callGetNames
Test2: CallDatabase
Test3: AssertDBAgainstNamesResponse
How do i get the Test1 response in Test3
Regards
Udaya
Comments
-
Hi Parasofttoudaya
use DataBank tool.
Depending on the type of response from Test 1 you can use XML DataBank, Text DataBank, or JSON DataBank.
Right-click on Test 1 and add output to get of the list of available tools0 -
Hi Irene,
Using databank you will be able to extract the response. How do you pass that response as input to my 3rd Test, which is assertion tool.
0 -
Any update on this??
0 -
Tool configuration fields usually have a combo box that lets you chose a Fixed value or a Parameterized value. Next to the field you want to configure, you would chose Parameterized in the first combo box and then the name of the column from the second combo box. You can also reference columns directly in any Fixed fields as ${column_name}
If you need to get a column value from a scripted field or Extension tool, then you can call
com.parasoft.api.ScriptingContext.getValue(String dataSourceName, String columnName)
. For data bank columns, pass "Generated Data Source" for the dataSourceName argument.0