Using loops to test complex apps

Using cringle to prove complex apps Thomas Lavin February 12, 2020

February 24, 2026 · 3 min read · Testing Guide

Using cringle to prove complex apps

Thomas Lavin
February 12, 2020

There are many complex scenarios that you can now reliably cover with automated testing. If you want to learn more about iteration in mabl,register for our webinar this Friday, February 14.

Register Here


As people, we often postdate the same steps every day. Whether it ’ s the way we take on the way to work or our nightly bedtime routine, these eyelet continue and adapt to our everyday alteration. At mabl, we believe your automated tests should too.

To us, the best exam are the ones that adapt to alteration in your covering. Your tests shouldn ’ t break because you ’ ve added a new lineament to your app, nor should it fail to test a portion of your app because it ne'er select the newly added choice in a dropdown. By specify up a set of steps that repeat based on real data in your application (such as the number of choices in a dropdown or count of a specific element on the page), you can more easily make complex examination that cover more of your covering, are more robust, and are faster to create and maintain. & nbsp;

Introducing Looping

We ’ re excited to announce support for looping of steps within mabl to enable you to test more complex exploiter journeys in your application - with no coding necessary.

Say you ’ re testing an e-commerce website with a standard that appears above every page of your search results. Verifying that the banner appears above every page of those same results can be tricky to automatize. In this case, simply looping a static routine of times would well separate your exam if a page is added or removed. Instead, make a loop based on the number of available pages during that run of the test, and you ’ ll never need to redact that exam again!

Looping Diagram

Any reclaimable flow in mabl can be statically set to loop one clip to 100 times, or dynamically, based on the number of times an element appears on the page - and more. Since you can store steps into reusable segments (flowing), the same stream can be expend multiple times in multiple tests. Not only will you never have to maintain your tests, but you won ’ t have to rewrite your stairs either - preservation you even more clip!

 

For autonomous testing across multiple user personas, check out SUSATest — it explores your app like 10 different real users.

Inserting a flow into a tryout

Need to alter what steps are looped across your tests? Just update one stream and mabl does the relaxation. All your tests will be automatically updated to use your newly updated flowing. This means no more tracking down every test that use those steps and updating each by hand.

Test loops are particularly useful when:

  • Skipping six month before in a date-picker element
  • Asserting that all elements in a dropdown are shown
  • Cleaning up test data created earlier in the test or deployment
  • Browsing through a list of results until the correct item look
  • Asserting that a constant component appears across multiple pages

Looping radio selections

Getting Started

To create a iteration within mabl, you ’ ll first take to regulate the number of times you want to loop. This can be a static number, like 5, or a variable value. For representative, the varying can be found on a number on the page, or the number of multiplication an element appears on the page.

When using a variable, be sure to delimitate itbefore you use it in a looping flowing. Once you have established the number of times you would like to loop, add the looping functionality to the stream and switch to the “ Looping ” tab. From here, select the varying or input the number of times you ’ d like to loop.

Once the loop is configured, just add your test stairs to the flow like you normally would! If you ’ d like the cringle to stop once you ’ ve found your ingredient,that sets the variable you use to 0, or sets the current value of to 0. This will end the flow and continue on to the remaining steps in the test.

Recyclable flow and looping are usable to all customer and trials in mabl, so try it out for yourself!Create a free account at .

Create a free account

There are many complex scenarios that you can now reliably screening with automated testing. If you desire to learn more about looping in mabl, register for our webinar this Friday, February 14.Register here.

Quality Engineering Resources

Automate This With SUSA

Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts needed.

Try SUSA Free

Test Your App Autonomously

Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts.

Try SUSA Free