The Eschaton: What The End Game Looks Like For Testing with Selenium
Sauce AI for Test Authoring: Move from intent to execution in minutes.|xBack to ResourcesBlogPosted
Sauce AI for Test Authoring: Move from intent to execution in minutes.
|
x
Blog
The Eschaton: What The End Game Looks Like For Testing with Selenium
This is the first in a serial of spot by QAOnDemand, which offers self-service QA scripting and testing. For more information, visithttp: //qaondemand.com.

In theological circle, & quot; The Eschaton & quot; is defined as the end of clip. In fact, there & # x27; s a whole field of report callEschatologythat studies what the end of the world looks like. While I receive to believe their office parties are fairly grim, they ’ re unquestionably on to something. Visualizing the end result of what you ’ re building before always position down any foundation can leave to better decision-making, which is a key thing to keep in mind when setting up a mature testing environment for the first time. To assist you with this effort, I ’ ve devised azombie forwardness kitthat includes how to set up the five key constituent for construct a mature examine environment with Selenium:
A property to store your test (source code repository)
A property to run your trial (or aSelenium server)
A mechanism to trigger your trial (continuous integration server likeJenkins)
A place to log and track defects (a bug tracker likeBugzilla)
An army of human quizzer to test what can not or has not yet been automated
While you can certainly essay software without all five in place, it & # x27; s radically more productive with everything integrated and running smoothly. I ’ ll be diving into each component in more detail, so let ’ s get part with the guidebook!
A property to store your tests.
The Z: cause of your network is not a place to store tests. Neither is Dropbox. Your tests belong under source control. All of them. And by all, yes, I mean both manual trial scripts and your test automation codification. There are many understanding why work your test assets under source control is a full idea, but here ‘ s the top 26: A) Uninterrupted consolidation servers are designed to draw from repositories. This entail that if you put your test code in a well-organized repository, it & # x27; s relatively leisurely to configure your CI server to pull the latest copies from the repo and fulfil your tests mechanically. Plus when a test fails, it & # x27; s also easy to take a quick aspect at your revisions to see if a late change to the test code could be responsible for the failed tryout. B) Products like theAtlassian cortegeare designed to broadcast repository action. This is a good thing. Too often, QA become a siege-like quality where we solely come up from the dungeon when there & # x27; s a problem or free food. The trueness is that by continuously broadcasting QA test results into the main communicating streams of your company, you normalise the process of QA for everyone outside the grouping. QA tryout results turn less of an interrupt and more routine. That & # x27; s a good thing and a worthy goal. C-Z) Revision control. If your examination code isn & # x27; t under revision control, then you & # x27; ve be living in the wood too long. You & # x27; s ignorant so listen up! If it & # x27; s worth doing, it & # x27; s worth keeping path of. The ability to trace changes over clip is one of the near underrated creature out thither. If something breaks and you & # x27; ve got to pop unfastened the code, the first thing to seem at is what has changed. Did the code change? Did the exam change? With Git, CVS, SVN, Merc, whatever, you can easily see the evolution of your test code. It solves so many trouble and enables so many good thing such as skills development, accountability, and humility.
For autonomous testing across multiple user personas, check out SUSATest — it explores your app like 10 different real users.
A property to run your examination.
You & # x27; re reading this on & # x27; blog so this hardly need mentioning, but thither & # x27; s a nuance here worth talking about. One of the best qualities of Sauce Labs is the visibleness it create. The value in being able to rerun a test or seizure a screenshot can not be overstated. Whether you & # x27; ve provided a manual step-by-step set of instructions or you & # x27; ve render a link to a blind cast, the initiative step in remediating a bug is to reproduce it and observe it in action. So if that & quot; spot to run your trial & quot; is & quot; Joey & # x27; s Laptop, & quot; so you & # x27; re go have a bad clip. But if it ’ s a mostly available service that anyone can accession, it & # x27; s going to be a unhurt lot more fun.
A mechanism to actuate your tests
We see a lot of trial teams & quot; kicking off & quot; test manually. This is fine; there are mint of case where you need to do this, but it & # x27; s waaaay better when a continuous integration (CI) server do this for you. Getting your CI to manage your exam performance is tricky. Now I & # x27; d love to tell you there & # x27; s a simple script ./make-it-so.py, but alas, there is not. There are different types of bod, different deployment scenario, and different eccentric of check-ins that should fire off different type of trial. But the net-net is that in the end, you want your QA process to be seamlessly integrated into the development operation. And increasingly, CI drives maturation. Consider this question: In five years, is continuous integrating and automated deployment going to be more or less prevalent? Is it going to be more mutual or less mutual? The answer is yes, so why convey up the rear of the parade? Get out in front. The sooner your QA process is telegraph into your CI, the easier it ’ ll be in the end.
A place to log and dog defects
I & # x27; m depart to move quickly through this point because most of you probably have this at some stage. The one feature I & # x27; ve seen in the concluding few years that & # x27; s truly been a huge blessing to development is tying tickets to checkins, such that you can see the code that is colligate to the ticket. This makes it infinitely easier to quick find the business requirements associated with a tag and cross-reference it to the codification itself. If you can tie your test codification to tickets in a similar fashion, it ’ s so much the better because you & # x27; ve created visibility for both the created test and related revisions. I highly advocate you select bug-tracking software that perform this. It & # x27; s absolutely worth every expense.
An army of human testers to test what can & # x27; t (or has yet to be) automated
In its heart of hearts, quality assurance is a request for an opinion that is inescapably a human observation. & quot; Does it work as you ask? & quot; can sometimes be report in a way that can be automated. Sometimes it can be described in a way that a tester with nominal knowledge of the system can examine. Sometimes it occupy a domain expert to tell if something works as require. The point is, human testing invariably has been and always will be a part of QA. Anyone who says it can be completely automated is either an academic or a fool. So design for it and act towards an end game that apply human quizzer in a productive and efficient way. We think it & # x27; s helpful to break up the job of organizing human-based QA work into three buckets habituate the next steering.
a) Automate the simple clobber that & # x27; s leisurely to maintain or is slow. Automate the routine stuff that won & # x27; t break often, but when it does, it & # x27; s catastrophic. There & # x27; s no dearth of people who will recount you that with a full framework and their clandestine sauce, you can automatize everything. You can & # x27; t. And more importantly, it & # x27; s not worth it. Automation is fundamentally an economic trouble, not an engineering problem. You should only automatize that which the cost of automation is meaningfully less than the price of just go the check repeatedly by hand when need. The bottom-line? Don & # x27; t get dragged into complex mechanization strategies. Automate the simple everyday stuff in a uncomplicated and routine way.
b1) Outsource the medium stuff, such as layout, transcript writing, new lineament, and regressing mess on a well-defined but complex bug. Outsourcing works outstanding where ethnical nuance, domain expertness and a qualified point of view don & # x27; t matter all that much. The overhead is much lower than it used to be and in the sage words of Eric S. Raymond: & quot; Given plenty eyeball, all bugs are shallow & quot;.
b2) Outsource the creation of simple automation -- you cognise, like write your Sauce Labs tests. Just sayin & # x27;. When a well-defined bug gets see, receive an outsourced team write an machine-controlled examination to ensure it again. Test harnesses with a grand tests get built one test at a clip. * * *

c) Use your land experts as big guns. Focus them on the hard material – subtle features that command an understanding of how the code works or how a client sees the world. If your in-house QA engineers are testing to see if your upload feature right kick out an error for outsized file or veto formatting, then you are wasting valuable expertise. Again, it & # x27; s helpful to think about testing as an economic problem and price your top talent. Give your top dogs a full loaded cost and socialize the notion that it ’ s not a few hours, it ’ s a few dollars. Remind people of what they ’ re asking for in economic terms – that a detailed, cross-browser, multi-platform manual test by your in-house team is easily a $ 1,000 request. A uncomplicated question to postulate: & quot; Is that the better way to spend $ 1,000? & quot;
So, what now?
In conclusion, take time to work through your endgame. Almost all QA employment is time-bound, meaning we all employment as hard and as fast as we can prove until the clock bunk out. If nothing explodes during quiz, we ship. It ’ s not fair, but that ’ s the way it is. So if you don & # x27; t block off some time each cycle to make toward a best way of doing things, so you & # x27; re sell yourself and your squad short. Hopefully this post gave you a little perspective on what that end-game could look like. In the next post, we & # x27; ll get into specific of some of the puppet we & # x27; ve found to be most helpful and more specifics about what works for us. * * * Look, QAOnDemand fundamentally execute B1 and B2 for a living. We see a lot of citizenry & # x27; s QA travail. Our service are structured and priced to make it easy for you to say yes to modest outsourcing. We & # x27; ll knock out your intermediate examination without crushing you with a big contract or a lot of overhead. Plus we offer a becoming free trial with no strings attach, so give it a go. We & # x27; ll likewise bootstrap your Sauce Labs environment for you if you haven & # x27; t done so already. It & # x27; s much easier to add to a working system once it & # x27; s set up correctly. Net-net, a little assist in the beginning move a long way. Ok, & # x27; nuff said.
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