Inside brief, that is an internal API to which you could send a good consult and you may perform certain steps towards app top from the inside the exam. It is very simple to activate:
QaApiHelper::deleteUser(user_id);
It’s understandable that QaApi is only able to works having shot pages that will be merely accessible through a keen intranet.
Amounts of Badoo analysis
Nearly at each fulfilling we share with anybody just what analysis level i have within company. I’d like to temporarily list those which try interesting about direction regarding Selenium examination:
- Devel ecosystem assessment: Devel are a copy of development along with its individual angles and internal characteristics.
- Take to comparison: Shot is a production ecosystem which is available out-of an enthusiastic intranet via a particular Url, and you can which is an integrate off learn code and also the activity are tested.
- Staging assessment: Staging try typically the consequence of a comprise of your discharge branch and grasp.
- Design investigations.
Parallel Selenium evaluation to own subscription
Let’s go back https://datingmentor.org/pl/airg-recenzja/ to our very own test. Imagine that you’re you to definitely mind-exact same QA engineer who’s now assigned which have practise the brand new membership shot to function from inside the synchronous with the several photos as well as on presenting.
I want to encourage you one to photos work with a production ecosystem, frankly, they have an equivalent affiliate ft. It’s very visible you to definitely in the current put-upwards this is not you can to run tests within the parallel. For many who stimulate a couple of these assessment a couple of seconds apart on various other photos, then your 2nd try attempts to carry out a profile towards the Badoo in the event the very first has already authored you to definitely, and it will inevitably falter:
How can we solve this dilemma away from ours? How can we make sure that the test always have an effective fresh Facebook representative?
Initially I tried to eliminate this dilemma the best way. We composed an enthusiastic mysql table with the that we brought in multiple yourself-written Twitter users and you will designated its status since ‘available’. The test got a user out of this table, and you will changed the updates to help you ‘busy’. In the event the there is certainly zero available affiliate, the exam damaged, supplying the relevant alerts.
This program got multiple clear downsides. Firstly, if the way too many try days was basically triggered meanwhile, there had been diminished account offered there try nowhere to buy them off. In addition to, for some reason, the exam might neglect to give up an individual in the bottom (such whether it try stopped by pressing ‘Ctrl+C’). None on the was appreciated for the days whenever you will find faster than simply one hour to go before discharge due date.
We soon got fed up with volatile accidents and out-of-control statuses with Facebook accounts and you may started initially to pick an effective most readily useful services…
The new Chart API
Fb keeps an effective API that allows you to definitely would try users in order to services them – designers.facebook/docs/graph-api. It’s organized rather just: your establish brand new demand you need after which send it so you’re able to the latest Facebook machine, then the solution return in json structure.
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).
- Just how many registrations for every single software is limited. Quote: “Per app you simply can’t would over 2000 test pages.” Conclusion: you ought to continue amount off profiles.
- A test associate which has merely become composed is only able to come together with you to software. In this situation the applying ‘s the website name where in fact the service is situated. Into the Badoo, staging and you may shots are in different domains. Conclusion: once you keep amount of users you need to categorise her or him because of the application id.