Currently i am having two SOAP projects(A and B) imported from WSDL files.
I created a mock server with one of the projects(A) and from my application i am able to call the mock server and get response.
Now i want to go further and try to invoke a request to another service situated in another project(B) when a soap operation is called in mock server project(A).The Project B is a call to another application.
Can i write groovy scripts to do this?
so whenever an operation A1 is called in project A after a time lapse a request needs to be sent from project B which might be an operation B1.
Here actually i am trying to simulate an external application using soap ui.
I understand i can do it by writing a program using java but thought i could do this in short time using soap ui.
As question i wanted to know if my thought is right of using soap ui or should i go do it through another tool or writing a java app.
Related
I am doing load testing in Soap ui and working on cab booking application so set api like this for example
userSingin ,GetlocationDetails,bookCab,getDriverDetails,acceptRide and completeRide so on.
It will become on loop(on completing of one ride successfully ) so this seniors may happened like 1000 or 10000 times.
The question is how to interlink api do it a single entity and perform load test using soap ui, jmeter or any load testing tools,or by coding please help me sort out problem with simple demo.
SoapUI has some load testing capabilities so given you have a functional test ready you can run it with increased load.
If SoapUI's load testing is not enough (i.e. you cannot create the desired load or find results not too verbose/informative) you can build the same test plan using JMeter's HTTP Request samplers. If you need to send custom Content-Type and SOAPAction headers - it can be done via HTTP Header Manager. See Building a SOAP WebService Test Plan article for more details.
Last but not the least, you can either execute existing SoapUI project using JMeter using Taurus tool, see SoapUI Support for more details on the specific feature and Navigating your First Steps Using Taurus to get familiarized with the tool and its concept.
It's my first time to deal with REST Server stuffs.I followed this tutorial and I was able to create a Rest Server. I was able to create a function DoSomething that queries our database and result a string. I was able to run the Rest Server, then Open Browser, and my function DoSomething is successfully resulting a value. Now, I want to use DoSomething in a separate application. I tried to follow this tutorial link but I can't comprehend the next steps after setting TRestClient.BaseURL := http://localhost:8080. Am I on the right track? How can I consume DoSomething in other application?
I'm trying to pull-of some tests for my RESTful api functions.
For this I did the following:
Installed PHPUnit.
Created a new database for testing.
Created a new enviorment (test) and changed the doctrine config for it.
Created a test.
My problem is this:
When performing a request (somedomain.com/api/somemethod) -> the requested page doesn't know i'm performing a test on it -> so the data it uses is the production/development database and not the 'test' db i have created for the tests.
(the script using test db, the requested page uses normal configurations).
Is there a way to solve it without touching or modifying the API code/behavior?.
Thanks.
Since you said you're requesting somedomain.com I can only suspect you're firing requests over HTTP.
Symfony is made to be easily testable and you can perform functional test without ever making a real HTTP request. Instead, it will make a request object and tell it's kernel to handle it as if it were coming from a real client.
There is a chapter in symfony book on this: Functional tests
If you use method described there (using Symfony BrowserKit client and paths instead of complete urls), Symfony will have it's kernel booted in test environment and will handle request like that.
If, however, for any reason you are unable/don't want to do it that way, and want to fire real HTTP requests, I suggest you to make a file in web directory called app_test.php. In that file you should boot the kernel in test environment and make sure your tests are actually hitting that file (instead of app.php or app_dev.php). However, have in mind that this file will be publicly available and as so, it will cause a security hole so make sure to guard it somehow (check app_dev.php for hints). As an idea, you could require specific key to be provided in request header to allow it to pass on. Or if it will be tested from a single machine, you could also guard it by IP, or whatever works for your case.
I made a web service in ColdFusion. I can successfully call this service, with dynamic parameters, from C#. However, I am unable to call this service from iPhone Xcode. The response shows an operation failed error. So how can I consume this service from Xcode?
We have more than one application using a Coldfusion component via Xcode on an iPhone. Mostly consuming financial data. I believe we use the a call like:
action.cfc?method=blah¶m1=blah¶m2=blah
with a return format of either XML or json - so on the Xcode end of it we are using a parser for one of those technologies to deserialize the object.
How can i test a wcf service in a browser? I mean if i only enter the url in the browser it should give me only relevent xml
It depends on what type of WCF service you have:
if you're using a WCF REST service (webHttpBinding), then you should be able to just navigate to the service address, e.g. http://yourserver/somedir/service.svc
if you're using anything else, you have a SOAP service, and you cannot test a SOAP service in a web browser - the browser just doesn't understand and speak SOAP. There's however a WCF Test Client app in your C:\ drive somewhere which you can use for that purpose.
Make a test application for it. It can be as simple as having a UI with a bunch of buttons, when you press a button then a certain function exposed by the WCF service is called, you could maybe echo the output to a textblock in the app. You could also have a bunch of input type UI items (textboxes, dropdowns, whatever) so you can select parameters to pass to the WCF function.
If you want to be really classy, then make a set of unit tests for it - this means that you will have to have it hosted somewhere though so that it can be called any time the tests are run.