Understand how to use loginform for 3 variables

Assignment Help Software Engineering
Reference no: EM133673712

Pass Task: (a) Evidence learning for the topic, (b) Decision table testing using JUnit

Evidence learning for the topic
You need to demonstrate and provide evidence of your understanding of the topic this week. In this week Decision Table and Path­based testing have been introduced briefly. These concepts are essential to design test cases involving one or more variables as of Decision table­based testing and examining program structure and loops as of path­based testing. You should reflect on these 2 testing strategies based on the content provided on the unit site and in the active learning session.

Submission details
For this task, you will need to go through the weekly learning materials in the unit site and participate in activities during the weekly active learning session.
Submit a pdf combining below items ­
Summary of learning in few slides of each topic item
Evidence of activities from the active learning session.
You want to focus on the following key ideas, and make sure you can explain them in relation to your submission.
Decision table testing
Path testing
Reflect how these test methods can be useful in real world scenarios.

Instructions
For this task, you will need to
Go through each topic presented in the unit site for this week including Decision table and path testing.
Create a power­point presentation and summarise learning of each topic into a few slides by including mind­maps, examples, use­cases or any other evidence as suitable.
Use the same power­point file to add other related topics of the current week as required.
Append the same power­point with learning evidence from the active learning session.

Decision table testing using JUnit
As you now have created test cases using boundary value analysis, in this task you will write some test cases based on a concept introduced this week - Decision table testing. There is a login­form with 3 variables ­ username and password fields along with a validation code. You will need to create test cases using decision table for combinations of 3 variables and implement those test cases using JUnit framework. A sample project is attached to show how to use the login function and a sample test case is included for your reference starting point.

Submission details
Use the instructions on the following page to carry out this task's steps.
For this task you will need to study the existing project task4_1P.zip where the LoginForm class in LoginForm.java file has a (i) login function which inputs username and password and returns boolean status and error message, if status is true, a validation­code is return as a message, and
(ii) validateCode function which inputs a validation­code string and returns true if it matches with an existing code string (which was returned earlier when login was successful), false otherwise. Main.java file shows how to create and use LoginForm using combination of 3 variables. LoginFormTest.java file contains a test function for a case of empty username and empty password.
Submit a pdf combining below items ­
A screenshot of your Eclipse IDE's (i) JUnit tab which shows test statistics including Runs, Errors and Failures and (ii) Eclipse console which shows outputs.
Your program's source code for tests (LoginFormTest.java)
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.
Decision table testing
Unit test case creation using JUnit.

Instructions
For this task you will need to
Download task4_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.

Observe LoginForm class structure in LoginForm.java file which has a login function and validateCode function.


The Main.java file shows how to use login and validateCode functions of LoginForm. You can run Main.java (Run As > Java Application) and observe the output to understand how to create test cases.


You need to create a decision table with possible combinations of 3 variables like the one shown below. Symbols used: ­ means empty, W means wrong/invalid, C means correct/valid, X means don't care. You can create in Excel or use tables in Word.


Username ­ ­ ­ W W W C C C C C
Password ­ W C ­ W C ­ W C C C

CON DITIO
NS Validation Code X X X X X X X X - W C
ACTI
ONS Expected
Result

You need to create JUnit test cases for each condition in your decision table. A sample JUnit test case is shown in LoginFormTest.java for you to start with. Run the test file (Run As > JUnit Test) to see the test statistics and the console output.
There are 2 test failures that you need to correct by providing your name and id in the first 2 test cases.
Run the test, take screenshot of test statistic.
Upload your folder to your GitHub account and take a screenshot.

Your task is to:
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 above using decision-table with proper combinations of the 3 variables.
LoginFormTest.java contains sample test cases which represent one of the functions from the Main.java file.
You need to program test cases according to the cases you prepared in the tables.

Reference no: EM133673712

Questions Cloud

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?
Calculate the banks financing requirement : ACFI 450- Calculate the bank's financing requirement. What does bank's financing requirement mean for bank? How will it use information to manage its liquidity?
Prepare an equivalence class test case : Prepare an equivalence class test case for any of Deakin's webpages (can include unit site, OnTrack or any other sitting within Deakin) ­ testing implementation

Reviews

Write a Review

Software Engineering Questions & Answers

  Determine the grade that the student received

Determine the grade that the student received - the program must determine the student's total mark and display a message which includes their name

  Differentiate between alpa and beta testing

Differentiate between alpa and beta testing, Consider a piece of an embedded software that is a part of a T.V. Which of the types of system testing would you choose to apply and at what time?

  What happens when each unit is tested successfully

What happens when each unit is tested successfully and then the entire system is tested and it doesn't integrate well with other systems? Is this a possibility

  Manager of a highly reputable software engineering firm

Write a report and proposal on the factors affecting software quality in software engineering. The report should be submitted in APA style.

  Designing e-r diagram for each product at pvf

Suppose that at PVF, each product. Design E-R diagram for this situation and state minimum and maximum cardinalities on the diagram.

  Assume you and another member of the class are starting up

assume you and another member of the class are starting up a small company using investor capital and your own money.

  Review article - reconnaissance

Need to review this article with references in APA format - Reconnaissance - ach one of us must give an account to what we have done and 2 Corinthians 5:10

  Purpose of a bia

Question 1: What is the goal and purpose of a BIA? Question 2: Why is a business impact analysis (BIA) an important first step in defining a business continuity plan (BCP)?

  How system might handle management of individual care needs

Create one or more UML activity diagram(s) illustrating how this system might handle the management of individual care needs, patient monitoring and administrative reporting.

  Change the recursive descent parser

Change the Recursive Descent parser to LL(1) parser. I have the TINY language specifications and all the java files related to the Recursive Descent parser

  Report on data classification using support vector machine

Report on the Data Classification Using Support Vector Machine research paper

  Developing soa based it solutions

This Discussion will focus on the different levels of abstractions within the service interface layer and importance of abstraction and role of layering when constructing SOA-based IT solutions.

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