czyzyk29
12 years agoContributor
test runner problem Soap ui pro
Hi,
I have problem with play test in test runner -> jenkins.
I have project with some enviroments
- trunk
- dev
and with some data base JDBC, diffrent for trunk and diffrent for dev:
- I open Soap UI change on project env = trunk
- play TC and it's OK
- change project env = dev
- play TC and it's OK
- have change on project env = trunk
- I try play with test runner (lauch testrunnef from soap ui) but in Overrides i change env = dev
- test Falult because data source don't change data base, the take values from trunk
I have soap ui pro 5.0, and have envent to refresch enviroment and data connection like this:
This functionality is importent when i whan to play test on different enviroments and bases in jenkins from testrunner for example.
Its look's like u can have 1 poroject for 1 data base.
Unfortunately I can't sent may project.
Please help
I have problem with play test in test runner -> jenkins.
I have project with some enviroments
- trunk
- dev
and with some data base JDBC, diffrent for trunk and diffrent for dev:
- I open Soap UI change on project env = trunk
- play TC and it's OK
- change project env = dev
- play TC and it's OK
- have change on project env = trunk
- I try play with test runner (lauch testrunnef from soap ui) but in Overrides i change env = dev
- test Falult because data source don't change data base, the take values from trunk
I have soap ui pro 5.0, and have envent to refresch enviroment and data connection like this:
def databaseName = context.testCase.testSuite.project.activeEnvironment.databaseConnectionContainer.getDatabaseConnectionAt(0).getName()
def connectionString = context.testCase.testSuite.project.activeEnvironment.databaseConnectionContainer.getDatabaseConnectionByName(databaseName).getConnectionString()
for(testStep in context.testCase.getTestStepList())
{
if(testStep instanceof com.eviware.soapui.impl.wsdl.teststeps.WsdlDataSourceTestStep)
{
if(!(testStep.getDataSource() instanceof com.eviware.soapui.impl.wsdl.teststeps.datasource.GridDataSource))
{
if(testStep.disabled == false)
{
testStep.getDataSource().databaseConnection.setConnectionString(connectionString)
}
}
}
}
This functionality is importent when i whan to play test on different enviroments and bases in jenkins from testrunner for example.
Its look's like u can have 1 poroject for 1 data base.
Unfortunately I can't sent may project.
Please help