Making Config file active in Subprocess will be applied to Main testcase?
book
Article ID: 92371
calendar_today
Updated On:
Products
CA Application TestCA Continuous Application Insight (PathFinder)Service Virtualization
Issue/Introduction
Sometimes, we will make different config file as active using bean shellcode in the Subprocess test case and the changes are not applied to the main test case.
Making Config file active in Subprocess will be applied to the Main test case?
Environment
All supported DevTest environments.
Cause
N/A
Resolution
Changes in the Subprocess test case will not be applied to the main test case automatically. If it is related to the properties then they can be returned in the Subprocess and Main test case can use it.
If the BeanShell code like "Configuration.setConfiguration(testExec.getTestCase(), "/Configs/Test.config");”is used to change the active config file then it is not applied to the Main test case. It will be applied only to the Subprocess test case.
Additional Information
Using SharedModelMap might change the active config.