Posts

Showing posts from November 26, 2017

Accessing AWS cloud for test data

In most of the projects today, you see that code + data is stored in the cloud. Global players like Amazon, Microsoft and Google are offering their cloud services. As a test analyst, you might be required to write tests that access data from the cloud. I faced a similar situation when the team I joined had their project in Amazon AWS. I was writing API tests using Rest Assured and I had to access the database for validation. I am providing a sample, generic method here which people can use if faced with a similar situation. First, from command line, you have to login to AWS, which saves the AWS token in your computer. From your IDE ( I use IntelliJ Idea), go to terminal ( command line) and login to aws credentials. Use your appropriate company name and user names. $ -auth l Username: l@ .com Password: ******** Select an account: [0] -production-dev [1] --preproduction-admin [2] --production-poweruser Selection: 0 Selected role: --production-dev Saved AWS to...