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
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 ;)
Cheers ;)
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.
ReplyDeleteI really like you post good blog,Thanks for your sharing.
ReplyDeleteโคนัน
Awesome blog. I enjoyed reading your articles. This is truly a great read for me. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!
ReplyDeleteBiotech Internships | internships for cse students | web designing course in chennai | it internships | electrical engineering internships | internship for bcom students | python training in chennai | web development internship | internship for bba students | internship for 1st year engineering students
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