Contributions
Re: Problem with two MockResponse Steps in one TestCase
Hi Ole, I've found a way to solve the problem ... I use Mockservice on the project level with special response depending on Request via QUERY_MATCH in the MockService. Thanks and regards Werner15 years agoPlace ReadyAPI QuestionsReadyAPI Questions810Views0likes0CommentsProblem with two MockResponse Steps in one TestCase
Hi All, Is it possible to have 2 MockResponse Steps in one Testcase running on same path and port ? MyTestCase Test Steps (6) TestData Testdata for the Testcase getUserByKey Request 1 getUserById Request 2 Loop Data Process next DataRow (getUserByKey) Mock getUserByKey Response for getUserByKey, StartStep = getUserByKey Mock getUserById Response for getUserById, StartStep = getUserById URL for Request's: Request 1 : "http://127.0.0.1:9080/userService" Request 2 : "http://127.0.0.1:9080/userService" Path and Port for MockResponseSteps: Mock getUserByKey --> Path "/userService", Port "9080" Mock getUserById --> Path "/userService", Port "9080" With this configuration the Testcase didn't work. The request didn't arrive at the MockResponse Step and the following response is send. Response for Request 2: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <soapenv:Fault> <faultcode>Server</faultcode> <faultstring xml:lang="?">org.apache.xmlbeans.XmlException: error: Unexpected end of file after null</faultstring> </soapenv:Fault> </soapenv:Body> </soapenv:Envelope> When I change the Ports for 2nd Request to 9090 it works! URL for Request's: Request 1 : "http://127.0.0.1:9080/userService" Request 2 : "http://127.0.0.1:9090/userService" Path and Port for MockResponseSteps: Mock getUserByKey --> Path "/userService", Port "9080" Mock getUserById --> Path "/userService", Port "9090" What can I do to use the same port? Regards Werner15 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.6KViews0likes2CommentsRe: Java.Exception when try to run a testcase with a DataSource Type DataConnection
Hi Ole, sorry for my late answer (will be standard I think ), but there was no time for me to check the issue with the database, I have found an other way to solve it. I use special WebServices for the project, but in some cases it will be necessary to use the DB Connections. I will give you a message when I need it. Regards Werner PS: The problem with the "?" is resolved....15 years agoPlace ReadyAPI QuestionsReadyAPI Questions686Views0likes0CommentsDynamically adding properties for HTTP Request
Hi, we have HTTP-Requests with different numbers of properties depending on testdata. Is it possible to add properties dynamicly to a HTTP-Request ? e.g. A usergroup can have 1 or more members. If there is only one member we need only the properties with ('0') with two members properties with ('0') and ('1') and so on. productLineModels('0').accessIdentyModel.firstName=Max& productLineModels('0').accessIdentyModel.lastName=Meier& productLineModels('0').accessIdentyModel.birthDate=24.01.51& productLineModels('1').accessIdentyModel.firstName=FNP2Meier& productLineModels('1').accessIdentyModel.lastName=LNP2Meier& productLineModels('1').accessIdentyModel.birthDate=18.04.88& productLineModels('2').accessIdentyModel.firstName=FNP3Meier& productLineModels('2').accessIdentyModel.lastName=LNP3Meier& productLineModels('2').accessIdentyModel.birthDate=16.05.55 Is there a way? We try it in this way... but it didn't work: groovyUtils.setPropertyValue("registerSelectProduct.action", "myProperty", "Hello World!") We looking for a method like this.... request.addProperty(new Property("name", "value")) Regards Werner15 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes1CommentRe: Java.Exception when try to run a testcase with a DataSource Type DataConnection
Hi Ole, sorry for my late answer, but I was not in office the last days. If it is ok for you, we can make a session with Teamviewer4 on Mon 2009-10-05 then I'm here again. I also have an other Question. When I make a Update Definition of WSDL in the defined Testcases I have always "?" in empty fields, other fields have Testdata from ExcelSheets. The problem is that I must delete all "?" by hand, because the services on server makes validations and "?" are not correct field values. Is there a way let the fields empty? Regards Werner15 years agoPlace ReadyAPI QuestionsReadyAPI Questions686Views0likes0CommentsRe: Java.Exception when try to run a testcase with a DataSource Type DataConnection
Hi, now I have my own account "Werner Blueml" for SoapUi Pro. We have two licenses in company but only one account for Rene and so he makes all posts. Do you have some news for me ? Regards Werner15 years agoPlace ReadyAPI QuestionsReadyAPI Questions2KViews0likes0Comments