About
Grunt is a NodeJS plugin that helps you automate many development routines. Further instruction contains Windows examples but it would work for Linux and MacOS as well. The only difference – NodeJS installation process.
Programming and DevOps blog
Grunt is a NodeJS plugin that helps you automate many development routines. Further instruction contains Windows examples but it would work for Linux and MacOS as well. The only difference – NodeJS installation process.
In HeidiSQL MySQL client you can save queries that you use often. All you need to use a query again and again is save it as a snippet.
Using TestNG console output can be very inconvenient if you have lots of test cases. The better solution is to create an HTML report containing detailed information about testing progress. You can use the Maven Surefire plugin for this. Surefire report is a part of the project maven website, so at first we need to find out what is it. Continue reading “Verbose TestNG report with Maven Surefire”
As you know from this post using a separate class for each web page element is a good practice. Working with forms I recommend you to follow this practice too. Let’s take a look how can you interact with web forms with Selenium Webdriver.
In the previous post I have written about how to get started writing tests in Java with Selenium Webdriver. In this post I’ll guide you how to write a simple test using the project structure created in the previous post. As an example, I’ll use this website (fullstackvlad.com).
A correct question is a half of the answer. To write an accurate test you should first define a criteria of correct work (it’s also a great way to know your system better!). In this example, I’m going to check if fullstackvlad.com main webpage contains the search input (marked by the red rectangle in the picture below).
Continue reading “Creating a simple webpage test with Selenium Webdriver”
A Gif from Developer’s life
Note: This note is about using Selenium Webdriver with Java. You can also read about using Selenium with Nightwatch JS in this post.
Selenium Webdriver is an amazing tool allowing you to interact with browsers installed in your system. It allows you to create test scenarios like “open this page – check element is visible – click on this button – check something happened”. This testing approach is called behavior-driven development (BDD). In other words – you make a program which will do the same work you do while performing tests during the development process.
Selenium itself is a tool to control a browser. To write testing scenarios you should use a programming language like JS or Java. Full list of supported languages can be found on this page.
Why Java? Java is a very popular programming language having a great library of modules which allow you to interact with databases, SSH servers, etc. Due to this you will create extremely powerful testing scenarios.
A Gif from Developer’s life
A Comic from Things in Squares
Generally a patch – is a file containing source code differences. In a patch you can specify which line in which file should be added, updated or deleted. The structure of such file is standardized – that means if you create a patch file in Windows you can easily implement it on Linux.
Let’s imagine you have a project you work on. You have a production server and a development workstation. Before starting your work you copied the production source code to the workstation and initiated a Git repo there. After you finish updating you need to apply updates on the production server.
How can you do that? The easiest way is to create a patch.