Reference no: EM133673704
Software Quality and Testing
Task: Test a registration page using Selenium
Overview
You have learned how to use Selenium APIs to open a webpage, locate HTML elements by various attributes (such as id, name and xpath) and populate HTML input elements by your own choice of values. In this task, you will use Selenium APIs to open a customer registration webpage, locate input elements and populate with your own values and finally submit the form. In addition, repeat the process for an alternative website's registration page other than the one mentioned below in the submission details. Comment on your experience dealing with two separate websites.
Submission details
Use the instructions on the following page to carry out this task's steps. Submit the following files to OnTrack.
The screenshot taken of the officework's filled and submitted registration page using Selenium screenshot API. Make sure you fail only the password requirement, so the page does not submit successfully and contains errors.
Repeat the above step for an alternative website's registration page.
Highlight your key finding and experience dealing with registration page of 2 separate sites.
Your program's source code (SeleniumOperations.java and the function you created for the alternative website).
A screenshot of your GitHub page where your latest project folder is pushed.
You want to focus on the following key ideas, and make sure you can explain them in relation to your program.
Selenium webdriver's locator APIs to identify input element and buttons
Selenium webdriver's element interaction APIs to interact with input element and buttons.
Instructions
For this task you will need to
Download task2_1P.zip Java project and unzip it in a common folder (say, java_projects) which you will be using to store all the weekly projects.
Import the project (as a maven project) in Eclipse IDE.
Use the officeworks_registration_page(url) function in SeleniumOperations.java which opens an URL, finds input by id ‘firstname' and set content "Ahsan". Fill in the code to identify all the input elements, fill in your personal information (including the set firstname), identify ‘Create account' button and simulate a click action to submit form.
You have to run the Main.java file once the officeworks_registration_page(url) function is done, of course you can progress the registration function a bit and run Main.java to test periodically. Once done, capture Eclipse IDE's console output, store the screenshot captured using Selenium's screenshot function.
Repeat above steps to automate testing an alternative webpage's registration page. You can create a separate java file or create a new function in the existing SeleniumOperations.java file.
Upload your folder to your GitHub account as a private repository and take a screenshot. Find instructions in the unit site on how to create a new empty project (say, task2_1P_<studentID>) in GitHub and upload your Eclipse Maven project with the same name in the newly created GitHub empty project.
Your Task
Study the officeworks_registration_page (url) function in the SeleniumOperations.java and complete the functiion. Follow the instructions in the function definition in the java file.
Explore Selenium webdriver's locator and interaction APIs to understand how input elements are located.
Locate all the input fields and pass your personal information to fill in the registration form.
Locate the Create account button and simulate a click action.
Repeat above steps for an alternative website's registration page.
Share your experience explaining difficulties faced and lessons learned.
Use Selenium screenshot API to capture the chromium browser screen and save the image file.
Submit your work
When you are ready, login to OnTrack and submit your pdf which consolidates all the items mentioned in the submission detail section above. Remember to save and backup your work.
Complete your work
After your submission, your OnTrack reviewer (tutor) will review your submission and give you feedback in about 5 business days. Your reviewer may further ask you some questions on the weekly topics and/or about your submissions. You are required to address your OnTrack reviewer's questions as a form of task discussions. Please frequently login to OnTrack for the task Discuss/Demonstrate or Resubmit equivalent to fix your work (if needed) based on the feedback to get your task signed as Complete.