I have some problems with updating project properties SoapUI when I tested my project with "TestRunner launch" Run
There are two TestSuites my trial is the first step to all Testkas - Groovy script to script the same in all testcases:
int curIdAndKey = new Integer (testRunner. TestCase.testSuite.project.getPropertyValue ("IdAndKey")) Boolean curBool = New Boolean (testRunner.testCase.testSuite .project.getPropertyValue ("bool") integer curTestsCount = new integer (testRunner.testCase.testSuite.project.getPropertyValue ( "countOfTests")) if (curBool == false) {curBool = true curIdAndKey = curIdAndKey * curTestsCount} else {CurIdAndKey + = 1} testRunner.testCase.setPropertyValue ( "aIdCase", curIdAndKey.toString ()) testRunner.testcase.testSuite .project.setPropertyValue ("bool", curBool toString ()) testRunner.testcase.testSuite.project.setPropertyValue ( "IdAndKey", curIdAndKey.toString ()) log.info "current number: [$ curIdAndKey]" log.info "current bool: [$ curBool]"
and I have project properties: "id and k" and "boole" when i run single testcase - the project properties are updated, but when i run all my tests, they do not update (I only see the update in the log, but not in the properties). Please help me.
Launch, under the Basic tab options on TestRunner window: "Save Later" Select this option and press launch. You will see that the -S
switch (discussed in the linked duplicate post) has been added to the command line, which is shown on the next window.
There is additional discussion, old though, in.
Comments
Post a Comment