The tests are run using TestNG.
Make sure your API key is set as an environment variable API_KEY
.
Create pilot Java test framework for testing NASA's open API (https://api.nasa.gov/index.html#getting-started). The purpose of the test is to check images which were made by Curiosity (https://www.nasa.gov/mission_pages/msl/images/index.html). Test scenario:
- Get first 10 Mars photos made by "Curiosity" on 1000 sol.
- Get the same 10 Mars photos made by "Curiosity" on earth date that is equals 1000 Mars sol.
- Compare downloaded images and metadata from API. Test fails in case of any difference.
As a plus: Using NASA’s API determine how many pictures were made by each camera (by Curiosity on 1000 sol.). If any camera made 10 times more images than any other - test fails.
Please use standard technologies, tools and frameworks which you are usually use in test frameworks creation.
You will need to fork the repository and build the solution in your private Github. Once you are finished, please send a Zip file with the solution.
Please do not upload solution to your public Github repository, only send a Zip with the solution.
Implementation deadline is 1 week. Please let us know the time that you spent to achieve the task.