If test got studied so you’re able to erase a person shortly after in itself, it doing doing work consistently and you may better

Within the short term, this really is an inside API that you might send a beneficial demand and you may manage individuals steps towards application front from the inside the test. It is reasonably easy to turn on:

QaApiHelper::deleteUser(user_id);

It’s obvious one QaApi can just only really works having sample pages and that’s simply accessible via a keen intranet.

Degree off Badoo testing

Nearly at each appointment i share with anybody exactly what evaluation degrees we possess within our organization. Let me temporarily record those which try interesting regarding direction of Selenium evaluating:

  • Devel environment testing: Devel try a copy off manufacturing having its own basics and internal properties.
  • Decide to try comparison: Sample was a release ecosystem that’s available away from a keen intranet via a particular Hyperlink, and you may which is an incorporate regarding grasp password therefore the task becoming looked at.
  • Presenting review: Staging was usually the consequence of a provide of your own discharge department and also the master.
  • Creation investigations.

Synchronous Selenium tests to own membership

Why don’t we return to all of our test. Imagine that you are that worry about-same QA professional who is today tasked that have exercises the brand new registration take to be effective in the synchronous on several photos as well as on presenting.

I want to remind your one to shots work in a launch ecosystem, frankly, he has got an equivalent associate legs. It is also visible one in the current lay-upwards this is simply randki asiandating not you can to perform evaluating when you look at the synchronous. For many who stimulate a couple of this type of evaluation a few seconds apart towards other shots, then your next take to attempts to perform a profile to your Badoo if the earliest has already composed you to, and it will usually falter:

How can we solve this dilemma away from ours? How do we make sure that the exam constantly possess good new Facebook associate?

At first I attempted to eliminate this dilemma the best way. We created an mysql desk with the which i imported numerous yourself-created Fb profiles and you may designated their standing since ‘available’. The exam got a user out of this dining table, and you can changed its updates in order to ‘busy’. In the event the there is no readily available affiliate, the exam crashed, supplying the associated notice.

This product got several obvious drawbacks. To start with, in the event the a lot of test occasions was indeed activated at the same time, there are lack of account offered there is nowhere in order to get them off. Plus, in some way, the exam you are going to are not able to give up an individual at the bottom (such if it is actually dropped by clicking ‘Ctrl+C’). Not one of the try liked toward days whenever there was faster than an hour or so going till the discharge due date.

We pretty soon got sick of erratic accidents and away-of-manage statuses having Twitter account and you can started initially to look for an excellent greatest service…

Brand new Graph API

Myspace has a beneficial API enabling that perform take to pages and to perform him or her – builders.facebook/docs/graph-api. It is organised fairly only: you formulate new request you want immediately after which send it so you’re able to this new Twitter servers, right after which the solution returns in 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).
  • The amount of registrations for every single application is restricted. Quote: “For every software you can not do over 2000 attempt pages.” Conclusion: you really need to keep matter out-of users.
  • An examination associate which includes merely come written can simply collaborate having one app. In cases like this the application is the website name where the services is. In the Badoo, staging and you may photos are located in various other domains. Conclusion: once you keep matter of profiles you really need to categorise him or her of the app id.

Laisser un commentaire