Extended Debugging with Sauce Labs
Sauce AI for Test Authoring: Move from intent to executing in minutes.|xBack to ResourcesBlogPosted
Sauce AI for Test Authoring: Move from intent to executing in minutes.
|
x
The addition of an feature to the Sauce Labs program makes it easy for QA engineers to gain brainstorm into network requests that can cause automated tests to fail. It likewise helps to identify application problems before shipping a new release to production.
That is because today, most coating are executed within the browser, so when a problem occurs, it & # x27; s indispensable to access the browser console logarithm to purpose the defect promptly. Extended debugging helps to achieve this. It also opens up new opportunity for append new examination reportage around analytical testing, net throttling, and more.
This clause provides an overview of extended debugging in Sauce Labs and what it can do for you.
What Does Extended Debugging Do?
There are advantages to using Sauce Labs ’ Extended Debugging feature over solutions like BrowserMob placeholder. It & # x27; s aboriginal to the browser and directly connected, with no additional layers between the testing framework and the application, and a lot of features out of the box.
You now have direct entry to browser developer creature that provide in-depth access to the internals of the browser and your web coating. Use the Extended Debugging feature to tail down execution issues, and get brainwave for codification optimisation. You can also debug outlandish tests, and use it with intercept requests, throttle, and more. This will help you diagnose problems quickly and give you extra test coverage, which ultimately helps you build web applications with confidence—and quicker.
This is an exciting feature that is good for Sauce Labs clients only, so I thought I & # x27; d discuss how it can be helpful to my team.
Out-of the-Box Features
The feature straight out of the box as of SauceCon18 allow access to existing browser developer tool, and Sauce Labs ’ usage browser driver for extended debugging or extra test reportage. I & # x27; m not going to dwell on existing browser developer tools hither. It & # x27; s important to realise where to find the certification for JS profiling, DOM changes, app runtime, mesh APIs, app performance stats, and more (seeChrome and Firefox).
Pro tip: Tools like SUSA can handle this autonomously — upload your app and get results without writing a single test script.
I & # x27; m interested in the custom browser extension, handling and mockup of networking requests, incur info about network case, intercepting and blocking postulation, throttling, and log type (network, metrics, and clock). I love when the code is clean, chip and straightforward. Here ’ s an illustration of how to add net throttling to specific tests or an full test suite by including a network profile or condition (by aim maximum download speed, upload throughput, and latency manipulation).
Network Throttling
driver.execute_script (& # x27; sauce: throttle & # x27;, {...}) | | -- stipulation // profile gens or stipulation | -- download // download speed | -- upload // upload speed | -- latency // beat trip clip
Intercepting Network Requests
driver.execute_script (& # x27; sauce: intercept, {...}) | | -- url // what request should be redirect | -- redirect // where to redirect | -- answer // what should be the response body | -- erroneousness // error value
Take the time to tinker! Many outstanding invention and new strategies start with individuals who are curious and enjoy to tinker with new tools released to the community. Let & # x27; s starting tinkering today by exploring intercepting network requests, network timing logs, and more features!
Building a Strategy Around Extended Debugging
Now, we are begin from scratch and building a strategy that work about Extended Debugging. Let ’ s shift from potter to focusing on strategy and need. The tool is more than a debugger for application performance or flaky tests—It & # x27; s another layer of quality checking.
It & # x27; s a pure fit for analytics testing to ensure that any of the analytics vendors likecomScore, Adobe Analytics (Omniture), and Chartbeatare triggered aright when end users access your web application. For instance, Chartbeat provides analytics about the content forGannett | USA Today Networkproperties. It helps produce actionable insights into what content to publish and promote, with a focusing on real-time information. The Chartbeat + Extended Debugging test finds the Chartbeat ping in the network calls and validates that Chartbeat trailing is picking up the expected requests for each page of the coating.
Take a minute and start outline a strategy or need by use a mind mapping technique to identify how you will use Extended Debugging. Everyone will have a different get point. I see other chance apply throttle offline or in other mesh conditions, analyse network performance, and more.
Conclusion
You can & # x27; t solve all of the world ’ s QA problems in one day. Take baby steps to tinker and build a strategy to increase your quality coverage using the available features from Sauce Labs. They will build confidence in your release before send to production, and after (shifting right). This new solution will help us to place application performance issues and failures faster, before impacting end users.
Greg Sypolt (@ gregsypolt) is Director of Quality Engineering at Gannett | USA Today Network, a Fixate IO Contributor, and co-founder of Quality Element. He is creditworthy for test automation answer, tryout coverage (from unit to end-to-end), and uninterrupted integration across all Gannett | USA Today Network products, and has assist modify the testing approach from manual to automated screen across several product at Gannett | USA Today Network. To determine improvements and testing gaps, he conducted a face-to-face interview survey process to understand all merchandise growing and deployment process, testing strategies, tooling, and interactive in-house preparation programs.
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