In short-term, that is an inside API to which you can upload good demand and create individuals methods towards the software front side from inside the test. It is very easy to turn on:
QaApiHelper::deleteUser(user_id);
It’s understandable that QaApi can just only work with take to users which can be just accessible via an intranet.
Values away from Badoo analysis
Almost at each and every appointment we tell some one exactly what assessment stages we enjoys in our company. Allow me to temporarily checklist those that are of great interest in the position of Selenium tests:
- Devel environment assessment: Devel try a copy of development with its individual bases and you may interior services.
- Try review: Attempt was a release environment that is available of an intranet thru a certain Url, and that is an add away from master password additionally the activity being checked out.
- Staging review: Staging is actually usually the result of an incorporate of your own discharge branch together with master.
- Development assessment.
Synchronous Selenium screening to possess registration
Let’s get back to all of our shot. Imagine that you’re one to thinking-exact same QA professional that is now tasked which have training the registration take to to focus for the synchronous on the several photos and on staging.
Let me encourage your you to photos work with a production environment, that is to say, he has the same user foot. It’s very noticeable you to in the present put-right up this isn’t you can to operate testing into the synchronous. For folks who stimulate a couple of this type of evaluating a couple of seconds apart into the other shots, then next sample tries to do a visibility on the Badoo in the event the basic has composed you to, and this will usually fail:
How do we solve this matter regarding ours? How do we make sure that the exam constantly features good fresh Twitter user?
Initially I attempted to solve this problem the best way. We authored an enthusiastic mysql table into the that i brought in numerous manually-written Myspace profiles and you may marked its position because the ‘available’. The test got a person out of this dining table, and you can altered its condition so you can ‘busy’. If there’s zero offered member, the test crashed, supplying the relevant notice.
This system got multiple obvious cons. First of all, when the way too many attempt times was indeed triggered at the same time, there were insufficient membership readily available there is no place to help you make them out of. Plus, in some way, the exam you will neglect to quit the consumer at the bottom (like if it are dropped by pressing ‘Ctrl+C’). Nothing of is appreciated into mornings when there is certainly shorter than an hour or so commit through to the release due date.
We soon had sick of volatile crashes and you will away-of-control statuses with Fb https://datingmentor.org/greece-dating/ account and you will started initially to pick an effective best provider…
The fresh new Graph API
Myspace enjoys a API which allows you to carry out shot users in order to operate her or him – designers.facebook/docs/graph-api. It is organised fairly only: you establish the request you want then posting they so you can the newest Fb machine, and the answer comes back inside the json style.
You receive an application id and secret when you register your application on FB (for more details see here - developers.facebook/docs/facebook-login/overview).
- How many registrations each software is limited. Quote: “For every single software you simply cannot would more 2000 test profiles.” Conclusion: you need to remain count out-of users.
- An examination affiliate which has simply already been written are only able to collaborate with you to software. In this case the application ‘s the domain where in fact the services is. From inside the Badoo, staging and you can images come in other domain names. Conclusion: after you continue amount of pages you should categorise them by app id.