Hot answers tagged

7

As for tutorials on SoapUI, sadly the majority of them are sub-par at best and out of date. If you want to learn SoapUI the best option is likely to jump in feet first and hit the ground running. My background is primarily API testing, with a specialty with SoapUI and Groovy, so I will try and give some hints and pointers to get you started. SoapUI's core ...


6

Instead of using SQL scripts, I would recommend using something like dbUnit for importing your test data. dbUnit will generate database dumps in XML format (this will also allow you database-independent test data). The advantage is that you can write (build) scripts that will import the dbUnit datasets, run the database update SQL scripts on them (if you ...


4

Personally I would write a test data generator that generates unique test data and pushes into the database via a direct api call as part of the setup for each test. That way you can run multiple tests in parallel and can scale up your automated test execution. From my experience, if you are using SoapUI, you probably should be calling the applications ...


4

The link for the WSDL appears to be invalid. Try using a different WSDL e.g. http://dic.googlecode.com/files/GoogleSearch.wsdl


4

In general your answers were valid. But to create a better impression you could communicate the points which show you have deeper understanding of APIs and API testing. You can mention about web services, APIs REST, SOAP, WSDL, XML, JSON, different methods (POST, GET, DELETE) etc so they get the perception that you have technical understanding of these ...


3

We use Postman for considerable basic testing during the early stages of development. We then have used Gatling (http://gatling.io/#/) to facilitate load, regression, and stress testing.


3

The answer is similar to real world examples, both Motor Cycle (2 wheeler) and Car (4 wheeler) provides approximately same speed and can carry a person from one place to another, so why two (or in actuality more than two) types of vehicles are there and that too with further classifications (different brand designing different vehicles) i.e. because each ...


3

What questions should I ask the developers so that i can proceed with automating? It depends what kind of test you want to have, if it is only end2end testing then "Base URI" should be enough for you. If you need to test more than that (e.g Tests which need mocking), you may need to have access to the project code to add your test code there. For ...


3

Actually, I can see two questions in your post. Is it better to test SOAP Web services backed by EJB using Java or C#? Actually, Web service stack of technologies was designed to support interaction between application written in different technologies, so it does not matter how the Web service was implemented. I.e., Web service implemented in Java can by ...


3

Well, an API is such a loaded term. It can be REST, SOAP, RMI, or native C++ library API, etc., so the tooling will depend on that. Particular test scenarios will depend on that as well. For instance, for REST or SOAP over HTTP you may want to check popular HTTP-related attacks like HTTP Response Splitting, etc. You may also check if API is well-defined, ...


3

SoapUI supports something called "properties" which are essentially the variables you asked for. After setting a property, whether manually or by a Groovy script, properties can be included in your individual test steps. SoapUI will expand a properties reference to whatever the property's value is. Property references look like this: ${property_name}. ...


3

From your question I'm gauging that we're talking about web service APIs (i.e. REST, SOAP, etc.) and not code-level functional APIs (i.e. Java APIs, etc.). So, a followup question for you is what role are you interviewing for? QA tester, API engineer, DevOps? Are the APIs you're tasked with testing ones that the company is building/managing in house, or are ...


2

Got an answer from the SoapUI forum: depends where "do the variables belong" - you choose a scope eg. custId (i believe it is sth like customerID) in TestCase scope, if you need the custId visible in all teststeps Lets have the example on TestCase scope - you go to Custom Properties tab in soapui (left bottom corner), create there a property ...


2

This option is only available in the PRO version of SOAP UI. The license costs around 300 dollars a year. You can have the data in an excel sheet and map the columns in the request; Loop it so that the test runs until all the rows in excel sheet are read and executed. You can export the response to a CSV or excel sheet. You might also find this useful: ...


2

I accomplished a similar thing by running the SoapUI tests within the Maven Build http://www.soapui.org/test-automation/maven/maven-2-x.html one of the outputs is "junitReport : Turns on creation of JUnit-reports, (true/false)" which will then let you use any of of the million JUnit graphing tools. Hope that helps in finding your solution


2

Using this tip/trick you can modify the response's header. The example shows modifying the content but you should be able to get the gist. if( request.response == null ) return // get response content def content = context.httpResponse.responseContent // manipulate content content = content.replaceAll( "555", "444" ) // write it back ...


1

I used maven sure fire report plugin and this question and the answer explains how i did it. http://stackoverflow.com/questions/29671601/maven-sure-fire-plugin-report-empty


1

Regexp is your friend matches(//ns:XPathToIt/ns:password,'\w{7,}') The \w{7,} will match a string with 7 characters. In the Expected Result put "true". SoapUI Assertions


1

So basically I found out the way to do it through a Groovy Script. I used the JsonSlurper util as with Groovy is really flexible and allows me to manage the XML Response as a Key-Value data structure. An example of my solution is shown below: import groovy.json.JsonSlurper def xPath = '//ADDITIONAL_INFORMATION' def addinfo = context.expand( ...


1

You can check this great blog: http://www.softwaretestinghelp.com/web-services-api-testing-tool-soapui-tutorial-1/ Second you can check the free courses here: http://soapui-tutorial.com/


1

PackT Publishing also sell a SoapUi book that is quite in-depth. Mark.


1

A lot of devs I know use PostMan, a Chrome app. I have written my own tool using .Net that allows me to use pre-formatted requests with a given type reflected from a .dll file. A REST client is like a browser. It makes a request and does something with the response (like printing out the JSON response).


1

welcome to SQA. One thing that it looks like you are not taking into account is the network speed of the device you are testing on. If you are running load runner on a network that has high internet connection speeds, or more probably is on the same network as the service you're testing, then you will get almost no additional time due to network latency, ...


1

This is what I found from http://www.mobilefish.com/tutorials/web_service/web_service_quickguide_countries.html "The Countries web service is permanently disabled because this service is being misused."


1

I'm not sure exactly why you're doing this, but if you mean to remove it from the project, you can right-click on the WSDL interface and choose "Remove".


1

As far as I'm aware data export and reporting you're looking for is available in Pro version of SoapUI. I would recommend developing your tests using SoapUI and using Apache JMeter for load testing as it's capable of sending SOAP requests, performing assertions and correlation and has powerful and flexibly configurable reporting system. References: ...


1

In this situation, we are using the approach exposed by Bruce McLeod. We use a data generator to produce 4 datasets from the same configuration defined by the test case: the input data for the test (run manually or with qtp) to fill gui forms for example, the data inserted before test with soapui in the application to create the customers on which the ...


1

I am afraid you can'd do it via the GUI. However, you can set property files for another case via a groovy script with something like tCase = prj.testSuites['TestSuiteName'].testCases['TestCaseName'] tCase.setPropertyValue( "MyProp", someValue ) For some reason you cant perform it as a single line in my expirience. ...


1

Runscope provides a Web UI for creating tests. There is no code to write for standard assertions. You can write more complex assertions using Javascript. It is a cloud based service, which allows tests to be run from data centers around the world, which is useful when testing response times. You can also use our local agent to test APIs that are behind ...


1

For simple user-friendly tool to test REST API, POSTMan is a great tool. It is easy to use. And, best for smoke testing. You can create request quickly. However, since you have some experience in automated testing. I would recommend to have automated test using JUnit. Basically, you need three thing to create automated test: Create Http Client. Expected ...



Only top voted, non community-wiki answers of a minimum length are eligible