Execute Automation Testing in 3 Steps
Tags: testing, automation, webtesting
Published: 2018-03-20 04:37:43

---
title: Execute Automation Testing in 3 Steps
published: true
description: This article introduces automated testing, its challenges, and three easy steps to get started saving time by automating your software testing.
tags: testing,automation,webtesting
---
>**Due date: 23:59 p.m Oct 25th, 2021**
>**The State of Quality Report 2021**
>_Wouldn’t it be great to know how peers and experts are staying ahead of their quality assurance game? That’s why we're creating The State of Quality Report 2021 to collect the best QA practices from you, professionals of all levels.
We are happy to offer **the first 100 respondents a $30 Amazon gift card**, along with the final report from the survey results. [Raise your voice!](https://www.research.net/r/medium-devto)_

Automated testing is a method using an automation testing tool to write and execute automation test case/ test suite on the software application, comparing the actual results to the expected behavior and creating test reports.

However, the complexity may happen when running the test with the lack of programming knowledge, there are still so many other challenges:

In order to crack all the challenges, in this article, I will not only show you how to create test cases and execute automation test in 3 easy steps but also the solution to manage test & reports efficiently.

##__3 Magical Steps to Execute Automation Web Testing__

All magicians need the supporting tools and so does Web testing execution. My magical trick will be performed with the tool called __Katalon Recorder__ that can be installed in 3 seconds on both [Chrome](https://chrome.google.com/webstore/detail/katalon-recorder-selenium/ljdobmomdgdljniojadhoplhkpialdid) and [Firefox](https://addons.mozilla.org/en-US/firefox/addon/katalon-automation-record/) latest versions.

A few words about Katalon Recorder, it has been hailed as one of the alternative solutions since Selenium IDE no longer works from Firefox 55 onwards ([Official announcement](https://seleniumhq.wordpress.com/2017/08/09/firefox-55-and-selenium-ide/)). As the Toolmakers stated, “Katalon Automation Recorder records actions and captures web elements on web applications to let you generate, edit and execute automated test cases quickly and easily without programming knowledge requirements.”

And yes, Katalon Recorder is not the only one, there are some [Selenium alternatives](https://www.katalon.com/resources-center/blog/selenium-ide-alternative-firefox-chrome) out there, such as Protractor, Kantu or Robot framework but I just show here the easiest way and the most proficient tool to do the magical things ;).

Given a sample test case whose scenario is as below:

Imagine you have a service booking site that requires the user to log in, fill-up the form and submit to accomplish booking process. After changing a little bit in theme, you may wonder whether this function is still working or not. The 3 easy steps below will help you get rid of the confusion.

__Step 1: Create a new test case using Record function__

- Open Katalon Recorder and click “New” to create a new test case
![Katalon Recorder](https://cdn-images-1.medium.com/max/800/0*dY1e62yLhMhzaqfg.)

- Then click “Record” to generate the test case following steps:

- Access http://demoaut.katalon.com/profile.php#login (the Katalon execute automation demo site)
- Enter username/password (John Doe/ ThisIsNotAPassword)
- Fill in & Submit the form
- Log out
![Katalon Recorder](https://cdn-images-1.medium.com/max/800/0*9y-39__xOfVhuTis.)


__Step 2: Keep calm & Execute automation testing__

Click “Play” to run the test and monitor if the test case fails at somewhere, you can stop the playback and remove the bug right there.

You can change the “Value” input manually to test the function with more accounts.

The happy case should be shown as the image below
![Execute automation](https://cdn-images-1.medium.com/max/800/0*BBLCJzVBNc8Ghai4.)


And bring you back to the homepage without logging on any account.
![Execute automation](https://cdn-images-1.medium.com/max/800/0*31o134gGPwCoOVn7.)

__Step 3: Advanced Steps for Automation Test Expert__

If you want to put more variable test data to cover the different cases and run the test with these data automatically, Katalon Recorder supports data-driven testing which allows users to define data sets and execute test scripts that use these data.

- You should download the sample test data here and add the file named “test data.csv” at “Test Data” tab.
![data driven testing](https://cdn-images-1.medium.com/max/800/0*-Ir4M6NOzwlebclw.)

- Import the test cases that are saved as HTML file by click on “Open test suite” instead of clicking on “Create test suite” and open my sample test case.

- Click “Play” to execute the test automatically with the variable inputs.
![data driven testing](https://cdn-images-1.medium.com/max/800/0*8E3rIdPMLl5ssAeA.)

You can also export the Test Case as script in many languages, such as Java, Ruby, Groovy, Python, C# and Robot framework.

And that is not all, Katalon platform also offers the tool called Katalon Analytics that is to help you save all the test reports and display them visually through the colorful charts. You can upload your results directly to Katalon Recorder by clicking “Upload logs” (The cloud icon). You may be required for sign up a Katalon account at www.katalon.com (for free) and login to Katalon Analytics at https://analytics.katalon.com to create a new project.
![katalon analytics](https://cdn-images-1.medium.com/max/800/0*pN5srzvArQBKMhNW.)
Then come back to the Katalon Recorder windows and choose the project you want to upload the logs and click “Upload”
![upload report](https://cdn-images-1.medium.com/max/800/0*Q5NYtfGRj2c5J6MF.)
Below is the chart that shows my test results after executing the test case for 2 times.

![Test result](https://cdn-images-1.medium.com/max/800/0*Vy6jodNExinZgfRN.)
Although Katalon Analytics is launched as the beta version, it meets all my demand for the test reports, even shares the results with teammates easily.

##__Run Selenese (Selenium IDE) scripts on Chrome & Firefox__

It is the corner for Selenium IDE Fan who is depressed and disappointed after the official announcement of the end of Selenium IDE on Firefox 55 onwards. Some guys in Katalon seems to be kind to bring the hope back by allowing users to import Selenese script from Selenium IDE to Katalon Recorder. [Check it out here](https://docs.katalon.com/display/KD/Selenese+%28Selenium+IDE%29+Commands+Reference)

I will say no more about Katalon platform in this post, even they are all great & free, it should belong to another post that may be named “How to leverage Katalon platform (Katalon Studio, Katalon Docker, Katalon Analytics, Katalon Recorder) to make your testing life easier”, whatever.

Conclusion
Below is the summary of Katalon Recorder outstanding features:

- Record, play, and debug (pause/resume, set breakpoints) test cases.
- Fastest execution speed.
- Compatible with all Selenese commands, users can import original Selenium IDE tests into Katalon Recorder.
- Support file uploading for testing file input widgets (Chrome only).
- Easy flow control with if/else if/else and while commands.
- Support data-driven testing — data can be imported from CSV file.
- Advanced reporting with logs, screenshots, and (optional) integration with Katalon Analytics for historical reports and analysis.
- Export to Selenium WebDriver scripts in these frameworks: C# (MSTest and NUnit), Java (TestNG and JUnit), Ruby (RSpec), Python (unit test), Groovy (Katalon Studio), Robot Framework, and XML (for building custom exporter).
- Compatible with the latest Firefox and Chrome browsers.

So, executing automated test cases and managing test reports are not as painful as we thought. In general, with the wise testing strategy and a proper supporting tool collection, Test Execution or Automation Testing is no longer the big deal.

The original post: [Execute Automation Testing in 3 Steps](https://dzone.com/articles/execute-automation-testing-in-3-steps)