this script uses multithread and multiprocess makes more easier to run auto testing for mobile apps with logging . this is the workflow of the script :
PS : this project can run on Windows and Linux.
You can find detailed installation of all used tools in my old repo : https://github.com/YonK0/appium-multithread
Appium is a mobile automation testing tool which is used to automate mobile applications on different mobile operating systems such as Android and iOS.
personally i tried with nox , bluestacks and genymotion (best one for me ).
Android Debug Bridge ( adb ) is a versatile command-line tool that lets you communicate with a device.
1.adb address and port you can find in parameters on the emulator for example :
2.after you got the address and port copy them to devices.txt if you want that devices included.
now have adb and appium installed and setted up , let's run our script !!!
as the image show , we are ready to run the script :
python multitask.py
Now you can see all instances are running the auto testing at the same time , meanwhile the logging is running too (automation.log).
Check log while the multitasking in running : tail -f automation.log || or notepad++ in windows
PS: you can open whatever number of instances you want , just make sure you have enough resources to run it !
Also i updoaded a simple video , showing how it works with 2 bluestacks instances (windows) : https://www.youtube.com/watch?v=DzMka7yeTKo
Im willing to upload another video showing more complex steps with more instances , on a Linux machine in the future. Also im willing to improve these Readme file , so please enjoy it !





