Contributions
How to set a proxy automatically
I activate a first testcase1 ( Project1) without a proxy settings but for the second testcase2 ( Project2) I have to set a proxy settings. Now I do it manually but I would like to do it automatically. How should I to do it? Is it possible?13 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.1KViews0likes0CommentsRe: Two or more loops in the groovy script
def licz1 = context.expand( '${AdresyProduktowKlienta_Get - TEST 1#Response#declare namespace ns1=\'http://......\'; count(//ns1:AdresyProduktowKlienta_GetRs[1]/ns1:grupaKlienta)}' ) as Integer def licz2 = context.expand( '${AdresyProduktowKlienta_Get - TEST 1#Response#declare namespace ns1=\'http://......\'; count(//ns1:AdresyProduktowKlienta_GetRs[1]/ns1:grupaKlienta[1]/ns1:umowaIdOut)}' ) as Integer if( !context.hasProperty("myCounter1") ){ context.setProperty("myCounter1", 0) } if( !context.hasProperty("myCounter2") ){ context.setProperty("myCounter2", 0) } def myCounter1 = context.getCounter("myCounter1") def myCounter2 = context.getCounter("myCounter2") myCounter1 ++ myCounter2 ++ context.setProperty("myCounter1", myCounter1 ) context.setProperty("myCounter2", myCounter2 )13 years agoPlace ReadyAPI QuestionsReadyAPI Questions3.3KViews0likes0CommentsTwo or more loops in the groovy script
Hello, I am new in soapUI therefore I need Your help. How can I create two or more loops in the groovy script? For now I receive from test response "a tree" with a three main branches. Every main branches consist of twenty smaller branches with different information. I would like rewrite it to the file. For now I use context.loopindex and I would like to have two or more variables but when I declare new variable in the groovy script then in the loop the value of variable is reseted. The quantity of main and smaller branches can be change always when I start a new request. Could you any ideas? If I have a three counters in the groovy script how I should return the value of counters. Now I use "result" for one counter. Maybe it is impossible. How should I solve my problem?13 years agoPlace ReadyAPI QuestionsReadyAPI Questions5KViews0likes3CommentsTwo or more loops in the groovy script
Hello, I am new in soapUI therefore I need Your help. How can I create two or more loops in the groovy script? For now I recive from test response a tree with a three main branches. Every main branches consist of twenty smaller branches with different information. I would like rewrite it to the file. For now I use context.loopindex and I would like to have two or more variables but when I declare new variable in the groovy script then in the loop the value of variable is reseted. The quantity of main and smaller branches can be change always when I start a new request. Could you any ideas? I would like to add next question: If I have a three counters in the groovy script how I should return the value of counters. Now I use "result" for one counter.1.2KViews0likes1Comment