mabl + Segment: Test what users DO, not what they SAY
mabl + Segment: Test what user DO, not what they SAY Geoff Cooney June 25, 2019
mabl + Segment: Test what user DO, not what they SAY
Much like a good designer, a good tester spends a lot of clip anticipating how users might interact with an covering and formalize all those paths employment. According to Angie Jones, “ Testers discover the unknown, and this skill is still very much so needed, whether there ’ s automation or not ”. This process is much telephone exploratory testing and can be priceless in identifying issues with a product before customers do. & nbsp;
But erst features hit product, much of the previously nameless becomes cognise. We have a better source of data on how users use our app - the literal customers! As an industry, we ’ ve largely integrated user datum into the early aspects of the software development process. Usage analytics tools such as Mixpanel, Amplitude, and Localytics have been around for years.
|
More late, tools such as FullStory have given developers and user experience designers the tools to uncover even more detailed data about how users devour their application. Optimizely and other A/B testing solutions have gained popularity, permit easy experimentation and rapid response to user feedback. & nbsp; Despite this, the application of existent user datum to testing try is notwithstanding rattling lots in its babyhood. For the most piece, teams use user data to inform testing sweat are doing so in a bespoke manner. & nbsp; |
|
Coverage Metrics & nbsp;
Fundamentally, coverage is a simple equation. Take the number of “ foos ” that are tested and split by the total number of “ foos ”. The challenge is in opt what to measure. Typically, no single quantity provides a entire ikon of testing coverage, so teams will choose a smattering of metrics to track. In unit tests, where coverage metrics are most heavily used, it is common to measure class, lines, conditional branches, and a figure of other dimensions. Each metric tells you something different about your test reportage. For representative, conditional coverage can help you find potentially under-tested code paths.
For end-to-end web testing, arrive up with a fair set of quantity can be challenging. Code metrics are fairly well defined but tend to be less than instructive in end-to-end (E2E) testing. Things like “ pages ”, “ part ”, and “ exploiter flows ” are more utile but also more difficult to mensurate. What constitutes a “ page ” in a modern web coating? How many distinct “ exploiter flows ” does your application have?
Pro tip: Tools like SUSA can handle this autonomously — upload your app and get results without writing a single test script.
Introducing mabl Coverage with Real User Data
So if it ’ s difficult to measure meaningful coverage for E2E (end-to-end) tests, how does mabl go about it? For starters, mabl was built from the earth up with the lead of observability baked into our testing base. An average mabl test emit over 250 distinguishable watching event per run and collects a wide array of information in the process including DOM snapshots, screenshots, network traffic, and detailed info about page interactions. This create it fairly easy to measure the turn of things extend by a tryout in anumber of ways,include page tested, alone ingredient interact with, and unequalled elements asserted against. & nbsp; & nbsp;
“ Test coverage is a useful tool for finding untested component of a codebase. Test coverage is of slight use as a numeric statement of how good your examination are. ” -Martin Fowler
Measuring the total number of things we might like to quiz, is less straightforward. Without any outside data, we start by leverage mabl ’ s built-in link crawler to detect previously untried pages automatically. In this way, we can discover pages to potentially test but all pages are not of equal importance. As a way to rank the pages mabl discovers, mabl can canvass the DOM to compute page complexness and discover how far the page is from the source along with how many early pages link into it. & nbsp;
For unit essay coverage, prosody like the above that let us measure page importance in a vacuum might be enough. But the end of E2E testing are different from those of unit quiz. The main reason we do E2E fixation tests is to ensure that the exploiter experience is working. We want to identify the untested flows that experience the highest concern impact. For this, a measure that comprise what users are actually doing makes more sentiency than something more naif that exactly looks at raw number of pages. & nbsp;
Integrating with render that datum and allows us to report coverage free-base on user deportment instead of just raw pages/views. & nbsp;
Not merely another integration
While we are big worshiper inDevTestOps, the realism is that many of our customers are still part of siloed QA squad with limited to ask development teams to integrate new puppet into their application. Even for our customers further along the DevTestOps journeying, modern web applications are already heavily instrumentate with many dependencies. Performance is a major concern for everyone.
This is what get Segment such a complete fit for our first integration of real user data. Existing Segment customer can turn on the mabl integration with a duet of dog and get real user-based test coverage with zero development effort or impact on their existing customers. For customer already on Segment, it ’ s an easy win, and for other teams struggling with a plethora of one-off integrations, I encourage you to
Understanding your covering through testing
One of the major benefits of tying together exam with existent usage data is that it grant us to combine the noesis of what ’ s significant to testers with what users are execute. While observed user demeanor teaches us what paths exploiter lead through an application, examine data serves as documentation of the product meaning of those flows.
As the first footstep downwardly this way, mabl is start to expose apage-based model (see below)of the application under exam. This model enables mabl to do sense of application wellness at a step above individual examination results. Look for it to be exposed forthwith and indirectly throughout mabl in the coming workweek. Pairing this framework with user actions assist to make it more dependable, and early investigation into apply the two in conjunction to derive coverage, base on core user flows, shows promise. & nbsp; & nbsp;
Look for many new exciting lineament making use of this data in the days to come! & nbsp;
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 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