Check out how Virtuoso uses composable automation for the ultimate test reliability and authoring speed.
As promised, this is our overview of composable automation in action! We’ve gone over what composable automation is and its benefits, so let’s look at it in action within Virtuoso. One of the main benefits of composable automation is reusability, so I’ll take you through a step-by-step journey full of reusable checkpoints to show you how composable automation can transform your day-to-day testing.
We’re going to look at a Microsoft Dynamics 365 example journey checkpoint by checkpoint and show how you could run this exact journey on your instance of D365. We’ll start with the first checkpoint (shown below) of navigating to your URL. You’ll notice that instead of using the URL directly, the author has used a variable. This is an essential component of composable automation, as this is what allows for customization and reusability. Here, the variable contains the URL of a specific D365 instance.
Next is the checkpoint for logging into the application. You can see that each step involving data has a variable. When creating your tests in Virtuoso, you’ll set it up in its initial environment and set the values for the variables. With each subsequent environment you set up, all you have to do is change the values for that specific environment; then you’re off and running the exact same test with different data in different environments.
Obviously, not every checkpoint is going to be this easy. If you’re wanting to use data-driven testing along with positive and negative data sets, you can generate robust data right within the test steps. In this example, the author is creating a new contact within D365, and he’s using AI-generated data to test the process.
Let’s look at another way composable automation can be applicable. Let’s say you want to test multiple car booking websites. The processes for booking a car, whether from Avis or Enterprise, are extremely similar. You’re going to type in the city and select the location, set your pick-up and drop-off dates and times, and then browse the cars. You can set some steps to look for a manual car that seats four people and choose the car, then walk through the booking process. The beauty of composable test automation is that you can write all these steps for renting a car with Enterprise, make an environment with edited variables for Avis, and then run the same test on both websites.
Instead of rewriting the test steps manually or even copying and pasting them, you can simply open the Library Checkpoints and select the checkpoint you want to use, and Virtuoso will insert the checkpoint for you. Then it’s just a matter of entering the values for the variables and making adjustments to any steps that need it. You can also build tests based on different inputs. For example, for D365, the author uses class IDs to identify elements since in vanilla D365, they will all be the same. For car rentals, the tests use text hints like “Browse Vehicles”, but if the prompt for another rental site is “See Cars”, Virtuoso’s Live Authoring will show you the screen on a headless browser so you can see the new prompt and change the variable value on the spot.
Plus, paired with self-healing, your tests will heal themselves when encountering dynamic data or anything else that would cause run-of-the-mill tests to break. If you want to know more about Virtuoso’s composable test automation, book a demo with one of our expert team members, and they’ll show you how to leverage all the benefits of composable test automation for your business!