Thursday, 28 February 2019

Selenium - Automation in Testing

Selenium

As per www.seleniumhq.org, 
Selenium automates browsers. That's it! What you do with that power is entirely up to you. Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) be automated as well.
Selenium has the support of some of the largest browser vendors who have taken (or are taking) steps to make Selenium a native part of their browser. It is also the core technology in countless other browser automation tools, APIs and frameworks.

How Selenium works?

To remember
  • Webdriver
  • Language bindings - Java, Python, C# etc.
  • API/SPI - Selenium Special program interface (DOM, Find Elements etc.)
  • Through JSON web driver communication happens(REST)  -  Get, Post

Hands on Selenium

For step by step details, refer this article from saucelabs

Suggested good practices for kick-starting the selenium scripting

  • Solve the maven dependency tree as the first stop with respect to testNG, Apache POI, extent reports, jcommander, maven-compiler-plugin, 
  • Test Framework inside ***src\main\java\***
  • Test Scripts inside ***src\test\java\***
  • Test Data etc. inside ***src\test\resources\***
  • Understand maven clean, install, test
  • be ready for an automated environment setup using AutoIT
  • Ensure browser drivers are in the right folder

No comments:

Post a Comment