The LEAP

Automation insights and productivity tips from LEAPWORK.

All Posts

How to Build Cross-Application Test Automation

Business-critical processes of everyday work often involves several applications across environments, i.e. both desktop and web applications. This makes it especially challenging to test those processes with conventional methods.

Relying on programming for cross-application test automation is often both difficult and time-consuming as it would require in-depth knowledge of the systems and languages of the different applications involved. With visual automation design, a test case can be built and managed from one place, using the same intuitive logic across the entire flow.

In a previous post, we outlined how to automate desktop testing with simple flowcharts. We presented an example of a desktop-based business flow in an insurance company that was put under automated testing.

In this post, we outline an example of a test case that involves both web and desktop applications to show how the same, intuitive approach of flowchart-based automation can be used in a cross-application test scenario.

Specifically, the flow under test involves three applications:

  • A desktop-based CRM system;
  • A desktop email client;
  • and a web-based email application.

Mixing the automation blocks

The purpose of the case is to test the sending and receiving of an email to an address found in the CRM system.

The cross-application process represented by a flowchart. Sketching the process to be tested. As illustrated, the flow passes through several application boundaries. This sketch serves as the basis for designing the automation case.

 

The flow combines web and desktop automation. This is easily done with LEAPWORK by using a mix of Web and Desktop UI building blocks. 

A test case build as a flow in LEAPWORK consisting of various building blocks and connecting arrows. How to design the test case with LEAPWORK using flowchart-based automation.

 

There are blocks for each of the actions involved:

  • Starting applications
  • Finding and interacting with objects
  • Setting values
  • Etc.

In this case, we have also included a custom block (the purple one): The process of logging in to the CRM system has been created as its own reusable block. Check out this video walkthrough about custom-made building blocks to learn more.

Transfer values effortlessly across applications

A very useful feature of this test case is how easily values can be shared between applications. This is activated by the blue arrow in the flow.

The element used for verification in this test case is an email subject line; if the specified subject line can be found in the inbox of the web-based email client, the case has passed. The subject line is set as a value in a building block for desktop automation, and then it automatically serves as input in the verification step of the test case that takes place in a web application.

A screenshot of a Find Web Element building block in LEAPWORK.
The blue arrow represents the automated input feed to the verification step of the test case.

 

This direct transfer of values across applications and environment, without having to rely on intermediary steps, makes it incredibly easy to run varying test scenarios.

To learn how the automation case was build step by step, watch the instructional video below. It's also available in our Learning Center.

 

The benefits of automating a cross-application test case like this with visual flow-based design include:

  • Testers can manage the entire flow from one place.
  • The case can be designed in minutes and from then on, it can run repeatedly, 24/7 if needed.
  • The case can change hands without extensive handover between colleagues.
  • Values set in one application can automatically be used as direct input in another application.
Read the LEAPWORK guide: Test Automation - A Winning Game Plan

Read the LEAPWORK guide to reducing risk, lowering costs, and driving value with test automation.

Aske Denning
Aske Denning
Content Marketing Manager at LEAPWORK

Related Posts

LEAPWORK vs. Selenium Web Automation

Selenium WebDriver is great for automating browsers, but as a stand-alone automation tool it has some limitations. This post compares script-based Selenium automation with LEAPWORK web automation.

Reduce Maintenance Workload 97% with Context-Driven Test Automation

IT projects are multidimensional and difficult to perceive. How do you test a project with potentially infinite dimensions?

Prove Your Skills with a Test Automation Certification

When a company decides to adopt new methods or change existing processes, for example by rolling out new software, it often requires that employees upgrade their skill set or learn completely new skills. One way to ensure that an employee has the required skills is to rely on certification. The same goes for consultants who need to document that they are proficient in the tasks they are hired to do.