Selenium 2 WebDriver Advanced
  • Preface
  • 1. API Testing Using Selenium WebDriver
    • 1.1 Code Snippet for API testing
    • 1.2 SoapUI
      • 1.2.1 Add selenium jars to soapUI
      • 1.2.2 Run selenium tests
      • 1.2.3 Data Driven Testing using SoapUI
  • 2. Advanced Profiles for Browsers
    • 2.1 Profile for Firefox Browser
    • 2.2 Profile for Chrome Browser
    • 2.3 Profile for IE Browser
    • 2.4 Profile for Safari Browser
    • 2.5 Profile for Opera Browser
  • 3. TestNG
    • 3.1 Sample TestNG class
    • 3.2 Parallel execution
    • 3.3 Execution of tests from batch file
  • 4. ExtentReports
    • 4.1 Basics
    • 4.2 Sample Extent Reports
  • 5. Advanced tricks
    • 5.1 Keystroke handling
    • 5.2 Screenshot capture
    • 5.3 Get HTML Source of WebElement
Powered by GitBook
On this page

Was this helpful?

1. API Testing Using Selenium WebDriver

What is API :

An application-programming interface (API) is a set of programming instructions and standards for

accessing a Web-based software application or Web tool.

Example :

An API is a software-to-software interface, not a user interface. With APIs, applications talk to each other

without any user knowledge or intervention. When you buy movie tickets online and enter your credit

card information, the movie ticket Web site uses an API to send your credit card information to a remote

application that verifes whether your information is correct. Once payment is confirmed, the remote

application sends a response back to the movie ticket Web site saying it’s OK to issue the tickets.

What is JSON:

JSON (JavaScript Object Notation) is a lightweight, text-based, language-independent data exchange

format that is easy for humans and machines to read and write. JSON can represent two structured types:

objects and arrays. An object is an unordered collection of zero or more name/value pairs. An array is an

ordered sequence of zero or more values. The values can be strings, numbers, booleans, null, and these

two structured types.

JSON is an easier-to-use alternative to XML.

PreviousPrefaceNext1.1 Code Snippet for API testing

Last updated 5 years ago

Was this helpful?