Monday, July 18, 2016

Web Test Automation

Most of tech companies now realise that manual testing is not as effective as anticipated and wanted to automate the whole process of users going to their websites performing some actions, submitting a form, or triggering a search,... etc.

You have probably thought many times of automating some repetitive tasks that you do every day or sometimes multiple times per day. Some people automate making their morning coffee - Believe me :).

Testing is one of the repetitive tasks that developers tend to do very often everyday .. Why? because it's important to make sure that things are working as expected before pushing them to production.

In this post I will not talk about the theory of automation or the frameworks themselves as there are plenty of articles for this purpose .. This article is just to introduce you to the world of automation and point you towards the next step.

Links to read

 

Phantom JS
Selenium headless mode

Steps to run this example

  • Create a maven project and copy these files
  • Make sure you download chrome driver from here
  • Edit the path to your chrome driver installation
  • Run the Example.java class

Example


In this example I will use Selenium framework to test Amazon DE website and search for something there .. then print the search page title .. No assertions/checks will be done as it depends on your business and the purpose of your test.

Pom.xml that defines libraries used:



Cheers ;)

4 comments:

  1. Analogica Data is the Best Test Automation Services Company in India, offer software Automation Testing Services, Automation testing is nothing but enhancing efficiency, effectiveness and the coverage of your product.

    ReplyDelete
  2. I really like you post good blog,Thanks for your sharing.

    โคนัน

    ReplyDelete
  3. Thanks for sharing for the nice blog. You made this beneficial with your skill and talent. You also can share some suggestions on Software Automation.

    ReplyDelete