Skip to main content

Posts

Showing posts with the label Test Automation

Identify Web Elements using Selenium Xpath Locator

As we all know, Web elements are present diversely (Dropdown, Check Box, Text Box, Radio Button, etc.) in a Web page. And locators are our saviours, right from helping us identify a Web element uniquely within the page to enunciate its HTML properties and informing Selenium about the action to be performed. For example, the Dropdown mandatory field “Highest Qualification” is not with Select Class in the Web page. It is difficult to find the Web element for that field. To resolve this, one may use Xpath Locator and find the element for the “Highest Qualification” field. Also they should try to select the Dropdown field value “Masters” making use of the Action Class. You can find the script but in that, using the Action Class to find the element for the mandatory “Highest Qualification” field will not be fruitful. You may have to apply the Contains text method to find out the element for the Xpath. Identifying Web elements is always a sensitive area and mandates a pr...

Using of data-driven framework in automation web or mobile testing

Software testing is increasingly getting complex and tough given the challenging business scenarios. Application Testers are under pressure to adopt proven test automation methods and techniques to improve the quality of testing outcomes. Amongst the many types of test automation frameworks practiced by the professionals, data-driven test automation stands out. When the input and output values for the test are fetched from data files which are saved outside the testing script, which can be Excel files, CVS files, ADO objects, DAO objects or any ODBC source etc. you are adopting a data-driven automation framework for your testing. To sum it, the Test Scripts retain the test case logic, while the Test Data is disparate and present outside.   What’s the benefit of using data-driven testing framework? Re-use of Code, leading to increased efficiency and faster execution Test Data remains unaltered, in spite of changes in Test Scripts Possibility to test a variet...

Uploading files through Selenium using AutoIT

Selenium is a widely used test automation tool especially during web-based apps testing. It comes with a set of diverse software tools each enabling rich test automations across different functions of the dynamic web app testing. There are many advantages of using Selenium, yet there are some snags that may be addressed with thirty party tools. File uploads to a HTML5-based web application from local directory system is one such scenario where Selenium is not much of a help. However, this limitation of Selenium can be overcome using a third-party tool called AutoIT which is a freeware BASIC-like scripting language designed for automating the Windows GUI and general scripting.  Here are the 2 steps making it possible: Creating AutoIT code that uploads file to an application Calling this AutoIT code inside Selenium script For more detailed steps, visit here  https://goo.gl/Jv4gr7