Saturday, June 28, 2025

appium – Utilizing a small variety of out there person properties throughout a lot of threads


I am presently constructing a testing framework for purposeful assessments. I can run them in parallel utilizing Cucumber however I’ve run into an issue in creating customers for every thread (every take a look at requires a model new person).

I’ve a person.properties file with particulars for every new person created. Duplication would not matter for many fields and my emails are totally different every time as a result of I exploit one thing like this “useremail” + System.currentTimeMillis + “@instance.com”.

My drawback arises when reusing cellphone numbers. It must be a legitimate cellphone quantity and can’t be duplicated throughout accounts. I tear down customers with the cellphone quantity originally of every take a look at. However working over a number of threads causes clashes of numbers.

I’ve 2 saved numbers in my person.properties which I hope to cycle by utilizing a synchronized technique for every thread and lock that quantity to that thread. However I intention to have greater than 2 threads (as many telephones that I can connect to be trustworthy).

Each resolution I give you feels hacky and I am fairly new to this. Does anybody know of an excellent resolution to distribute a finite variety of person properties throughout a number of threads so they do not conflict?

Considered utilizing the precise system or emulator’s quantity (unsure if appium can extract that), however even when I might, my numbers must be UK numbers

Thanks to your assist.

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles

PHP Code Snippets Powered By : XYZScripts.com