Automated testing to improve software quality

General Add comments
by:

Automated testing is becoming more and more important. There are no human errors, it is easy to perform repetitive tests, it saves time and money and you will see the test results immediately so you can act on errors before the end-user will even notice! Manually testing to find defects or bugs is very time consuming, so why not help the testers? Why not automate the tests that take a lot of time when you test it manually or when you get easily human errors in the test? A quick check in your results will show every possible defect after a change or an upgrade. Test automation will improve the software quality and stability!

A few tips for setting up your test automation environment:

  • Decide which test cases to automate.
  • Test very often.
  • Create good quality test cases.
  • Create tests that are software updates and UI changes independent.

It is also very important to select the best test automation tool for your environment. In this article I will discuss two test automation tools that can be used for ServiceNow:

  • Automated Test Framework (ServiceNow)
  • Test Automation Suite (TrendIC)

Automated Test Framework – ServiceNow

The Automated Test Framework is a new application introduced in the Istanbul release. It is possible to create and run tests on the ServiceNow instance. You can create simple test actions like ‘Open a form’ and ‘Set field values’, but it is also possible to create your own test action by scripting.

How the simple test step works:

  • Add Test Step.
  • Select the action you want to execute, for example ‘Open a form’.
  • Select the next action you want to execute, for example ‘Set field values’.
  • Run Test.

The most commonly used components of the Automated Test Framework:

  • Tests
    • create an automated test with test steps.
  • Test Suites
    • To execute multiple tests in a specified order.
  • Test Results
    • To view the output of the test.

  • Client Test Runner
    • The Execution Frame will show you the exact test steps.

Pros:

  • It is a ServiceNow application and therefor integrated in ServiceNow.
  • Very easy to configure new test steps, just like all the conditions and filters in ServiceNow.
  • View live testing in the Execution Frame.
  • It is possible to set up multiple tests in the queue.
  • It is possible to create a test template to set up several test steps in a specified order which can be reused.
  • When an error occurs, it can easily be found in which test step it occurred with an added printscreen.

Cons:

  • It’s only available for ServiceNow.

In the recorded movie below I want you to show how easy it is to create a simple test case like creating a new incident with several fields set:

TrendIC Test Automation Suite – TrendIC

The Test Automation Suite by TrendIC delivers you several tools to get started with your test automation environment. It is a separate tool, so it can be used for all software. It is possible to create your own test cases and create a test scenario to run the test cases in a specified order. It is also possible to record your mouse and keyboard input and build your test case very fast this way. The Test Automation Suite will use everything that appears on the screen to click on, so you will not have to select a table but you will just create the test step to click on the text ‘Create New’ in the Incident section.

The most commonly used components of the Test Automation Suite:

  • ICDefine
    • To create an automated test case with test steps.
  • ICAssistant
    • To record your mouse or keyboard input and create test steps automatically.
  • ICPortal
    • To view the test results and to create scenarios and schedules.

Pros:

  • Possibility to integrate with other software, for example ServiceNow.
  • There is a possibility to schedule the test scenarios.
  • Everything that is on the screen can be used or clicked on (resolution and position independent).
  • ICAssitant creates very fast test steps with the recording functionality.
  • It is possible to create a global script to set up several test steps in a specified order which can be reused with parameters.
  • While running the test case, it is possible to record the test steps. It can easily be used for example creating manuals.
  • The Test Automation Suite can be used for all software, not restricted to ServiceNow.
  • When an error occurs, it can easily be found in which test step it occurred with an added printscreen.

Cons:

  • Unexpected windows in the test run can block the expected text search or image, for example ‘Remember my logon credentials’ messages. It is necessary to prevent these windows before automated testing, like ‘Remember me’ or ‘Don’t show this message again’.
  • ICAssistant mostly captures images instead of text searches.

In the recorded movie below I want you to show how the ICDefine tool works using everything that appears on the screen using several text searches:

I hope this was useful info! Please drop a comment if you would like more information!
.img[at].img

Leave a Reply