Home > Software Testing

Python sample programs – Part 1

1. Calculate the Average of Numbers in a Given List count=int(input("Average of how many numbers do you want to find?")) a=[] for i in range(0,count): number=int(input("Enter number: ")) a.append(number) average=sum(a)/count print("Average of numbers is: ",average) Output: Average of how many numbers do you want to find?5 Enter number: 2 Enter number: 3 Enter

This Article is TAGGED in . Read more

Integrating Winium with Katalon studio

Winium is used to automate windows applications. Katalon does not support windows automation. If any web application needs interaction with windows application then we can integrate Winium with Katalon studio. Below are the steps to integrate Winium with Katalon Studio: Step1: Download the Zip file “Winium.Desktop.Driver.zip” from https://github.com/2gis/Winium.Desktop/releases Step2: Extract the downloaded Zip

This Article is TAGGED in , , . Read more

File Upload Using Windows Automation Tool And Selenium

Here are the step to upload file using selenium Click on Select file / Select button (This part could be handled using Selenium) Select file from open dialogue box(This part could not be handled using selenium) Click on Upload or Upload file button. File Upload for INPUT tag with TYPE ="file" Example Url: If

This Article is TAGGED in , , . Read more

How to use @Parameters and @Optional annotations in the TestNG

TestNG @Parameters One of the important features of TestNG is parameterization. This annotation allows the user to pass parameter values to test methods through the testng.xml file. @Parameters({"param-name"}) Let's write a simple example of passing parameters to test methods through the XML configuration file. Steps to Perform: Open chrome and enter the Demo

This Article is TAGGED in , , , . Read more

TestNG: Use of Before and After annotations with sample code

Exmaples for @BeforeMethod and @AfterMethod in TestNG. @BeforeMethod allows the method to execute before the execution of each Test methods, whereas @afterMethod is executed after the execution of each Test methods.  [crayon-678802488fb5f399987987/] Output: First Method:Before Method starts!Test with Default priorityAfter Method starts In the above output, we can observe for every Test first @BeforeMethod is

This Article is TAGGED in , , , , , . Read more

How to use Annotations in TestNG Framework

Annotations in TestNG Annotation is a feature introduced in Java 5 and is used to add a piece of code to the java source code.  Annotations are easy to use, maintain and understand. Annotations provide many useful attributes to use in the code. It is easier to find where the error

This Article is TAGGED in , , , , . Read more

TestNG Test Annotation with attributes and sample code

Test Annotation with attributes in detail with example. @Test: The @Test attribute is the most important and commonly used annotation of TestNG. It is used to mark a class or a method as part of the test. We write code/business logic in the @Test method. If we want to automate something, that particular

This Article is TAGGED in , , , . Read more

Comparison of Top 5 Automation Testing Tool in 2019

2019 Top 5 Automation Testing tool comparison with features, attributes etc. Selenium Katalon Studio Unified Functional Testing (UFT) Watir Ranorex Features Launch Date OR First Release Date Selenium → Developed by Jason Huggins in 2004 Katalon Studio → September 2016 UFT→ In Year 2001 Watir→ October 2012 Ranorex→ September 2007 Supported Operating Systems Selenium → Microsoft Windows, Apple OS X, Linux. Katalon Studio → Microsoft

This Article is TAGGED in , , . Read more

Selenium Grid Setup Run Scripts on multiple machines

Selenium Grid allows to run tests in parallel mode on different machines and different browsers available on that machines. Selenium grid working is based on Master Slave architecture. Main Components of Selenium Grid are:1. Hub: Hub acts as a master in Selenium Grid. There will be a single hub in the

This Article is TAGGED in . Read more