Kevin_Slade
15 years agoContributor
How do I over-ride Definition Url when using testrunner
I have a large test suite that has been developed against one server but when I attempt to use testrunner run the test suite against a second server when the first server is no longer available, I am getting errors since testrunner is attempting to access to original server.
Using the GUI this does not appear to occur and no problems are seen.
How can I force testrunner to use the target server as the source for the Definition URL.
This is going to occur a lot in my environment, as we have several servers that can be running quite different software at any time and the Soap server does not exist on some software systems and even when it does, the Soap versions can be very different.
The original server was ninjabox27 and it has very different software loaded now that does not have the Soap Server interface. Despite this the testrunner reports loading successfully.
Progress: 1 - Loading Definition from cache
13:24:29,993 DEBUG [AbstractDefinitionContext] Loading Definition...
13:24:30,009 DEBUG [AbstractWsdlDefinitionLoader] Returning baseInputSource [https://ninjabox27/services/fwif?wsdl]
Retrieving document at 'https://ninjabox27/services/fwif?wsdl'.
Retrieving schema at 'ninjaprobe.xsd', relative to 'https://ninjabox27/services/fwif?wsdl'.
13:24:30,080 DEBUG [AbstractWsdlDefinitionLoader] Returning latest import URI [https://ninjabox27/services/ninjaprobe.xsd]
13:24:30,123 DEBUG [WsdlInterfaceDefinition] Loaded WSDL: ok
....
13:24:30,178 INFO [SchemaUtils] Loading schema types from [https://ninjabox27/services/fwif?wsdl]
13:24:30,178 INFO [SchemaUtils] Getting schema https://ninjabox27/services/fwif?wsdl
13:24:30,187 INFO [SchemaUtils] Getting schema https://ninjabox27/services/ninjaprobe.xsd
13:24:30,420 DEBUG [AbstractDefinitionContext] Loaded Definition: ok
Many of the test assertions fail.
After I reloaded the definitions manually from the new test system appqa04 and then saved the project file, the testrunner console output is:
Progress: 1 - Loading Definition from cache
13:33:21,665 DEBUG [AbstractDefinitionContext] Loading Definition...
13:33:21,682 DEBUG [AbstractWsdlDefinitionLoader] Returning baseInputSource [https://appqa04/services/fwif?wsdl]
Retrieving document at 'https://appqa04/services/fwif?wsdl'.
Retrieving schema at 'ninjaprobe.xsd', relative to 'https://appqa04/services/fwif?wsdl'.
13:33:21,791 DEBUG [AbstractWsdlDefinitionLoader] Returning latest import URI [https://appqa04/services/ninjaprobe.xsd]
13:33:21,832 DEBUG [WsdlInterfaceDefinition] Loaded WSDL: ok
......................
13:33:21,978 INFO [SchemaUtils] Loading schema types from [https://appqa04/services/fwif?wsdl]
13:33:21,978 INFO [SchemaUtils] Getting schema https://appqa04/services/fwif?wsdl
13:33:21,985 INFO [SchemaUtils] Getting schema https://appqa04/services/ninjaprobe.xsd
13:33:22,206 DEBUG [AbstractDefinitionContext] Loaded Definition: ok
and now the test assertions succeed.
Using the GUI this does not appear to occur and no problems are seen.
How can I force testrunner to use the target server as the source for the Definition URL.
This is going to occur a lot in my environment, as we have several servers that can be running quite different software at any time and the Soap server does not exist on some software systems and even when it does, the Soap versions can be very different.
The original server was ninjabox27 and it has very different software loaded now that does not have the Soap Server interface. Despite this the testrunner reports loading successfully.
Progress: 1 - Loading Definition from cache
13:24:29,993 DEBUG [AbstractDefinitionContext] Loading Definition...
13:24:30,009 DEBUG [AbstractWsdlDefinitionLoader] Returning baseInputSource [https://ninjabox27/services/fwif?wsdl]
Retrieving document at 'https://ninjabox27/services/fwif?wsdl'.
Retrieving schema at 'ninjaprobe.xsd', relative to 'https://ninjabox27/services/fwif?wsdl'.
13:24:30,080 DEBUG [AbstractWsdlDefinitionLoader] Returning latest import URI [https://ninjabox27/services/ninjaprobe.xsd]
13:24:30,123 DEBUG [WsdlInterfaceDefinition] Loaded WSDL: ok
....
13:24:30,178 INFO [SchemaUtils] Loading schema types from [https://ninjabox27/services/fwif?wsdl]
13:24:30,178 INFO [SchemaUtils] Getting schema https://ninjabox27/services/fwif?wsdl
13:24:30,187 INFO [SchemaUtils] Getting schema https://ninjabox27/services/ninjaprobe.xsd
13:24:30,420 DEBUG [AbstractDefinitionContext] Loaded Definition: ok
Many of the test assertions fail.
After I reloaded the definitions manually from the new test system appqa04 and then saved the project file, the testrunner console output is:
Progress: 1 - Loading Definition from cache
13:33:21,665 DEBUG [AbstractDefinitionContext] Loading Definition...
13:33:21,682 DEBUG [AbstractWsdlDefinitionLoader] Returning baseInputSource [https://appqa04/services/fwif?wsdl]
Retrieving document at 'https://appqa04/services/fwif?wsdl'.
Retrieving schema at 'ninjaprobe.xsd', relative to 'https://appqa04/services/fwif?wsdl'.
13:33:21,791 DEBUG [AbstractWsdlDefinitionLoader] Returning latest import URI [https://appqa04/services/ninjaprobe.xsd]
13:33:21,832 DEBUG [WsdlInterfaceDefinition] Loaded WSDL: ok
......................
13:33:21,978 INFO [SchemaUtils] Loading schema types from [https://appqa04/services/fwif?wsdl]
13:33:21,978 INFO [SchemaUtils] Getting schema https://appqa04/services/fwif?wsdl
13:33:21,985 INFO [SchemaUtils] Getting schema https://appqa04/services/ninjaprobe.xsd
13:33:22,206 DEBUG [AbstractDefinitionContext] Loaded Definition: ok
and now the test assertions succeed.