0% found this document useful (0 votes)
47 views

Lab Assignment 3

The document outlines the steps for developing a login form and preparing a test case report. It includes specifications for the login form requiring username and password to accept alphanumeric values. A test case report table is provided with 3 valid and 3 invalid test cases for the login form. Code is also provided to design the login form and home form pages, with code to validate username and password on login and redirect to the home page upon successful validation.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
47 views

Lab Assignment 3

The document outlines the steps for developing a login form and preparing a test case report. It includes specifications for the login form requiring username and password to accept alphanumeric values. A test case report table is provided with 3 valid and 3 invalid test cases for the login form. Code is also provided to design the login form and home form pages, with code to validate username and password on login and redirect to the home page upon successful validation.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Lab Assignment 3:

Develop a Login Form and Prepare Test Case Report

LOGIN FORM

AIM
To identify Test case for Login Form

Test Case Specifications

User_name
User_name should accept alphanumeric.
Password
Password should accept alphanumeric.

Test Case Report

S.NO Input Type of Test Expected Output Actual Output Result


1 a) Admin Valid Accepted Accepted Pass
b) 3434 Valid Accepted Accepted Pass
c) Admin123 Valid Accepted Accepted Pass
2 a) Sunrise_1234 Valid Accepted Accepted Pass
b) A200 Valid Accepted Accepted Pass
c) Raja Valid Accepted Accepted Pass
FORM DESIGN

CODE
LOGIN FORM

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
18
Vaishnavi G
MCA II Semester - Software Testing
Registration Number: EA2132251010004
public partial class Default2 : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Label3.Text = "";
}
protected void Button1_Click(object sender, EventArgs e)
{
if (TextBox1.Text == "Admin" && TextBox2.Text == "admin" )
{
Response.Redirect ("default.aspx");
}
else
{
Label3.Text = "Invalid username and password...";
}
}
}

HOME FORM

using System;
using
System.Data;
using
System.Configuration;
using System.Web;
using
System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using
System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = " Thank U......";
}
}
Vaishnavi G
MCA II Semester - Software Testing
Registration Number: EA2132251010004

OUTPUT:

You might also like