2 minutes readWhy structure your integration tests ? When the number of integration tests grow is a good practice to separate the tests based on the feature/api that they are testing. The advantages of doing this are: easier to maitain as the tests for a specific feature/API are grouped in a specific category easier to run the… Read more »
Posts By: admin
How to Click a Link by Text in Selenium WebDriver Java
< 1 minute readHere is how to click a link by text with Selenium WebDriver in Java using the built in WebDriver helper methods or by XPath: Click link by full text using Selenium WebDriver WebElement linkByText = driver.findElement(By.linkText(“My Link”)); linkByText.click();
How to Take Screenshots with Puppeteer using Headless Chrome Browser
3 minutes readWhat is Puppeteer? Puppeteer is Node library that you can use in order to control Headless Chrome with the DevTools Protocol. The Chrome DevTools Protocol allows for tools to instrument, inspect, debug and profile for Chromium and Chrome browsers. Puppeteer – Headless Chrome Node API works only with Chrome and uses the latest versions of Chromium. Chromium… Read more »
How to Debug ES6 in WebStorm with Babel
< 1 minute readHere are the steps you need to follow in order to debug ES6 code in the WebStorm IDE. After this, you’ll be able to take advantage of all debugging advantages, like setting breakpoints, moving away from console logs and faster understanding of the code of your application. Prerequisites for Debugging ES6 in WebStorm IDE … Read more »
How to Use the DataProvider in TestNG with a JAVA Example
2 minutes readWe are going to show how to use the DataProvider in your test cases created with the TestNG unit testing framework. DataProvider are used in order to create data-driven tests. Basically, it will help you to run the same test case, but with different data sets. Examples of DataProviders We are going to use the… Read more »
How to use the Overview, Home and Back buttons in Appium for Android
< 1 minute readUsing the Overview, Home and Back native buttons is pretty straight forward using WebDriver and Appium. Below there are the code examples for all the 3 buttons: How to click the Back Button on Android with Selenium WebDriver and Appium public void clickBackButton(){ ((AndroidDriver)driver).pressKeyCode(AndroidKeyCode.BACK); } How to click the Overview Button on Android with… Read more »
How to use User Defined Variables in Apache JMeter
3 minutes readIn order to define your own variables and reuse them in your tests, it’s easier to use the User Defined Variables from JMeter. Here is how to create a variable and use it in an HTTP Request from your JMeter Test Plan. Steps 1. Open JMeter (here is a more detailed post on how to… Read more »