You are on page 1of 19

SDET HTD

© Hexaware Technologies. All rights reserved. | www.hexaware.com


Presentation

• Sergio Espriella

• Contact:
• sergioalfredoe@hexaware.com
– +528443443723

© Hexaware Technologies. All rights reserved. | www.hexaware.com 2


GOAL
Candidates must increase the ability to work with different technologies, solve real issues and
suggest real enhancements for an automation project, while increase their abilities and fill the gaps
on SDET required technologies.
• Selenium web driver concepts and challenges
• Database related experience (Ability to work in different kinds of data bases)
• File handling especially with JavaScript
(How interact with file concepts using JS or any third-party tool flow for different kind of files
how you will read and upload)
• Automation Framework challenges
(Code or functionally missing, add to framework)
• Core Java
(Heavy requirements, collection, String, this is regarding conceptual, call classes create methods
JMS Automation API Automation read and load XML files and crate functions to send the messages)
• API testing
(Handle API responses in Code, validation of expected results POSTMAN and RestAssured
• Improve Programming Skills in General
• Debugging and search in internet
• Thinking process in different set of tools © Hexaware Technologies. All rights reserved. | www.hexaware.com 3
Getting Ready

© Hexaware Technologies. All rights reserved. | www.hexaware.com 4


Setting up

• Before start with this course, please answer the attached document:
HTD_Assesment.docx and send to Sergioalfredoe@Hexaware.com.
This assessment will help us to know your actual status and
understand in which areas we should focus to improve your training
and eventual deploy into a project, please answer honestly, many of the
questions you can easily found It doing a quick googling but try to
avoid it, this will not negatively impact, contrary will help us to promote
and develop you career.

• Install Java and your favorite IDE to work on it


• Create a new Github user with your hexaware email following this format
(FirstNameLastName-Hexaware)

© Hexaware Technologies. All rights reserved. | www.hexaware.com 5


Java Core

https://www.w3schools.com/java/
• Please go trough complete tutorial and put special attention in below
topics:

© Hexaware Technologies. All rights reserved. | www.hexaware.com 6


Excel Writing and Reading

https://howtodoinjava.com/java/library/readingwriting
-excel-files-in-java-poi-tutorial/
Exercise

From Java please create an excel file, with below structure:


NAME LASTNAME EMAIL PASSWORD COMPANY ADDRESS CITY ZIP_CODE MOBILE_PHONE
someNam SomeLastNa SomeE SomePAssw SomeComp SomeAddr Some SomePostC SomeMobilePhone
e me mail ord any ess City ode

© Hexaware Technologies. All rights reserved. | www.hexaware.com 7


GITHUB

• Review GitHub Content

https://hexaware.udemy.com/course/learn-git-
by-doing-a-step-by-step-guide-to-version-cont
rol/
Exercise

Upload the code from your previous exercise to a new Repository and add SergioEspriella-Hexaware user to it.

© Hexaware Technologies. All rights reserved. | www.hexaware.com 8


SQL EXCERSICE
https://mystery.knightlab.com/

Exercise
Go to the link and solve the mystery! (Follow the instructions in the page)

© Hexaware Technologies. All rights reserved. | www.hexaware.com 9


JDBC Writing and Reading

https://hexaware.udemy.com/course/how-to-
connect-java-jdbc-to-mysql/
Exercise
From Java Create a Data Base in SQL/MySQL and insert one table: “DATASHEET”
with below structure, add some real data and complete the exercise

NAME LASTNAME EMAIL PASSWORD COMPANY ADDRESS CITY ZIP_CODE MOBILE_PHONE


someNam SomeLastNa SomeE SomePAssw SomeComp SomeAddr Some SomePostC SomeMobilePhone
e me mail ord any ess City ode

Upload the code to the GitHub Repository

© Hexaware Technologies. All rights reserved. | www.hexaware.com 10


Selenium

https://hexaware.udemy.com/course/selenium-real-ti
me-examplesinterview-questions/
• Please give a look to selenium tutorial and to the CSSSelectorAndXpath file.

© Hexaware Technologies. All rights reserved. | www.hexaware.com 11


API Testing

• https://hexaware.udemy.com/course/postman-crash-course-for-beginners-learn-rest-api-testing/
• https://hexaware.udemy.com/course/postman-the-complete-guide/

Give a look to all links and complete the exercises on it.

© Hexaware Technologies. All rights reserved. | www.hexaware.com 12


Selenium Excersice

• Complete next slides automation excersices.

© Hexaware Technologies. All rights reserved. | www.hexaware.com 13


1. Automate User Registration process of e-commerce website.

1. Open this url http://automationpractice.com/index.php


2. Click on sign in link.
3. Enter your email address in 'Create and account' section.
4. Click on Create an Account button.
5. Enter your Personal Information, Address and Contact info.
6. Click on Register button.
7. Validate that user is created.

2. Verify invalid email address error.


1. Open this url http://automationpractice.com/index.php
2. Click on sign in link.
3. Enter invalid email address in the email box and click enter.
4. Validate that an error message is displaying saying "Invalid email address."

© Hexaware Technologies. All rights reserved. | www.hexaware.com 14


3. Verify error messages for mandatory fields.
1. Open this url http://automationpractice.com/index.php
2. Click on sign in link.
3. Enter email address and click Register button.
4. Leave the mandatory fields (marked with *) blank and click Register button.
5. Verify that error has been displayed for the mandatory fields.

4. Verify error messages for entering incorrect values in fields.

1. Open this url http://automationpractice.com/index.php


2. Click on sign in link.
3. Enter email address and click Register button.
4. Enter incorrect values in fields like., enter numbers in first and last name, city field etc., and enter
alphabets in Mobile no, Zip postal code etc., and click on 'Register' button.
5. Verify that error messages fpr respective fields are displaying.

© Hexaware Technologies. All rights reserved. | www.hexaware.com 15


5. 'Search Product' feature
1. Open link http://automationpractice.com/index.php
2. Move your cursor over Women's link.
3. Click on sub menu 'T-shirts'
4. Get Name/Text of the first product displayed on the page.
5. Now enter the same product name in the search bar present on top of page and click search button.
6. Validate that same product is displayed on searched page with same details which were displayed on
T-Shirt's page.
6. 'Buy Product' feature
1. Open link http://automationpractice.com/index.php
2. Login to the website.
3. Move your cursor over Women's link.
4. Click on sub menu 'T-shirts'.
5. Mouse hover on the second product displayed.
6. 'More' button will be displayed, click on 'More' button.
7. Increase quantity to 2.
8. Select size 'L'
9. Select color.
10. Click 'Add to Cart' button.
11. Click 'Proceed to checkout' button.
12. Complete the buy order process till payment.
13. Make sure that Product is ordered. © Hexaware Technologies. All rights reserved. | www.hexaware.com 16
7. Verify that 'Add to Wishlist' only works after login.
1. Open link http://automationpractice.com/index.php
2. Move your cursor over Women's link.
3. Click on sub menu 'T-shirts'.
4. Mouse hover on the second product displayed.
5. 'Add to Wishlist' will appear on the bottom of that product, click on it.
6. Verify that error message is displayed 'You must be logged in to manage your wish list.'
3. Test Case - Verify that Total Price is reflecting correctly if user changes quantity on 'Shopping Cart
Summary' Page.
Steps to Automate:
1. Open link http://automationpractice.com/index.php
2. Login to the website.
3. Move your cursor over Women's link.
4. Click on sub menu 'T-shirts'.
5. Mouse hover on the second product displayed.
6. 'More' button will be displayed, click on 'More' button.
7. Make sure quantity is set to 1.
8. Select size 'M'
9. Select color of your choice.
10. Click 'Add to Cart' button.
11. Click 'Proceed to checkout' button.
12. Change the quantity to 2.
13. Verify that Total price is changing and reflecting correct price.
© Hexaware Technologies. All rights reserved. | www.hexaware.com 17
Lab Exercise

Review next document for framework creation hints:


https://www.logigear.com/blog/test-automation/building-a-selenium-framework-from-a-to-z/

Create your own Selenium Framework, applying the topics reviewed in this course and upload
framework and test cases to your GitHub Repo.

This framework must follow some rules:


• Test Cases must be independent, if a Test Case is deleted/changed it shouldn’t impact the
functionality.
• Test Cases variable data must be read from an excel file. (URL, names, addresses…)
• The browser to use must be declared in the test case, for this Lab we will work only with
Chrome and Firefox.
• Execution report must be generated with each step on test case and the status “Pass”/”Fail”.
• You will find the Test Cases to automate in previous 4 slides (Same previously automated
without a framework).

© Hexaware Technologies. All rights reserved. | www.hexaware.com 18


Innovative
Services

Passionate
Employees Thank you
Delighted
Customers

© Hexaware Technologies. All rights reserved. | www.hexaware.com

You might also like