API Testing Check Your Knowledge Part II Track 2: API Testing, SoapUI Pro, LoadUI Pro, ServiceV Pro Question Title * 1. Please tell us your name and email address Name Email Question Title * 2. You want to confirm that a call to an API does NOT return a given string anywhere in the message. Which assertion is the most applicable? Contains Not Contains XPath Match HTTP Valid Status Codes Question Title * 3. You expect that a certain value will exist at a particular node in a reply. Which assertion is meant to confirm this? XPath Match Contains Response SLA Not Contains Question Title * 4. Which TestStep is generally NOT a good candidate for an assertion? SOAP Request REST Request Property Transfer JDBC Request Question Title * 5. You expect your REST API to correctly return one of a group of HTTP status codes. Which assertion is meant for this situation? Valid HTTP Status Codes Invalid HTTP Status Codes Not SOAP Fault SOAP Fault Question Title * 6. 200, 400, 404, 500, and so on are examples of what? SOAP response codes XML data types HTTP status codes WS-Security tokens Question Title * 7. You have millions of test records to send to your service. What DataSource is the best choice? Excel Data Connection Grid Directory Question Title * 8. How can you easily skip over the first row of a spreadsheet that contains column names? Write a Groovy script Read the first row, then discard it Use a ConditionalGoto to check for numbers Configure the DataSource to start in row 1 Question Title * 9. Which DataSource lets you create test data within SoapUI itself? Grid Data Connection Directory Excel Question Title * 10. In addition to Groovy, what other programming language is supported in SoapUI? PHP Perl JavaScript Python Question Title * 11. Where is Groovy still very relevant in SoapUI Pro? Getting data from a DataSource Customizing responses for a virtual API Creating random data Transferring properties Question Title * 12. Which is NOT a good reason to conduct performance testing? Measure impact of network latency Simulate geographical user distribution Determine server capacity Establish basic API connectivity Question Title * 13. What does LoadUI employ to simulate people or processes interacting with your API? Virtual users (VU) Virtual processes (VP) Sample connections (SC) Load Units (LU) Question Title * 14. What can you use in LoadUI to support geographical distribution of your load test? Virtual APIs Data sources Agents Properties Question Title * 15. What can help you start creating a virtual REST API? A WSDL file A database connection A LoadUI agent A sample URL Question Title * 16. What technique(s) could you use to provide variability in your virtual API responses? Routing Data sources Scripting All of the above Question Title * 17. How can SoapUI help you measure how much of your application logic has been tested? Coverage reports Load testing Setup scripts Environments Question Title * 18. What’s a good way to centralize your test pass/fail criteria? Sensitive Information Exposure assertion Assertions TestStep JMS TestStep Virtual REST API Question Title * 19. What’s a good way to launch API tests from your build environments? Write custom code and add it to the build environment Use testrunner.bat to run your tests from the command line Alter your API code to accept direct calls from SoapUI It’s not possible to integrate SoapUI with build environments Question Title * 20. What’s a good technique(s) to share your testing work with your colleagues? Use a composite project Place Groovy scripts into a shared library Create a common database of test messages All of the above Question Title * 21. How can you speed up TestCase processing? Shut down the API to enable faster performance Use sequential TestCase execution when possible Use parallel TestCase execution when possible Run your TestCases by hand Done