SmartBear Study Hall: Your Ready! API Questions Answered
  February 21, 2017

Hello SmartBear Study Hall Readers,

Last week we hosted our monthly Ready! API 101 class part of our SmartBear Academy series. What is SmartBear Academy? It’s our free virtual training classes led by our Product Owners, Sales Engineers, and trusted Service Partners. Our complimentary training spreads across topics in Automated Testing, API Functional Testing, Code Review, Performance Profiling, API Mocking, Performance Monitoring, Test Management, Load Testing, and more.

Our API 101 class covers the Ready! API suite of tools SoapUI NG Pro, LoadUI NG Pro, ServiceV Pro, and Secure Pro. Temil Sanchez, one of SmartBear’s in-house technical sales engineers led the training, “we covered the importance of overcoming API dependency by virtualizing the APIs using ServiceV. This can be very helpful when unavailable APIs become a bottle neck in the development or QA process.” Watch the on-demand video replay.

Below is a list of customer Q & A we wanted to share with you all. Perhaps some of you have the same questions and we hope this information helps you while using one of our Ready! API tools.

Q. Can you please let us know about use of Jenkins?

A. You would use testrunner in Jenkins to automate running SoapUI Pro in Jenkins. Learn more here.

Q. Data source seems to be limited to a test case. Is there a counterpart that can take effect for the whole suite?

A. Unfortunately data source is limited to be specific for a test case.

Q. How do I convert sql result of '1' or '0' to boolean 'true' or 'false'?

A. To convert sql result of ‘1’ or ‘0’ to boolena ‘true’ or ‘false’ you can add a script. Learn more about Boolean Generator here.

Q. How can we give different types of input for the same API?

A. Using a DataSource TestStep you can give different types of input for the same API. Learn more here.

Q. In SoapUI, when you're using the DataSink; is there a way to store a list of numbers?

A. Add DataGen teststep with number list and then store that in DataSink. The DataSink step is used to parse the values from your tests and store them in external files. This allows you to consolidate data from different parts of your tests and output them to various formats. Learn more here.

Q. Is there a way to automate the generation of a report?

A. Automate the run so that way reports will be automated too. When TestCases are executed, and are linked to requirements, the test results are shown at the project level. These results are also included when you create a report. Learn more here.

Q. My Response is JSON Array with multiple data. How can I setup an assertion for it?

A. You can customize it with a script. Learn more about JSON here.

Q. Using Ready API can we create a test automation solution that drives and supports BDD

A. Learn more on using Gherkin with SoapUI in this blog post. Read here.

Q. What data can be passed?

A. We can import data from excel, xml, json, csv or any jdbc database.

Q. Can I link the load test through Jenkins?

A. Yes we have LoadTestRunner which is similar to TestRunner automation. Learn more here.

Q. Is there also a 'wait for response' in SoapUI, kind of like 'wait for page to load in Selenium?

A. Yes you can add a delay and you can also define specific assertions for checking the server response. Learn more about this here.

Q. Can we export the data in Datagrid to other sources like excel?

A. Yes with DataSink test step. Learn more about DataSink here.

Q. Is there anything similar to a MAN page on the assertions, so you know the ones to use and the best syntax?

A. For content we have JSON path if you have JSON response and Xpath assertion if response is XML but we also have header assertions, compliance assertion and SLA (there are more assertions) You can check in here.

Q. Is Ready! API Windows only supported?

A. No we are Linux and mac supported as well.

Want to learn more? Sign up for an upcoming SmartBear Academy training class.

Follow @SmartBear and @ready_api on Twitter.