In AWS, an instance is a VM (Virtual Machine), a container etc. In our case, the instance will be a VM.
Creating an instance for Agilitest/Jenkins in the AWS cloud.
To create your instance you will go through 7 steps. To start creating an instance, click on "launch instance".
Step 1: Choose your image
Agilitest needs a Windows distribution. In the search bar, enter "Windows 2016" and select the "Microsoft Windows Server 2016 Base" image.
Step 2: Choose the instance type
For the choice of the instance type, a t2.small type will suffice. However, for comfort, I recommend using a t2.large or larger.
After selecting the type of instance you wish to use, click on "next".
Step 3: Setup the instance
For this step, no changes are required to get the instance working. You can proceed to the next step.
Step 4: Storage
The default configuration is sufficient for our instance. You can proceed to the next step.
Step 5: Tags
This step makes it easier to read your instance list. It is not necessary to add tags but it will simplify your reading.
Step 6: Security group configuration
First of all, you will have to create a security group. Name and description are open, it is up to you to fill in the information according to your configuration.
The type field allows you to choose with which protocol you will connect to your instance. The choice of a connection with the RDP protocol is simple and perfectly functional.
No modification is necessary on the protocol and the targeting of the ports.
In the source part, choose "My IP" so that only your machine can access your instance. If you need to access it via another IP address, you can add a new "custom" rule with the IP address of the machine you want to access.
Once done, you will need to click on "review and launch".
Step 7: Launch the instance and create the access key
Click on "launch", a window will open to select or create a key pair. If you already have a key pair, select it. If you do not have one, select "create a new key pair". Give it a name and upload it.
Be careful, you must save your key or you will not be able to access your instance. You can now launch your instance.
Connecting to the instance
Now that your instance has been created, you will have to connect to it. To do this, click on your instance once it has started and then click on "connect". You land on the connection window of your instance.
You will first click on "Get password" to obtain your password.
Here, you will have to get the key downloaded in step 7 via "Browse" and then decrypt this key to get your password.
Your password will not change from one connection to another, even if you stop your instance. So remember to write down your password so you don't have to repeat this step.
You can now download your remote desktop and connect to it with your password.
Once your instance has been created and you have logged in, you will need to install Agilitest.
First, download Agilitest and JDK 10 (required for Jenkins). Then, launch Agilitest from the settings and download ATS settings and java (JDK) settings. Then go to Tools and download Jasper, Maven and Jenkins (embed server version).
If you have a Git you can link it to your Agilitest. To do this, go to "settings", and click on add in git account.
To finish, you will need to connect to your Jenkins. Click on "connect" and then connect locally via a browser to the address localhost:port
In Jenkins, go to Manage Jenkins > Global Tool Configuration and install the JDK 10.
Optionally, still in Manage Jenkins > Configure system, you can add your github server to be able to replay your tests. However, you will also have to link your github to Agilitest. You can do this directly in the Agilitest settings.
Your instance with Agilitest is now ready to perform your first tests.