Stub for integration testing?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 09:11 AM
Hello all,
We have a scripted web service and our QA team wants to test it but the consumer application isn't ready yet.
The web service accepts inputs and creates a request item based on that.
We want a very easy to use front end which the QA can use to test this web service.
We are thinking of using a catalog as a front end.
We are not sure if the REST API explorer is something that can help. We cannot use SOAP UI due to technical challenges
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 09:35 AM
Hi Ravio,
Since you have created a scripted Rest web services, you can use Rest API explorer for testing. Go to the explorer and select the appropriate name space added on scripted WS and this will let you trigger your queries to Service Now.
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 09:44 AM
Thank you Alikutty for you response.
It is a script SOAP webservice and not REST. The format of envelope is as below. It is a bit different from the general format that we see so i am not sure if REST API will be of any help
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:x="http://www.service-now.com/x_sapo_iiq_sim_ScRequestGenerator">
<soapenv:Header>
<soapenv:Header>
</soapenv:Header>
</soapenv:Header>
<soapenv:Body>
<x:insert>
<screquest>
<screqitems>
true
<item>
<input_1>xyz</input_1>
<input_2>abc</input_2>
</item>
</screqitems>
</screquest>
</x:insert>
</soapenv:Body>
</soapenv:Envelope>
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 09:50 AM
You have a workaround to test this from a developer instance or any other instances of your company.
You can create a new SOAP message in the developer instance, add the WSDL of your scripted WS and import the messages into it. Once you import, open a message and auto generate variables or add them manually and use the Test link to send SOAP requests to your instance.
Thanks
Please Hit like, Helpful or Correct depending on the impact of the response

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-21-2017 09:44 AM
Ravio,
The REST API Explorer is an excellent choice for testing the scripted Web Service by QA. Definitely take a look at that. QA may use that to validate methods, inputs and outputs. However, to fully test from an system external to ServiceNow, you should use an API testing tool. If SOAP UI doesn't work well for you, you may want to try Postman (https://www.getpostman.com/) or HURL.IT (https://www.hurl.it/).
I believe the Automated Testing Framework (ATP), introduced in the Istanbul release, will be a fantastic tool for QA. Look for advances in that platform application in to include capabilities to assist with testing inbound REST APIs in future releases. Leveraging ATP and the REST API Explorer may help to make your QA team very happy.
Hope this helps.