Installing an agent on a server is very useful. the agent will be avaiable to all users on the account, which can easely run thier test on it.
I used an ubuntu server, running on VMware virtual machine for this example.
First thing you need to do is go to a machine with UI, and download the linux version of the agent from here, click on downloadd for another platform, and choose Linux.
Now copy the “TestProjectAgent_x64.sh” file to the headless machine via network or VM mapped folder. I will show how to use VMware mapped folder here, but other VM options might be different.
Select your machine and go to the Edit option:
Then navigate to the options tab, choose shared folders, click add and add your path:
Click OK and run your machine.
Run the command
sudo vmhgfs-fuse .host:/ /mnt/ -o allow_other -o uid=1000
You will be asked for your password, insert it and continue.
Now type: cd /mnt/
Now type: ls
You should see your folder, now enter this folder using: cd FOLDER_NAME/
Now type ls again, you should see the files inside.
Go to the folder which houses TestProjectAgent_YOUR_VERSION.sh file, and run the command:
chmod +x TestProject_Agent_YOUR_VERSION.sh
Now run: ./TestProject_Agent_YOUR_VERSION.sh
And follow the instructions given:
At the end it will ask you if you want to start the application, type y and enter.
Type the command: sudo apt install net-tools
Save the number shown after inet, this is the agents IP, you will use it to remotely register your agent on Linux server.
Now open TestProject application with chrome browser, go to the agent tab and click Register agent: (you can browse to TestProject application from any desktop that have a browser as long as it on the same network as your Linux server)
Type in the agent's IP saved from earlier, and choose a name for your agent:
Click save, then register:
Congratulations! you have registered your Agent! it will now show in your agent tab:
And is available for use!
To run the agent once you restart the server:
TestProjectAgent command from the
And the agent will start.