SOFTWARE TESTING Assignment # 1 Syed Muhammad Hallas Raza L1s21bscs0209 Test cases for login page: 1) Verify if a user will be able to login with a valid username and valid password. 2) Verify if a user cannot login with a valid username and an invalid password. 3) Verify the login page for both, when the field is blank and Submit button is clicked. 4) Verify the ‘Forgot Password’ functionality. 5) Verify the messages for invalid login. Test cases for Market page: 1) Check navigation button works correctly. 2) Performing charts describe data accordingly. 3) News and stories for interest is giving correct information for investors to invest. 4) The data/chart shown is visible. 5) The main page of the site have users friendly interface. Test cases for trade page: 1) The trade page is efficient for clients to buy or sell stocks. 2) The button for sell and buy work properly. 3) After pressing buy button the site should buy stocks for clients and vice versa. 4) The checker markup for traders contains tick symbols doesn’t allow user to buy or sell unless they tick the mark. 5) The quantity box for selling and buying shall be display numbers accordingly. Test Condition Identifier TC1a TC1b Test Description Verify if a user will be able to login with a valid username and verify if a user is able to login with valid password. Verify if a user cannot login with a valid username and with an invalid password. TC2a Verify if a user cannot login with a valid username and an invalid password. TC2b Verify if a user will be able to login with a valid username and valid password. PreCondition(s) User navigates to the login page. User navigates to the login page. Testing Step(s) / Input Data Detailed Step(s) Login page Enter valid Enter valid username. username and Enter valid password, password. click on the Click on the login button. login button. Enter valid username and invalid password, click on the login button. Enter valid username. Enter invalid password. Click on the login button. User navigates to the login page. Enter valid username and invalid password, click on the login button. Enter valid username. Enter invalid password. Click on the login button. User navigates to the login page. Enter valid username and password, click on the login button. Enter valid username. Enter valid password. Expected Result(s) User is successfully logged in and directed to the home page. User should not be logged in and should receive an error message indicating incorrect password. User should not be logged in and should receive an error message indicating incorrect password. User is successfully logged in and directed to the home page. Post Status Condition(s) Type of Quality (Pass / Actual Test Characteristics / Fail) Result(s) Pass Positive Functionality, Usability User is logged in. Pass Negative Error message displayed. Security, Reliability Pass Positive Pass Negative Security, Reliability Error message displayed. User is logged in. Functionality, Usability TC3a TC3b TC4a TC4b Verify the login page for both, when the field is blank and Submit button is clicked. Verify the login page for both, when the field is filled and Submit button is clicked. Verify the 'Forgot Password' functionality. User navigates to the login page. User navigates to the login page. User navigates to the login page. User navigates to the login page. Leave both username and password fields blank, click on the login button. Click on the login button. Leave username field blank. Leave password field blank. Click on the login button. User should receive an error message indicating that both fields are required. Enter both username and password, click on the login button. Enter username. Enter password. Click on the login button. User should be logged in if credentials are correct or receive an error message if credentials are incorrect. Click on the "Forgot Password" link. Navigate to the login page. Click on the "Forgot Password" link. User should be directed to the forgot password page. Attempt to click on the "Forgot Password" link, but it's not functional. Navigate to the login page. Attempt to click on the "Forgot Password" link. Nothing should happen or an error message should be displayed indicating that the Pass Positive Error message displayed. Usability, Error Handling Pass Negative User is either logged in or error message displayed. Usability, Security Pass Positive Forgot password page is displayed. Usability, Accessibility Pass No action or error message displayed. Negative Usability, Reliability TC5a Verify the messages for invalid login. TC5b TC6a TC6b Check navigation button works correctly. Enter invalid username. Enter invalid password. Click on the login button. functionality is not available. User should receive an error message indicating invalid login credentials. User navigates to the login page. Enter invalid username and password, click on the login button. User navigates to the login page. Enter valid username and password, click on the login button. User is on the Market page. Click on the navigation button(s) (e.g., Home, About, Contact, etc.). Navigate to the Market page. Click on the navigation button(s). User should be redirected to the corresponding page without any errors. Click on a non-existent navigation button. Navigate to the Market page. Click on a non-existent navigation button (e.g., a button that is not supposed to be there). User should not be redirected and should receive an error message indicating the button is invalid. User is on the Market page. Enter valid username. Enter valid password. Click on the login button. Market page Pass Error message displayed. Usability, Error Handling Pass User should be successfully logged in. Positive Negative Functionality, Security User is logged in. Pass Positive User is redirected to the expected page. Usability, Navigation Pass No redirection occurs, and an error message is displayed. Negative Usability, Error Handling TC7a TC7b TC8a TC8b TC9a Performing charts describe data accordingly. Performing charts describe data accordingly. News and stories for interest are giving correct information for investors to invest. News and stories for interest are giving incorrect information for investors to invest. The data/chart shown is visible. User is on the Market page. User is on the Market page. User is on the Market page. User is on the Market page. User is on the Market page. View the charts and analyze the data. View the charts and analyze the data. Read news and stories related to investments. Navigate to the Market page. View the charts. Navigate to the Market page. View the charts. Navigate to the Market page. Read news and stories. Read news and stories related to investments. Navigate to the Market page. Read news and stories. View the displayed data/chart. Navigate to the Market page. View the displayed data/chart. The charts should accurately represent the corresponding market data. The charts should not contain incorrect or misleading data. News and stories should provide relevant and accurate information for investors. News and stories should provide irrelevant or inaccurate information. The data/chart should be clearly visible Pass Positive Charts do not contain incorrect or misleading data. Pass Negative News and stories provide relevant and accurate information. Pass Positive News and stories provide irrelevant or inaccurate information. Pass Negative Pass Positive Charts accurately represent the market data. Data/chart is clearly visible and easy to interpret. Accuracy, Reliability Relevance, Accuracy Visibility, Clarity and easy to interpret. TC9b TC10a TC10b The data/chart shown is not visible. The main page of the site has a user-friendly interface. The main page of the site has a user-friendly interface. User is on the Market page. User is on the Market page. User is on the Market page. View the displayed data/chart. Explore the main page of the site. Navigate to the Market page. Hide the data/chart (e.g., through CSS). The data/chart should not be visible. Navigate to the Market page. Explore the main page for userfriendly elements. The main page should have a userfriendly interface with clear navigation and intuitive design. Navigate to the Market page. Introduce elements Explore the that make main page of the interface the site. less userfriendly (e.g., clutter, confusing navigation). Trade page Pass The main page should not become less userfriendly and should maintain clear navigation and intuitive design. Negative Visibility, Clarity Data/chart is not visible. Pass Positive Pass Negative Main page has a user-friendly interface with clear navigation and intuitive design. Main page maintains a user-friendly interface despite introduced elements. Usability, User Experience TC11a TC11b TC12a TC12b The trade page is efficient for clients to buy or sell stocks. The trade page is efficient for clients to buy or sell stocks. The button for sell and buy work properly. The button for sell and buy work properly. The trade page interface should facilitate efficient buying or selling of stocks for clients. User is on the Trade page. Attempt to buy or sell stocks using the trade page interface. User is on the Trade page. Attempt to buy or sell stocks using the trade page interface, but the process is slow or confusing. Navigate to the Trade page. Attempt to buy or sell stocks. The trade page interface should not be inefficient or confusing for clients. Click on the "Buy" and "Sell" buttons. Navigate to the Trade page. Click on the "Buy" button. Click on the "Sell" button. The "Buy" and "Sell" buttons should perform their respective functions correctly. Stocks are bought and sold successfully. Click on the "Buy" and "Sell" buttons, but they do Navigate to the Trade page. The "Buy" and "Sell" buttons should not be Buttons are nonfunctional. User is on the Trade page. User is on the Trade page. Navigate to the Trade page. Attempt to buy or sell stocks. Pass Positive Fail Negative Pass Positive Trading process is efficient and user-friendly. Efficiency, Usability Trading process is inefficient or confusing. Functionality, Reliability Fail Negative not perform any action. TC13a TC13b TC14a TC14b After pressing the buy button, the site should buy stocks for clients and vice versa. After pressing the buy button, the site should not buy stocks for clients and vice versa. User is on the Trade page. Press the "Buy" or "Sell" button. User is on the Trade page. Press the "Buy" or "Sell" button, but stocks are not bought or sold. The checker markup for traders contains tick symbols doesn’t allow users to buy or sell unless they tick the mark. User is on the Trade page. Attempt to buy or sell stocks without ticking the checker mark. The checker markup for traders contains tick User is on the Trade page. Attempt to buy or sell Click on the "Buy" button. Click on the "Sell" button. Navigate to the Trade page. Press the "Buy" or "Sell" button. Navigate to the Trade page. Press the "Buy" or "Sell" button. Navigate to the Trade page. Attempt to buy or sell stocks without ticking the checker mark. Navigate to the Trade page. nonfunctional. Stocks should be bought or sold accordingly. Stocks should not be bought or sold if the button is pressed and the action is not completed. Pass Positive Pass Negative Pass Positive Stocks are bought or sold as expected. Accuracy, Reliability Stocks are not bought or sold. Users should not be able to buy or sell stocks without ticking the checker mark. User is prompted to tick the checker mark before buying or selling. Users should not be able to Stocks are bought or Security, Usability Fail Negative symbols doesn’t allow users to buy or sell unless they tick the mark. TC15a TC15b The quantity box for selling and buying shall display numbers accordingly. The quantity box for selling and buying shall display numbers accordingly. stocks without ticking the checker mark, but the action is still performed. User is on the Trade page. User is on the Trade page. Enter quantities for buying and selling stocks. Enter nonnumeric characters or invalid inputs in the quantity box. Attempt to buy or sell stocks without ticking the checker mark. Navigate to the Trade page. Enter quantities for buying and selling stocks Navigate to the Trade page. Enter nonnumeric characters or invalid inputs in the quantity box. buy or sell stocks without ticking the checker mark, and the action should not be performed. The quantity box should display numbers accurately and accept valid inputs. The quantity box should not accept non-numeric characters or invalid inputs. sold without ticking the checker mark. Quantity box displays numbers accurately and accepts valid inputs. Quantity box rejects nonnumeric characters or invalid inputs. Pass Positive Pass Negative Accuracy, Usability