Leading in a volatile, uncertain, complex and ambiguous (VUCA) world is not a straightforward job with predefined success recipes.
Search by labels
Thursday, December 31, 2020
Wednesday, December 30, 2020
Code quality analysis with SonarQube setup locally in a Docker container
SonarQube is a leading tool for continuously inspecting the Code Quality and Security of codebases and guiding development teams during Code Reviews.
This tutorial will cover the steps for setting up a SonarQube instance in a Docker container on your local machine and performing an analysis of a test automation project developed in Java and built with Maven.
1. Install Docker and get the SonarQube image
Depending on the machine's OS, Docker is installed in different ways. In the case of this tutorial, the operating system was MacOS so Docker Desktop was initially installed.
Run in terminal: docker pull sonarqube
2. Start the SonarQube instance
Run in terminal: docker run -d --name SonarQube -p 9000:9000 sonarqube
Access the SonarQube instance at http://localhost:9000/ and login with username admin and password admin.
3. Create and configure a new SonarQube project
4. Run the SonarQube analysis of the Java project
Run in terminal in the project's folder (where the pom.xml file is located) the following command, shown also in the previous step:
mvn sonar:sonar \
-Dsonar.projectKey=automation-project \
-Dsonar.host.url=http://localhost:9000 \
-Dsonar.login=${token}5. Check the results of the analysis
The issues discovered come with detailed explanations and with the steps for fixing them.
As seen in this tutorial, it's free and simple to check the code quality of development projects regardless of their complexity, but the true power of SonarQube is unleashed when using the enterprise version and in a remote setup available for entire teams.
Tuesday, December 29, 2020
Thursday, October 22, 2020
5 Ways To Listen Better - TED Talk by Julian Treasure
Without listening there is no understanding. And without understanding there can be no progress.
Saturday, March 14, 2020
The Myers Briggs (MBTI) Personality Quiz
Wednesday, February 26, 2020
Monday, February 17, 2020
Crew Resource Management
Monday, February 10, 2020
Monday, February 3, 2020
A Just Culture
Monday, January 27, 2020
How To Speak So That People Want To Listen - TED Talk by Julian Treasure
Monday, January 20, 2020
How to build a test automation framework from scratch
As prerequisites, you need IntelliJ IDEA and Java Development Kit 8 or higher installed.
As learning examples we will be testing https://pokeapi.co/, a RESTful API that returns Pokémon data and https://en.wiktionary.org/wiki/, the online dictionary built by the Wikimedia Foundation.
1. Create the Maven project using the Serenity Cucumber Archetype.
2. Add the WebDriver.
3. Update the Serenity and Cucumber dependencies.
4. Setup the Cucumber reporting.
@CucumberOptions(
features = "src/test/resources/features/consult_dictionary/",
plugin = {"html:target/cucumber-html-report", "json:target/cucumber-json-report.json"})
public class DictionaryTestSuite {}
5. Run the Front-end test suite.
6. Refactor the test scenarios and make them easily extendable over time.
7. Extend testing on multiple scenarios.
At this point, the framework is up and running with Front-end testing capabilities. In the next 4 steps we will add the Back-end testing capabilities.
8. Add the JUnit and RestAssured dependencies.
9. Implement a basic GET request.
@Testvoid testPokemonJson() {RestAssured.baseURI = "https://pokeapi.co";given().log().uri().when().get("/api/v2/pokemon/2").then().statusCode(200);
10. Add tests for the returned payload.
11. Extend testing on multiple cases.
And there you have it, the test automation framework is fully functional.
You can also use the Jenkins Serenity plugin to execute such test suites remotely and periodically.
Friday, January 17, 2020
Mirror Neurons - TED-Ed Talk by VS Ramachandran
Tuesday, January 14, 2020
How to setup a performance test suite with Apache JMeter
To run JMeter you need Java Development Kit 8 or higher installed.
In this tutorial we will be testing https://pokeapi.co/, a RESTful API that returns Pokémon data.
1. Start by adding a Thread Group, through this component you will be able to control the number of threads, how they start and other aspects.
2. Implement a basic GET request for returning data about a certain Pokémon and add a Listener component to visualize the results.
3. Add Assertions on the response.
As shown in the video, you can check the basic elements like response code and message or go in-depth and extract other values from the payload with regular expressions (useful tool for working with regex here).
At this point the test is strongly hardcoded and hard to maintain over time. For example, if there were 100 tests in this suite and the server or the endpoint would change, you would have to manually update each one. So in the next step let's parametrize the test and keep the variables in a central component.
4. Centralize the variables in Config elements.
5. Extend the testing for multiple Pokémons.
6. Add a Summary Report and start testing on multiple threads.
A number of threads of 100 with a ramp-up period of 10 seconds means that each 100 milliseconds a new thread will be opened.
You can use the Jenkins Performance plugin to execute such test suites remotely and periodically.
Sunday, January 5, 2020
The Testing Pyramid
If your answer is yes, then you worked with an ice-cream cone testing anti-pattern:
What can be done? Keep the order and change the proportions, shape it into a pyramid:
Basically, the test categories in the pyramid can be grouped into two major sections - Business Facing Tests and Technology Facing Tests:
- Automated Unit Tests → these should be implemented by developers and can discover problems very fast and early in the development process. This interesting article from Martin Fowler's website about Apple's famous "goto fail" bug and OpenSSL’s “Heartbleed” bug makes more than a compelling case about their importance.
- Automated Back-end Tests → if the application's API is sufficiently documented, QA engineers can completely handle this point. From my experience, SwaggerUI is the bee's knees and makes an exceptional job in exposing and documenting APIs. Two reliable and efficient solutions can be used for Back-end test automation: Java with the RestAssured library or Apache JMeter, with the second solution bringing the advantages of having an easily understandable user interface and the ability to switch from functional to performance testing on hundreds of threads simultaneously with the flick of a button.
- Automated Front-end/End-to-end Tests → these should cover the main use cases of the application with the smaller edge cases already being covered by the two above points. The standard and widely accepted solution to use here is Selenium WebDriver with Java and Serenity BDD for easily understandable test definition and reporting (Gherkin's Given-When-Then).
- Manual Exploratory Testing → because Quality Assurance is much more than just test automation, it also involves critical thinking, observation and experimentation - human skills that technology cannot yet bring to the table (AI is a hot topic also in this field so in the upcoming decade things might change). I recommend this article from Bas Dijkstra which in my opinion debunks the "silver bullet" myth of test automation.






