Forum Discussion
SmartBear_Suppo
11 years agoSmartBear Alumni (Retired)
Hi,
Sorry for the confusion, I checked the uploaded project,
I assume that the Test case property number at first comes from Database then in Datagen you add one to the number, then property transfer for the request.
I would suggest you to try this,
Create a TestCase property MSISDN
Instead of JDBCRequestTestStep, create a JDBC Datasource (create the property Number)
Create a groovy script TestStep,
//Get the value from Datasource
Create a DataSource loop (JDBC Datasource > groovy script TestStep)
Request execute
This should work. I tried this on a grid DataSource and this works.
Thanks,
Jeshtha
Sorry for the confusion, I checked the uploaded project,
I assume that the Test case property number at first comes from Database then in Datagen you add one to the number, then property transfer for the request.
I would suggest you to try this,
Create a TestCase property MSISDN
Instead of JDBCRequestTestStep, create a JDBC Datasource (create the property Number)
Create a groovy script TestStep,
//Get the value from Datasource
def number = context.expand( '${DataSource#number}' )
def var1 = Long.parseLong(number) + 1
//set the TestCase property
testRunner.testCase.setPropertyValue("MSISDN", var1)
Create a DataSource loop (JDBC Datasource > groovy script TestStep)
Request execute
This should work. I tried this on a grid DataSource and this works.
Thanks,
Jeshtha
Related Content
Recent Discussions
- 19 hours ago
- 17 days ago