How to chain/reference/reuse TST files in CTP
I was wondering if it was possible to chain/reference TST files within CTP. I have looked through the forum and documentation, but unsure if this is possible or not as I have not found anything matching my searches (Reference TST, Call TST, Reuse TST).
Scenario:
For something like a login request that is needed by a number of other TST files, can we simply create a single login TST file, and call that TST from a second TST, and receive the results of the first test, before proceeding with the current one?
Simple Example:
login.tst - gets login info or actually logs user into website, depending on tst type.
change_password.tst
Call to login.tst to get user reference data
Capture user data
Post to change password for user
Call to Call to login.tst to get user reference data using new login info
Verify user data same as initial request (except password, if returned in response)
Comments
-
Chaining TST files is possible by creating a Reference Test Suite in one TST that points to another TST. Reference test suites are documented in the User's Guide at https://docs.parasoft.com/display/SOAVIRT9107CTP313/Reusing+and+Modularizing+Test+Suites+for+End-to-end+Testing#ReusingandModularizingTestSuitesforEnd-to-endTesting-UsingTestSuiteReferencesUsingTestSuiteReferences
CTP does not allow the creation of Reference Test Suites. You will need to use SOAtest desktop to create the Reference Test Suites and then upload the TST files to CTP. Then CTP will display the reference test suites on the API Testing page and execute the referenced test steps accordingly.
0 -
thank you. I was sure it was possible, just couldn't find it
0