Contributions
Re: how to read a single request from multiple requests in a xml file
Hi. I would change your initial file with data to .csv file and then did the follwing f = new File("C:\\folder1\\folder2\\propertyFile.csv") BufferedReader br = new BufferedReader(new FileReader(f)) String line; int j = 1 while ((line = br.readLine()) != null) { log.info "++++++++++ ++++++++++ ++++++++++ - $j - ++++++++++ ++++++++++ ++++++++++" String [] array = line.split(";") emailAddress= array[0] password = array[1] yourFunction(emailAddress,password) j = j + 1 } // where yourFunction is the function that you need to create that updates your request with email / password and runs it. how to update and run your requests look here : http://www.soapui.org/scripting---properties/tips---tricks.html#1-1-get-and-set-properties1.3KViews0likes0CommentsMaven pugin issue
Colleagues, may be someone met with the same issue and solved it somehow. Please advise. I run SoupUI tests during Maven build and keep getting the error Warning: validation was turned on but an org.xml.sax.ErrorHandler was not set, which is probably not what is desired. Parser will use a default ErrorHandler to print the first 10 errors. Please call the 'setErrorHandler' method to fix this. Error: URI=null Line=2: Document root element "soapenv:Envelope", must match DOCTYPE root "null". Error: URI=null Line=2: Document is invalid: no grammar found. I tried to use soapui-maven-plugin 4.6.1, soupui-pro-maven-plugin 5.1.2 and with both got the above error. The test itself calls soap requests (webservices) and reads responses. When I run the test in SoapUI all go well.631Views0likes0CommentsRe: Multithreading in LoadTest
Colleagues. Here viewtopic.php?f=5&t=1807&p=7169&hilit=totalRunCount#p7169 it was suggested to use testRunner.runContext.TotalRunCount But if I use it I get an error. Pls see my screenshot. Would anyone advise how to count of total runs in LoadTest897Views0likes0CommentsMultithreading in LoadTest
Hi colleagues. Could you advise on the following. I have a test case. When I loop test case to run continuously, the test case every next time increases one variable (set in TestCase Custom properties) and the test goes on. Then I want to run test case in LoadTest mode say in 10 or 20 threads for 1000 seconds. And now I get an issue. Each thread runs the test with the same value of the variable. My thought was the follow: First test step of test case gets the variable and increases it in this manner: def paymentCode //this is my variable def a = context.ThreadIndex paymentCode = testRunner.testCase.getPropertyValue("paymentCode") as int paymentCode = paymentCode + a It seems to be working. During LoadTest the variable is unchangeable. At the end of LoadTest I want to increase my variable on the number of tests that have been run during LoadTest so next time my LoadTest starts with new value of the variable. For this in LoadTest tearDownScript I have this code def paymentCode = loadTestRunner.loadTest.testCase.getPropertyValue("paymentCode") as int paymentCode = paymentCode + 10 + context.RunCount loadTestRunner.loadTest.testCase.setPropertyValue("paymentCode", paymentCode as String) a = context.TotalRunCount log.info "tottal runcount is: " + a So, my varibale is getting increased by 10 only. log.info a //gets NULL - means print out is NULL Please help if you know sollution. Regards, Atanoly.1.7KViews0likes2Comments