Implement test cases using selenium browser automation

Assignment Help Software Engineering
Reference no: EM133673714

Task: Decision table unit testing using Selenium Overview

In 4.1P you have constructed decision tables to test the login function in the provided

LoginForm.java file using JUnit. Decision tables are useful for testing functionalities in web applications. A common use case is creating decision table test cases for online login web pages using Selenium. Inspection of HTML elements to locate input elements could be tricky at the first place but once input elements are identified, selenium can be used to fill those fields with values and simulate submission of forms. You will need to harness your Selenium skills to write JUnit test cases to identify conditions how to assert on test cases to fail or pass. You should use the login page for this task. Compare unit testing functions in source code to unit testing functional interfaces using Selenium.

Instructions
For this task you will need to

Download task2_1P.zip Selenium Java project used earlier 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. Rename it by refactoring the project folder (Refactor > Rename) to task4_2C.

You need to create a decision table necessary for the login page https://www.bunnings.com.au/login and write JUnit test cases accordingly.
Use the code inspection feature of your browser to analyse the webpage how to locate the input elements of the login form using appropriate Selenium locator APIs.
You need to consider appropriate JUnit Assert functions, you may consider inspecting the web URL and how it changes after submitting a login page for cases of a successful login or failed login.
You can keep these 2 failed test cases from task2_1P original project folder that you imported for this project in step 1 and make these 2 tests pass by providing your name and id.
Run the test, take screenshot of test statistic.
Upload your folder to your GitHub account and take a screenshot.

Your Task
Your task is to:
Create test cases for the login page as mentioned above using decision tables.

Analyse the webpage's source to identify the login HTML elements and how to locate them using Selenium APIs.
Implement test cases using Selenium browser automation.
Make proper use of JUnit Assert module to validate how webpage URL changes can be used to decide if a test failed or succeeded.

Reference no: EM133673714

Questions Cloud

Azure directory connect : You are required to install Azure Directory Connect. You can either use custom settings or express settings for the installation process.
Identify use cases where some of these unit testing : Task - Unit test standards – AAA and [F]IRST - Identify use cases where some of these unit testing standards are difficult
What are some of the reasons that foreign manufacturers : What are some of the reasons that foreign manufacturers of products as diverse as automobiles, cell phones and tires might arrive at the same conclusion.
Concepts and field of systems analysis and design : How did this course assist you in better understanding the concepts and field of systems analysis and design?
Implement test cases using selenium browser automation : Analyse the webpages source to identify the login HTML elements and how to locate them using Selenium APIs. Implement test cases using Selenium browser
What is interned string object used : What is an interned string object used for? Suppose you have a text file containing the string ABCDEFGH.
Understand how to use loginform for 3 variables : Study Main.java to understand how to use LoginForm for 3 variables including username, password and validation-code. Create test cases as shown in the table
What crucial insights or trends have you unearthed : What industry or aspect of society have you designated for analysis? What crucial insights or trends have you unearthed?
What else are you automatically enrolled in : When you enroll in a program, what else are you automatically enrolled in?

Reviews

Write a Review

Software Engineering Questions & Answers

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd