Liberty_Informa
12 years agoRegular Contributor
[Resolved (walkaround)] ProjectPath issue
Hi
This is something urgent!
I have two soapUI projects. Name mentioned here are just for understanding purpose
1. ExampleSoapUI
2. CallingSoapUI
ExampleSoapUI is a normal soapUI project created from the wsdl containing 1 testsuite and 16 test cases.
CallingSoapUI has been created blank. It does not contain any wsdl or testSuite. The purpose of this project is to call many more soapUI projects like "ExampleSoapUI" in it's load script.
ExampleSoapUI is located at:
D:\Workspaces\Workspaces1\ContinuousTests\soapui\DomainServices\Admin\ExampleSoapUI-soapui-project.xml
CallingSoapUI is located at:
D:\Workspaces\Workspaces1\ContinuousTests\soapui\ContainerServices\Container1\CallingSoapUI-soapui-project.xml
I retrieve projectPath value in the ExampleSoapUI's load script using below code:
When I run "ExampleSoapUI", I get value correctly which is nothing but D:\Workspaces\Workspaces1\ContinuousTests\soapui\DomainServices\Admin
When I run "CallingSoapUI" soapUI project, it calls "ExampleSoapUI" project however the projectPath value which I see in the script.log is:
D:\Workspaces\Workspaces1\ContinuousTests\soapui\ContainerServices
Why it is not D:\Workspaces\Workspaces1\ContinuousTests\soapui\ContainerServices\Container1 ?
Why "\Container1" is missing when I run "ExampleSoapUI" from "CallingSoapUI" ?
I think it has to do with the context object.
What should I do so that I get correct projectPath value when I call "ExampleSoapUI" from "CallingSoapUI"?
This is a major road block while working on test automation framework. Can you please tell us the alternative or guide us what are we doing wrong here?
This is something urgent!
I have two soapUI projects. Name mentioned here are just for understanding purpose
1. ExampleSoapUI
2. CallingSoapUI
ExampleSoapUI is a normal soapUI project created from the wsdl containing 1 testsuite and 16 test cases.
CallingSoapUI has been created blank. It does not contain any wsdl or testSuite. The purpose of this project is to call many more soapUI projects like "ExampleSoapUI" in it's load script.
ExampleSoapUI is located at:
D:\Workspaces\Workspaces1\ContinuousTests\soapui\DomainServices\Admin\ExampleSoapUI-soapui-project.xml
CallingSoapUI is located at:
D:\Workspaces\Workspaces1\ContinuousTests\soapui\ContainerServices\Container1\CallingSoapUI-soapui-project.xml
I retrieve projectPath value in the ExampleSoapUI's load script using below code:
groovyUtils = new com.eviware.soapui.support.GroovyUtils(context)
projectPath = groovyUtils.projectPath
When I run "ExampleSoapUI", I get value correctly which is nothing but D:\Workspaces\Workspaces1\ContinuousTests\soapui\DomainServices\Admin
When I run "CallingSoapUI" soapUI project, it calls "ExampleSoapUI" project however the projectPath value which I see in the script.log is:
D:\Workspaces\Workspaces1\ContinuousTests\soapui\ContainerServices
Why it is not D:\Workspaces\Workspaces1\ContinuousTests\soapui\ContainerServices\Container1 ?
Why "\Container1" is missing when I run "ExampleSoapUI" from "CallingSoapUI" ?
I think it has to do with the context object.
What should I do so that I get correct projectPath value when I call "ExampleSoapUI" from "CallingSoapUI"?
This is a major road block while working on test automation framework. Can you please tell us the alternative or guide us what are we doing wrong here?