0% found this document useful (0 votes)
21 views22 pages

21mis0267 VL2024250503194 Ast05

The document outlines the testing tasks performed by Gajavada Vishnu for the Advanced Software Testing Lab course, including functional and non-functional testing of the Amazon website and a personal resume website using Selenium IDE. It includes Java code for automated test cases, test results, and a plan for using JMeter to assess non-functional aspects of two additional websites. The document serves as a cycle sheet for the Winter Semester 2024-2025 in the M.Tech [SE] program.

Uploaded by

Rithvik Chowdary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views22 pages

21mis0267 VL2024250503194 Ast05

The document outlines the testing tasks performed by Gajavada Vishnu for the Advanced Software Testing Lab course, including functional and non-functional testing of the Amazon website and a personal resume website using Selenium IDE. It includes Java code for automated test cases, test results, and a plan for using JMeter to assess non-functional aspects of two additional websites. The document serves as a cycle sheet for the Winter Semester 2024-2025 in the M.Tech [SE] program.

Uploaded by

Rithvik Chowdary
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 22

Gajavada Vishnu 21MIS0267

SCHOOL OF COMPUTER SCIENCE ENGINEERING AND INFORMATION SYSTEMS

WINTER SEMESTER 2024-2025

SWE3006 Advanced Software Testing Lab


Cycle Sheet 3

Programme : M.Tech [SE]


Course Code & Name: Advanced Software Engineering
Slot: L5+L6

Name : Gajavada Vishnu


Reg.no:21MIS0267
Gajavada Vishnu 21MIS0267

1) Assume that you have been given the task of testing amazon Website from functional
(user account valid login credentials and invalid login credentials) and non-functional
testing point of view(choose any 5 options of your choice and test it). Use Selenium IDE
Testing tool and record the user actions for the following modules and ensure that the
test result is pass. And the recorded test cases to be exported in programming language
preferably Java and analyse the test results.

AMAZON WEBSITE :
Gajavada Vishnu 21MIS0267

LOGIN WITH VALID CREDENTIALS :


Gajavada Vishnu 21MIS0267

SELINIUM TESTING :

LOGIN WITH INVALID CREDENTIALS


Gajavada Vishnu 21MIS0267

SELINIUM TESTING :

ACCESSABILTY TESTING :
Gajavada Vishnu 21MIS0267

SELINIUM TESTING :

SEARCH ACCURACY :
Gajavada Vishnu 21MIS0267

SELINIUM TESTING :

JAVA CODE :

import junit.framework.TestCase;
public class AmazonTests extends TestCase
{ private AmazonActions amazon;
protected void setUp() {
amazon = new AmazonActions();
}
public void testLoginSuccess() {
String result = amazon.login("[email protected]",
"correctPassword"); assertEquals("Login Successful", result);
}
public void testLoginFailure() {
String result = amazon.login("[email protected]",
"wrongPassword"); assertEquals("Login Failed", result);
}
Gajavada Vishnu 21MIS0267

public void testInvalidLogin() {


String result = amazon.invalidLogin("[email protected]", "wrongPassword");
assertEquals("Invalid Login Attempt Detected", result);
}
public void testTodaysDeals() {
String result = amazon.clickTodaysDeals();
assertEquals("Navigated to Today's Deals Page", result);
}
public void testBuyAgain() {
String result = amazon.clickBuyAgain();
assertEquals("Navigated to Buy Again Page",
result);
}
public void testGiftCards() {
String result = amazon.clickGiftCards();
assertEquals("Navigated to Gift Cards Page",
result);
}
public void testSearchProduct() {
String result = amazon.searchProduct("iphone");
assertEquals("Search results for: iphone", result);
}
public void testSearchEmptyProduct()
{ String result =
amazon.searchProduct("");
assertEquals("Search box is empty",
result);
}
public void testLogout() {
String result = amazon.logout();
assertEquals("Logout Successful", result);
}
protected void tearDown() {
Gajavada Vishnu 21MIS0267

amazon = null;
}
}

TEST RESULTS :
Gajavada Vishnu 21MIS0267

2. Createa website on your own for show casing your resume details using HTML and
use selenium IDE to test every fields present in the web page. And the recorded test
cases to be exported in programming language preferably Java and analyse the test
results

RESUME WEBSITE:
Gajavada Vishnu 21MIS0267

RESUME CONTACT TESTING :


Gajavada Vishnu 21MIS0267

ACCESSABILITY TESTING :
Gajavada Vishnu 21MIS0267

JAVA CODE :

import junit.framework.TestCase;
public class ResumeTests extends TestCase
{ private ResumeActions resume;
protected void setUp() {

resume = new ResumeActions();


}
public void testSuccessfulFormSubmission() {
String result = resume.fillContactForm("Nithyasri S", "[email protected]", "Hello
there");
assertEquals("Form submitted successfully with Name: Nithyasri S, Email:
[email protected], Message: Hello there", result);
}
public void testFormSubmissionWithMissingFields() {
String result = resume.fillContactForm("", "[email protected]", "Hello there");
assertEquals("Form submission failed: Missing fields", result);
}
public void testEmptyFormSubmission() {
String result = resume.emptyFormSubmission();
assertEquals("Form submission failed: All fields are empty",
result);
}
public void testValidEmail() {
String result =
resume.validateEmail("[email protected]");
assertEquals("Valid email", result);
}
public void testInvalidEmail() {
String result =
resume.validateEmail("nithusri#example");
assertEquals("Invalid email", result); }
public void testToggleEducationSection() {

String result1 = resume.toggleSection("Education",


false); String result2 =
resume.toggleSection("Education", true);
Gajavada Vishnu 21MIS0267

assertEquals("Education section displayed",


result1); assertEquals("Education section hidden",
result2);
}
public void testToggleSkillsSection() {
String result1 = resume.toggleSection("Skills",
false); String result2 =
resume.toggleSection("Skills", true);
assertEquals("Skills section displayed", result1);
assertEquals("Skills section hidden", result2);

}
public void testToggleProjectsSection() {
String result1 = resume.toggleSection("Projects", false);
String result2 = resume.toggleSection("Projects", true);
assertEquals("Projects section displayed", result1);
assertEquals("Projects section hidden", result2);
}
public void testToggleCertificatesSection() {
String result1 = resume.toggleSection("Certificates", false);
String result2 = resume.toggleSection("Certificates", true);
assertEquals("Certificates section displayed", result1);
assertEquals("Certificates section hidden", result2);
}
public void testToggleAchievementsSection() {
String result1 = resume.toggleSection("Achievements", false);
String result2 = resume.toggleSection("Achievements", true);
assertEquals("Achievements section displayed", result1);
assertEquals("Achievements section hidden", result2);
}
protected void tearDown()
{ resume = null;
}

}
Gajavada Vishnu 21MIS0267

TEST RESULT :

3. Choose any two websites of you own and use Jmeter open source testing tool and
test the non –functional aspects of the website and generate the test report in the
following format.

i) SWAYAM WEBSITE :
Gajavada Vishnu 21MIS0267

Swayam main page :

About page :
Gajavada Vishnu 21MIS0267

National Coordinators page :

JMETER TEST RESULTS :


Results tree :
Gajavada Vishnu 21MIS0267

Aggregate Report :

Summary Report :

TEST REPORT :
Gajavada Vishnu 21MIS0267

ii) TAKE YOU FORWARD :

Main page :
Gajavada Vishnu 21MIS0267

DSA sheets Page :

Core sheets page :


Gajavada Vishnu 21MIS0267

JMETER TEST RESULTS :


Results tree:

Aggregate Report :

Summary Report:
Gajavada Vishnu 21MIS0267

TEST REPORT:

You might also like