Project using Selenium, APIs and Test Case

Job ID: 33577332

Budget: $10 – $30 USD

To complete project, following site should be used:
1. For UI: https://www.saucedemo.com/
2. For API: https://jsonplaceholder.typicode.com/
Part 1 – Selenium:
• Using xUnit as test runner and Selenium, create a new project called SauceDemo.Test
• Create 2 project directories – POMs and Tests and separate corresponding classes accordingly
• Write tests for Successful user login and test for failed login. For failed login execute tests with at least 3 different invalid username/password combinations.
• Once user is successfully logged in, add following 3 products to the basket: Backpack, BikeLight and TShit. Check if the right number of items has been added to the basket.
• Navigate to the basket and remove all 3 items that have been previously added. Check if basket is empty and go back to shopping after that.
Part 2 – REST APIs:
• Using xUnit as runner and RestSharp as library create a new project called JsonPlaceholderApi.Test
• Write statusCode tests for following endpoints:
o GET: https://jsonplaceholder.typicode.com/posts
o GET: https://jsonplaceholder.typicode.com/comments
o GET: https://jsonplaceholder.typicode.com/photos
o GET: https://jsonplaceholder.typicode.com/comments?postId=1
• For all 4 end points, check if content returned is not empty
• Deserialize json body for last endpoint (postId=1) and check number of comments returned for this postId
Part 3 – Test cases:
• For each test that you automate, create appropriate test case (in any test management tool such as TestRail or even in Word or Notepad)

You need to use Visual Studio and C#.