Monday, October 30, 2023
Saturday, July 22, 2023
An Introduction to mind maps for testers
Why?
- Similar to identifying test conditions and done as part of the test analysis activity.
- Better medium to convey the test scope to other stakeholders than written test conditions.
- As relationships between branches and a complete picture can be seen, it can be a better guide than test conditions when test design is done.
How?
- Think in terms of categories, where supersets should be closely related than subsets.
- Think in terms of use case actors.
- Think in terms of quality characteristics
- Think in terms of architecture
- In terms of success and failure interactions.
- In terms of design techniques
- Classification tree
- Write in short form
- Level of detail should be decided on project requirements and constraints. If you have broken it down to the level of high-level test cases you have gone too far.
Sunday, April 16, 2023
Multi Tab Support in Selenium Web Driver
Selenium Web Driver is capable of handling multiple browser tabs. Though the requirement to automate workflows that span multiple tabs is one that automation engineers don’t come across all the time, it’s always good to know how it can be done.
Saturday, April 1, 2023
Selenium Custom Locators
Friday, March 10, 2023
A Comparison of Network Interception capabilities between Cypress and Selenium
To evaluate this capability I went about automating the 3 scenarios found below,
- Intercepting and waiting for a network resource attached to a web page to be received to the client side.
- Intercepting and simulating 400 and 500 errors.
- Intercepting and changing response payloads.
Saturday, February 25, 2023
Abstracting the Test Layer using TestNG
Leaving abstraction out of the test layer can in time lead to duplication of the logic as well as having to spend more time than what is required to script new scenarios. This post will discuss how the test layer can be abstracted and decomposed using TestNG.
High-level Steps
- Start with designing and implementing test cases so that they are atomic
- Encapsulate the test layer by scripting the test steps and adding assertions required to validate the component. Then put a mechanism in place to read the test data from an object that can be passed from one test class to another as required.
- Finally, use the Factory feature in TestNG to compose the larger scripts using the test classes.
- Validate that the dropdown page loads the dropdown and that the values are as expected.
- Validate that the dropdown allows the user to select the option he wants to select.
Test Class 1
Test Class 2
Factory Class
[1] - https://the-internet.herokuapp.com/dropdown
[repo] - https://github.com/handakumbura/SeleniumAutomationEmployerProfile/tree/feature/atomic_test_cases
Monday, January 30, 2023
Portability testing a web application UI with Selenium
Portability testing of web application UI can easily be handled with Selenium. To handle cross browser testing you can implement a driver instantiation pattern like the one shown below,
For cross mobile agent testing, you can use a TestNG data provider to pass in the device types into your test method and repeat the test for as many emulated devices as you would like.
Find the complete project here, https://github.com/handakumbura/SeleniumAutomationEmployerProfile/tree/feature/cross_browser_cross_agent
Saturday, January 14, 2023
How to read the user selection from a radio button group using Selenium?
SeleniumUtil library has been occupying my free time for the past couple of months. Since I’ve already written at length about what it is I won’t do that again here but if you really want to know you look here [1] [2].
When I implemented the abstraction wrapper for the HTML radio button group I ran into a problem. How would someone go about reading the user selection form a radio button group? Take a look at this HTML block,
Saturday, January 7, 2023
SeleniumUtil 0.7.0 is now available with a few Java Script utility methods
Abstraction helps to promote code reuse and reduce development time among other benefits. When considering Selenium based test automation, you can abstract at many different points such as at dependency, infrastructure, technology, page, component or even at the element or locator level. SeleniumUtil is an open source library that aims to provide generic abstractions and other useful utilities so that you don’t need to worry about them in your Selenium based test automation projects.
Version 0.7.0 is now available in maven central and it provides a few technology level abstractions in the form of a few parameterized Java Script methods.
Usage
-
Why? Similar to identifying test conditions and done as part of the test analysis activity. Better medium to convey the test scope to other ...
-
whats covered: creating a custom mediator to invoke shell scripts for ESB 4.8.1. 1) Create a Mediator Project Generate a medi...
-
whats covered: fronting a bearer token secured endpoint using a mediation policy for APIM 1.10.0 If a requirement arises to front...