This bot is based on Selenium and Selenium Grid to perform automated tasks on various website (sample test given for SoundCloud).
Make sure to have the correct driver for the browser you prefer to use installed and the location mentioned in the Selenium Grid driver initialization.
There are three ways to start the test.
-
Using python: if you prefer python as your coding language, you can use Pyjnius. Please check main.py file for instructions.
-
Using GUI: there's a sample class FrameMain.java to create a GUI and call StreamMain.java file. You can setup the appropriate fields and call the functions accordingly to initiate different tests.
-
Directly: to start a test directly, use Stream.java file.
All the steps requires four set of informations:
- Number of threads
- Hub host
- Hub port (1)
- Node port (based on number of nodes)
The function automatically allocates the tasks to different nodes. If any of the provided port is busy, the bot will automatically select the next available port.
There are two steps involved in shutting down the tests
- Stopping the running threads
- Calling a POST or GET request to
"http://" + hub_host + ":" + hub_port +"/lifecycle-manager?action=shutdown"
where hub_port is the host address of your hub and hub_port is the port number of your host.