Home > Software Testing (Page 4)

JavaScriptExecutor in Selenium

Javascript executor is used to execute javascript from selenium. Actions which need to be performed forcibly can be performed using javascript executor. For example selenium not able to click on particular web element due to disable state of it but our requirement is to click on that element. In this

This Article is TAGGED in , , , . Read more

JIRA – Project management tool

What is JIRA tool? JIRA is a project management tool/software which can be used to deliver projects efficiently. JIRA can manage small tasks of the project as well as related issues and bugs. User can manage and track the flow of the project properly. The JIRA reports can be fetched for

This Article is TAGGED in , . Read more

MS SQL connection using JDBC in Selenium

To connect MS SQL database using jdbc driver in java, we need to download jdbc driver for MS SQL server. Refer below link to download MS SQL jdbc driver file.  Add external Jar file to project: Right click on project, Go to properties → Java Build Path → Click on Library tab  Add external

This Article is TAGGED in , . Read more

Protractor Tutorial

Protractor is a Node.js program which is used for testing of Angular JS applications. It is combination of Selenium, Jasmine, Webdriver etc. Along with Angular JS applications protractor can also be used in testing of normal web applications. Installation of Protractor: Protractor installation and configuration Advantages and disadvantages of protractor Locators and Sample

This Article is TAGGED in , . Read more

Extract data from Response in JMeter using Regular Expression Extractor

Regular expression extractor is a post processor component used to extract required data from the response body. Consider an example where we want to extract 'title' value from the response body. Using 'Regular Expression Extractor' title value can be extracted. Details of the fields used in above Regular Expression Extractor(RE): Name given to the

This Article is TAGGED in , . Read more

Selenium Webdriver tutorial

Installation and Introduction of Selenium: Selenium is an open source automation testing tool which is used for running the test script and to automate the web applications. Due to open source (free) tool this is widely used automation tool in the market. Programming languages supported by Webdriver are Java, .net,

This Article is TAGGED in , , . Read more

Selenium WebDriver Locator: Class Name

Locator Type: Class Name Class attribute in HTML element used to apply style or select web element(s) JavaScript functions.  One class attribute could contain multiple classes separated by space and it is called as composite class.  Class attribute need not to be unique like id.  Java code to find web element using class attribute value.  [crayon-67b1ff89c6481114462378-i/] Steps to

This Article is TAGGED in , , , . Read more

Selenium WebDriver Locator: Tag Name

Locator Type: Tag Name  HTML document is structure of different html elements which normally contains start tag with attribute closing tag and some text within opening and closing tag.  Opening tag consist within Tag Name within two angular brackets (‘<’ and ‘>’) while closing tag contains forward slash before Tag Name within angular brackets. Java code to find

This Article is TAGGED in , , , . Read more

Selenium Locator: Link Text and Partial Link Text

Locator Type:  Link Text or Partial Link Text. This locator is used to locate anchor web element using it's text. Link text is a element text between opening <a> and closing anchor tag </a>. Partial link text is used to find anchor element similar to point 1 but it used partial unique text

This Article is TAGGED in , , . Read more

Java Apache POI: Read or Modify data in excel file

Read and write excel file in java Pre-requisite:Download latest apache poi library.  Add below mentions jar files in build path from downloaded compressed file. commons-codec-1.11.jar commons-logging-1.2.jar jaxb-api-2.3.0.jar junit-4.12.jar poi-excelant-4.0.0.jar poi-scratchpad-4.0.0.jar commons-collections4-4.2.jar commons-math3-3.6.1.jar jaxb-core-2.3.0.1.jar log4j-1.2.17.jar poi-ooxml-4.0.0.jar xmlbeans-3.0.1.jar commons-compress-1.18.jar curvesapi-1.05.jar jaxb-impl-2.3.0.1.jar poi-4.0.0.jar poi-ooxml-schemas-4.0.0.jar activation-1.1.1.jar   Class which contains read and write function. [crayon-67b1ff89c69f8031488177/]   Read and write functions from ExcelReadWrite class used. [crayon-67b1ff89c69fc721668335/] Code Execution Result: Changes in excel file before and after code execution.       Selenium Tutorial >>

This Article is TAGGED in , , . Read more