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

  When was the internet used extensively

When was the Internet used extensively in American political campaigns - What are some of the ways the Internet can be misused in the election environment?

  Describing a hypothetical project scenario

Write a paragraph describing a hypothetical project scenario and then provide an example of a change for External Event

  Modelling methodologies in software architecture

Conduct research on state of art practices and assess - recent academic paper on a topic related to Software Engineering or related Software Engineering field

  create a Z schema that adequately describes the WTC system

ITECH7410 Software Engineering Methodologies Assignment. You are to create a Z schema that adequately describes the WTC system

  Overview of the hipaa security and privacy rules

Analyze the technical controls and the nontechnical controls that are needed to mitigate the identified risks and vulnerabilities.

  List of major software components

Taylor's Professional Services is a technical and engineering staffing service.  When a TPS client company determines that it will need a temporary professional or scientific employee, it issues a staffing request against the contract it previousl..

  Development process for new information systems

Discuss how this and other information security considerations will affect the design and development process for new information systems.

  For each incident, what is the first arriving company

For each incident, what is the first arriving company?

  Identify current trends in terms of life cycle modeling

In software engineering, one can find various life cycle models. Some examples include the waterfall model, agile processes, and iterative and incremental models. Identify current trends in terms of life cycle modeling

  The project at the meeting the vice chancellor announced

the project at the meeting the vice chancellor announced that a project manager would be appointed.on appointment the

  Question 1there are many of issues affecting cost of

question 1there are many of issues affecting cost of software. list and explain the five parts affecting pricing in

  Develop a mathematical description for the state space

Software Engineering Methodologies - Develop a mathematical description for the state space of the system and present it in a schema in the Z specification

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