For most test automation engineers, it is necessary to have a demo website in order to simulate a real website including different functions and elements.
The majority of these websites are e-commerce websites because they have different features and you can automate the whole process and placing an order and create E2E scenarios from logging in to checking out.
If you start practicing with a demo website, you may find the website is down the following day or week, and you cannot continue.
Let's get started 🚀
Amazon Lightsail is the easiest way to get started with AWS for developers, small businesses, students, and other users who need a solution to build and host their websites and web applications in the cloud.
Lightsail provides developers compute, storage, and networking capacity. Lightsail includes everything you need to launch your project quickly – virtual machines, containers, databases, CDN, load balancers, DNS management etc. – for a low, predictable monthly price. - Source: Amazon Lightsail FAQs
To start using Lightsail, choose Get Started and log in. You use your Amazon Web Services account to access Lightsail; if you don't already have one, you'll be prompted to create one.
1- Login with your AWS account and from the dashboard, select Amazon Lightsail service
2- Click on Create an instance
3- You can change the AWS Region and Availability Zone based on your preferences
4- Pick your instance image in our case we will select Linux VM
5- Select the blueprint and in our case we will choose Prestashop from the Apps + OS
6- You will connect to your instance using the default SSH key or you can create a new one
7- There is an option for the automatic snapshot but we can leave it for now and you can enable it afterwards.
8- Select the price tier but I will leave the default one. For a limited time, new Lightsail customers can try the selected plan for free for three months andn after that you can pay only 3.5 USD. Read more about the Lightsail pricing from here
7- Rename the instance name to be for example MyShop and click on Create instance button
8- Wait till the VM status to be running
9- Now you can access the the VM using SSH
10- After you're connected, enter the following command to get the default application password:
Save the password because you will use it to login as an administrator
For more information you can check the start guide for PrestaShop on Amazon Lightsail
11- Now you can open the instance with the public IP
12- If you want to login as an administrator you can use the following details:
Congratulations 🥳 , you now have your own e-commerce website where you can run your test automation scripts.
Amazon Lightsail give you the ability to create and attach a Static IP, add additional storage, create a snapshot, check the Metrics and more.
And if you don't need the VM anymore you can delete it.
Thanks for reading and happy testing! 🚀