Experience & exploration about software QA tools & techniques.
Maintaining & writing blog posts on qavalidation.com!
Publishing video tutorials on youtube.com/qavbox
Java.lang.String do not have any inbuilt method as Reverse() to reverse a String, rather we can use Java.lang.StringBuffer which has an inbuilt Reverse() method. Let’s see the implementation – Using String – We are taking individual characters from the str and printing in reverse order. Using StringBuffer – Hope this helps!
The singleton pattern is a software design pattern that restricts the instantiation of a class to one “single” instance. Ensures that a class can only have one object, so no other classes can create object To implement singleton pattern in a class, we need to have Private constructor of the class to restrict object creation outside of…
In this post, we will be learning why we need to use Base classes for handling different browsers and then will see an effecting way to share driver object across different files in side project. Let’s understand why do we need to use this approach, what’s the issue with classic approach of having the driver…
In one of our previous post, we have seen how to use default testNG html report to understand the pass, failure and skip tests and debug the tests. In this post we will be seeing how to send log messages and attach screenshots to emailable-report.html and index.html We will use Reporter api to achieve this.…
In a web page, we see lot’s of links which directs user to different other screens of same or different domain. As a QA it’s always difficult to gather all the links of a particular page or whole site and test them one by one to make sure they really work. We can actually automate…
TestNG provides a way to get the data from external sources like from excel/textfile/arrays which helps to prepare data driven framework in automation. @Parameters – pass parameters from the testNG.xml @dataProvider – Pass the parameters as a 2D array. reference – https://testng.org/doc/documentation-main.html#parameters In this post we will look into the testNG @Parameters Let’s see the code implementation…
In our previous post, you have seen how to use testNG dataProvider to run selenium tests multiple times, mostly we have hard coded the 2d array to have test data, but most people would like to read the test data from external file sources like excel, json or xml. In this post, we will see…
In one of our previous post we have seen what is dataProvider and how to write the syntax and also how we can get the object array to tests. In this post, we will see how we can use this concept into our selenium tests. We will use 2 different sets of login credentials [valid…
Cypress contains() is used to identify the one or more browser element[s] based on the text. Example – In Cypress, The link with text “SignUp Form” can be identified as cy.contains(‘SignUp’).click() or cy.get(‘.myhmenu’).contains(‘SignUp’).click() The above command will locate the element with text ‘SignUp’ based on a parent element .myhmenu Note – contains() can be used…