21mis0267 VL2024250503194 Ast05
21mis0267 VL2024250503194 Ast05
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
SELINIUM TESTING :
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
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
ACCESSABILITY TESTING :
Gajavada Vishnu 21MIS0267
JAVA CODE :
import junit.framework.TestCase;
public class ResumeTests extends TestCase
{ private ResumeActions resume;
protected void setUp() {
}
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
About page :
Gajavada Vishnu 21MIS0267
Aggregate Report :
Summary Report :
TEST REPORT :
Gajavada Vishnu 21MIS0267
Main page :
Gajavada Vishnu 21MIS0267
Aggregate Report :
Summary Report:
Gajavada Vishnu 21MIS0267
TEST REPORT: