TestingWhiz


Get Community


  • Solutions
    • Web Test Automation
    • Mobile Testing
    • Cross-Browser Test Automation
    • Regression Test Automation
    • Web Services Testing
    • Data-Driven Testing
    • Database Testing
    • Big Data Testing
  • Features
  • Integrations
  • Pricing
  • Resources
    • Webinars
    • White Papers
    • Infographics
    • Case Studies
    • User Manual
    • Release Notes
    • Download Center
    • User Forum
    • FAQs
  • Blog
  • Company
    • About
    • News & Events
    • Whiz Consulting
    • Partners
    • Contact Us
User Manual
  • General Information
    • About TestingWhiz
    • TestingWhiz Architecture
    • System Requirements
    • Browser and Device Support
  • Understanding TestingWhiz Tool
    • Menu Bar
    • Tool Configuration Settings
    • Third Party Integrations
    • Menu Tab
    • Test Editor Tab
    • Test Commands, Methods and Variables
  • Create and Manage Test Projects
    • Create, Record and Import Test Scripts
    • Create Test Suites
    • Create Test Cases
    • Execute Test Scripts
  • Test Reports
  • Methods Accessing Data Table Values Without Loop
  • Generating Test Data Table
  • Importing Data from Other Test Projects
  • Types of Testing Supported by TestingWhiz
  • Mobile Test Execution
  • Desktop Test Automation
  • Image Comparison
  • Forking & Data Validation
  • Test Execution via CI Plugin
  • Integration with Test Management Tools
  • Integration with Version Control
  • Test Commands & Corresponding Actions
  • Test Commands Reference
    • Web App Commands
    • Mobile App Commands
    • Desktop App Commands
    • Conditional Commands
    • Database Commands
    • Web Service Commands
    • File Operation Commands
    • Script Optimization Commands
    • Desktop Commands

Web Service Commands

1. Execute

It allows users to perform a particular Webservice.

Execute Command with Actions

RESTful Web Service

Download SampleDownload Sample

It allows users to execute RESTful Web Services with a single test command and store results in a variable.

SOAP Web Service

Download SampleDownload Sample

It allows users to execute SOAP Web Services with a single test command and store results in a variable.

2. Parse

It allows users to determine meaningful information from a JSON or an XML message which can be captured as a response to an API or from a file.

Parse Command with Actions

JSON Message

Download SampleDownload Sample

It allows users to determine any JSON string or the JSON string which is returned as a result of REST Web Service test command.

Example

"store": {

"book": [

{

"category": "reference",

"author": "Nigel Rees",

"title": "Sayings of the Century",

"price": 8.95

},

{

"category": "fiction",

"author": "Evelyn Waugh",

"title": "Sword of Honour",

"price": 12.99

},

{

"category": "fiction",

"author": "Herman Melville",

"title": "Moby Dick",

isbn": "0-553-21311-3",

"price": 8.99

},

}

store.book[*].author expression will fetch all the authors of all books.

book[2] expression will fetch the third book from the list.

book[(@.length-1)] expression will fetch the last book.

XML Message

Download SampleDownload Sample

It allows users to extract some values from an XML Message or a File. XML messages can be the result of SOAP Web Services responses or users can also upload an XML file.

Example

< soap:Envelopexmlns:soap= "http://schemas.xmlsoap.org/soap/envelope/" [^]

xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" [^]

xmlns:xsd= "http://www.w3.org/2001/XMLSchema" > [^]

< soap:Body >

< GetCityForecastByZIPResponse xmlns= "http://ws.cdyne.com/WeatherWS/" > [^]

< GetCityForecastByZIPResult >

< Success > true < /Success >

< ResponseText > City Found < /ResponseText >

< State name="a" > FL < /State >

< City > Mid Florida < /City >

< WeatherStationCity > Orlando < /WeatherStationCity >

< ForecastResult >

< Forecast >

< Date > 2014-08-18T00:00:00 < /Date >

< WeatherID > 2 < /WeatherID >

< Desciption > Partly Cloudy < /Desciption >

< Temperatures >

< MorningLow/ >

< DaytimeHigh > 95 < /DaytimeHigh >

< /Temperatures >

< ProbabilityOfPrecipiation >

< Nighttime/ >

< Daytimetime > 30 < /Daytimetime >

< /ProbabilityOfPrecipiation >

< /Forecast >

< /ForecastResult >

< /GetCityForecastByZIPResult >

< /GetCityForecastByZIPResponse >

< /soap:Body >

< /soap:Envelope >

XPath :

Get State value : //GetCityForecastByZIPResult/State/text()

Get State node : //GetCityForecastByZIPResult/State

Get list of forecast node ://GetCityForecastByZIPResult/ForecastResult/Forecast

Count No. of forecast node in message : count(//GetCityForecastByZIPResult/ForecastResult/Forecast)

Get list of nodes where DayHighTime is 95 : //Temperatures[DaytimeHigh=95]

Get name attribute value of State node : //State/@name

In This Section
  • Execute
  • Parse
PREVIOUS
NEXT
cygnetinfotech

About

TestingWhiz is committed to provide an innovative and automated software testing solution to the global enterprises and software companies for their web, mobile and cloud applications.

location

Cygnet Infotech LLC,
125 Village Boulevard,
Suite 315, Princeton,
NJ 08540, USA

PHONE | EMAIL

1-855-699-6600
info@testing-whiz.com

Get Started

Download Trial
Demo
Pricing
Contact Us
  • Privacy Policy
  • Terms of Use
 
TestingWhiz Capterra Ratings

Copyright© 2021, TestingWhiz. All Rights Reserved.

This website uses Cookies to improve site’s functionality & provide you with better browsing experience. Detailed information on the use of cookies on this website, and how you can decline them, is provided in our Cookie Policy. If you don't agree, kindly disable cookies from browser settings.