Selenium features – what are the main features of selenium.

Selenium features – what are the main features of selenium.

Selenium supports Cross Browser Testing and parallel testing. The Selenium tests can be run on multiple browsers and multiple machines and multiple Operating systems. Selenium offers open source tools and supports test automation for web applications

Supports several scripting languages like Java, Python, C#, and PHP

Reporting are very easy and extensible.

Selenium uses Browser native commands. It locates and actions applied on UI elements

TestNG quick summary:

 TestNG’s is Selenium + reporting features. It is easy to generate reports using Listeners and Reporters in TestNG

 Features of TestNG includes the following,

1)      Annotations – please refer my annotation blogAnnotation – TestNG’s test case priority

2)      Supports parameterization/ data driven testing

3)      Test cases can be grouped and parallel testing is allowed.

Automaton testing using Cucumber – Behavior driven development (BDD)

Application behavior is the main focus on BDD. The requirements are written in English which gives more readability and understandability of the requirement.

So any roles in the company (Tester, developer, end user, and techno functional person) can read it and understand it. Also this will reduce the complication in terms of missing requirement or misrepresenting or misunderstanding requirements between different roles (Developer /tester / end user)

Gherkin is a business readable language – refer below for an example. Below feature file is integrated with Selenium and are having user stories as below,

Please refer below – “feature, Scenario, Given, When, And, Then “are the Keywords below to understand on how to write a feature file.

What is TestRunner in Cucumber

In order to link Cucumber with Selenium WebDriver, you need to start a Java project in eclipse IDE.

Then, add both Cucumber and Selenium jar files

Write test runner code and execute the same . Please refer BDD testing details on Selenium Cucumber

Performance test analysis.

Performance test analysis can be done real time script execution or post execution

 Real time script execution analysis

1)      Performance Engineer needs a coordination  with other teams like Database team, app server team, etc  to monitor real time performance on Database server, Application server

2)      Database and app server team can let Performance Engineer know the performance results on these servers like resource utilization, fail over server works / load balancing works fine etc.

Post script execution analysis

1)      Verification on Vuser metrics, Vuser errors, can be validated.

2)      Verification Transactions graphs for TPS, response time, hits per second can be reviewed.

For additional details please click on click link load testing vs performance testing vs stress testing

Performance testing best practices and activities.

Selenium IDE

Selenium IDE. How it is implemented?

Selenium IDE is an integrated development environment for Selenium tests.

It is a plugin or extension to Firefox browser. It’s very easy to add and implement. It  is for basic level of application test users.

Commands used in Selenium is called selenese

What is an Application server

What is an Application server

 An Application server controls the business logic. Separating business logic from web server and adding to application server will give more reusability for this logic across different applications. This is more flexible design.

A web transaction using app server will be like this as below,

Browser (click operation to display some results on a grid> ==> Request goes to web server (Apache HTTP server) ==> Application server (Tomcat server) ==> Database

Or

Browser (click operation to display some results on a grid> ==> Request goes to web server (Apache HTTP server) ==> Application server (Tomcat server) ==> Web service ==> Third party Database

Note: Web server related topic – please click on  What is Web server?

How to Enable/Disable Developer mode in Android phones

How to Enable/Disable Developer mode in Android phones

1.Go to Android device’s “Settings”,
2.Then go to “General” settings- please verify some phones may vary with flow, I am referring LG G2 phone’s navigation flow.
3.Scroll down to see “About Phone”
4.In About phone, single tap on “Software info” you would see “Build number”
5.Then, tap on 7 times on “Build number”to enable Developer mode or options.

Note: if the phone is already in Developer mode, then you can directly navigate to
Settings ==> About Phone ==> Developer options ==> enable/disable check box of USB Debugging.

Performance test analysis.

Performance test analysis.

What is Performance test analysis?

Performance test analysis can be done real time script execution or post execution

 Real time script execution analysis

1)      Performance Engineer needs a coordination  with other teams like Database team, app server team, etc  to monitor real time performance on Database server, Application server

2)      Database and app server team can let Performance Engineer know the performance results on these servers like resource utilization, fail over server works / load balancing works fine etc.

Post script execution analysis

1)      Verification on Vuser metrics, Vuser errors,

2)      Verification Transactions graphs for TPS, response time, hits per second etc.

For additional details please click on click link https://shalimatech.com/load-testing-vs-performance-testing-vs-stress-testing/

vlookup function in excel for column value matching

vlookup function in excel for column value matching

Row# 2 and column A showed the match results for Column B Row# 1 as you can see value 1 is matched against Column C records.

Row# 4 and column A showed no match results for Column B Row# 4 as you can see value 5A is not matched against Column C records.

so the code sample you need to use for the record range of 11 rows, as below

=IF(ISNA(VLOOKUP(B2, $C$2:$C$11, 2, FALSE )), “MISSING”, “MATCHED!”)

=IF(ISNA(VLOOKUP(B3, $C$2:$C$11, 2, FALSE )), “MISSING”, “MATCHED!”)

etc

VLOOKUP

 

 

Performance testing best practices and activities.

Performance testing best practices and activities.

  1. As first step, Performance Engineer needs to learn the requirements, performance expectations & system architecture.

Note: To learn the performance requirements & expectations, SME (Subject matter expert ) or production user can help. This information will help to define performance goals and SLAs

  1. Then develop best matching performance test scenarios, approach, define goals (SLAs) & sign off test plan.

Note 1: To identify the right performance test scenarios, SME can give some feedback on about the current performance issues in production / live application that he/she is facing.

Note 2:  You can refer another blog of mine on different types of performance scenarios – click link load testing vs performance testing vs stress testing

  1. Now Performance Engineer can developer V– USER scripts and execute the scripts in Controller to generate performance analysis results

Note 1: Apart from delivering performance analysis results, Performance Engineer  can coordinate with other team to monitor real time performance on Database server, Application server and also make sure load balancing is working fine while stress testing.

Some of the e.g. when performance testing is needed

  1. for Database upgrade,
  2. Application upgrade,
  3. Or if user complains that application performance is bad – like page response is not meeting his/her expectations.

Robot framework and Selenium2Library

Robot framework and Selenium2Library

Selenium2Library is library created for web testing. Robot framework utilizes this framework

Robot framework is mainly used for acceptance testing and it supports different browsers like IE, Chrome, Firefox etc.

Robot framework can be hosted in Github and script execution can be managed using Jenkins. I will be writing a detailed step by step documentation on Robot framework web testing  implementation.