erchristopher
10 years agoOccasional Contributor
Sending variable to another script and getting result
I have common SQL script to validate ID. I would like to modularize. i have below idea but not sure what i need to use to accomplish.
[Both suite are under same project]
CommonTestSuite > TestCase > TestStep >
Step#1 POST REST request and gets ID as response
Step#2 JSON Slurper gets response ID and sends to CORE test suite for validation
Step#2 Based on the result from CORE test suite, assertion is passed or failed
CORESUITE > TestCase > TestStep >
Step#1 gets the ID and queries the ID in DB
Step#2 sends the result to the calling script
Please share any better idea to keep common SQL functions separate and calling them whenever required.
[Both suite are under same project]
CommonTestSuite > TestCase > TestStep >
Step#1 POST REST request and gets ID as response
Step#2 JSON Slurper gets response ID and sends to CORE test suite for validation
Step#2 Based on the result from CORE test suite, assertion is passed or failed
CORESUITE > TestCase > TestStep >
Step#1 gets the ID and queries the ID in DB
Step#2 sends the result to the calling script
Please share any better idea to keep common SQL functions separate and calling them whenever required.