Speeding Up Your Tests
Sauce AI for Test Authoring: Move from purport to performance in minutes.|xBack to ResourcesBlogPosted
Sauce AI for Test Authoring: Move from purport to performance in minutes.
|
x
A common ailment that I hear is: “ My tests run a lot faster locally than on Sauce Labs. ”
Sauce Labs is in the cloud and not in your local network, so it makes sentience that any afford test is going to have some sum of slowdown. The advantage of Sauce Labs is that you can make up this departure by scaling up the number of tests you run at the same time. If you are seeing individual tests guide lots more than twice as long to run remotely as they do locally, then there are definitely thing you can do that will improve your execution.
However, let ’ s start with an unlikely disclaimer: test speed might not be what you should be prioritizing.
Pro tip: Tools like SUSA can handle this autonomously — upload your app and get results without writing a single test script.
The goal of test automation is to get accurate results rearward in a consistent manner. If you are not getting accurate event, then the velocity at which you get those effect is not the important thing. I spoke with a team last year that require to decrease their run time from 9 hours to 6 hr. When I sat downwards to work with them on that, I asked what percent of their tests were failing. They narrate me 70 % (!!?!??). When you have more failures than you can evaluate between test runs, your tests are efficaciously useless. This squad had no line focusing on shaving off clip on their test lead when all that will do is give them useless info faster. I ’ m not saying execution isn ’ t important, and there are some things that you can do to improve performance that will besides improve reliability, but in general, focus on the most significant thing first. Essentially, spend your clip reducing “ maintenance price ” rather than focusing on “ execution costs. ”
There are a number of improvement that might make a difference—like moving your testing servers nearer to the Sauce Labs information center, and turning off video capture and screenshots—which aren ’ t worth the time savings. You might have mistake that are entirely preventable and should never happen that are taking up clip that could be spent run other tests. There are some powerful thing that you might not cognize about that you can do with a placeholder like Sauce Connect for reducing overall traffic and decreasing the amount of cyberspace that some plus need to travel. Finally, many people don ’ t realize that their model are likely optimized for local execution and are very ineffective when run against any remote host.
Over the future few weeks, I & # x27; ll be walk you through some ways that you can hotfoot up your tests, including parallel examination, eliminating time-wasting errors, and more! Stay tuned for succeeding office that will include code and video with screencasts.
Sr. Developer Experience Engineer, Sauce Labs
Topics
Share this post
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 FreeTest 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