You are on page 1of 2

Hello from Cermati!

We are looking for not just whether you can solve the problem but also HOW you solve the
problem and your Object-oriented design skills.

Rules
• You have 5 full days to create your script
• You can choose any tech programming stack of your choice however at Cermati, our tech
stack uses nodeJS. So, we expect that you are comfortable with or can learn JavaScript.
• You can write you script using any test framework of your choice however at Cermati, we
use webdriver.io for our mobile/web automation along with BDD framework.
• Please ensure that you create a local Git repository and send us a zipped folder of your
solution.
• Please write a brief description of your approach in a README.md file in the project root
directory with steps on how to set up and run the code.
• Please ensure that your code is clean with good naming conventions.
• Please do not make this problem statement or your solution publicly available by
syncing with a Remote Git repository on Github/GitLab or by posting on public
forums or blogs. Any violation of this will be taken seriously and can result in
rejection of your solution.

Exercise
For this exercise, you will be creating a test script for the following 2 scenarios on www.ebay.com

Scenario 1: Access a Product via category after applying multiple filters


• Go to www.ebay.com
• Navigate to Search by category > Electronics > Cell Phones & accessories
• After the page loads, click Cell Phones & Smartphones in the left hand side navigation
section.
• Now, click - More refinements (appears on the left at the end of all filters).
• Add 3 filters - screen size, Price and Item location appearing in the pop-up and click apply.
• Verify that the filter tags are applied.

Scenario 2: Access a Product via Search


• Go to www.ebay.com
• Type any search string in the search bar. For example: MacBook.
• Change the Search category. For example: Computers/Tablets & Networking and click
Search.
• Verify that the page loads completely.
• Verify that the first result name matches with the search string.
Steps to submit your assignment:
• Create a folder with your name and put your assignment files/folders in it and also include a
readme with any information/steps/findings/assumptions you want to convey back to the
reviewer.
• You can email the zipped folder directly or upload it on google drive or any other file sharing
drive and then share the link. Don't forget the give sharing permissions to your folder.

Evaluation
We will evaluate your test on:
• How well you structure your code. Use meaningful function/class names to explain the intent
of your code. Comments should only explain the WHY behind the code and not the
WHAT/HOW
• How you verify the end result. Remember – A test without assertions is really of no value.
Make sure you write meaningful assertions for the steps performed.

All the Best!

You might also like