The document contains a comprehensive test case report detailing various test scenarios for an application. Each test case includes the test ID, name, input data, expected result, actual result, and status, with all tests passing successfully. The tests cover functionalities such as launch setup, permissions, service status, and UI components.
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 ratings0% found this document useful (0 votes)
2 views
TestCases
The document contains a comprehensive test case report detailing various test scenarios for an application. Each test case includes the test ID, name, input data, expected result, actual result, and status, with all tests passing successfully. The tests cover functionalities such as launch setup, permissions, service status, and UI components.
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/ 7
TC_I Stat
D TC_Name Input Data Expected Result Actual Result us
First Launch - isFirstLaunch = Launch Setup Launch Setup Setup true Activity Activity Pass 1 Activity Permissio Launch Setup ns Activity with Launch Setup Required Permissions not for_permissions Activity with - Setup granted flag for_permissions 2 Activity flag Pass Service Not Running AppForegroundSe Start Start - Start rvice not running AppForegroundSe AppForegroundSe 3 Service rvice rvice Pass Stats Fragmen t MenuItem = Stats Display Stats Display Stats 4 Selected Fragment Fragment Fragment Pass Edit Fragmen t MenuItem = Edit Display Edit Display Edit 5 Selected Fragment Fragment Fragment Pass Settings Fragmen MenuItem = t Settings Display Settings Display Settings 6 Selected Fragment Fragment Fragment Pass Stats MenuItem = Stats Fragmen Fragment, t Already ActiveFragment = No Fragment No Fragment 7 Active Stats Fragment Transition Transition Pass Edit MenuItem = Edit Fragmen Fragment, t Already ActiveFragment = No Fragment No Fragment 8 Active Edit Fragment Transition Transition Pass MenuItem = Settings Settings Fragment, Fragmen ActiveFragment = t Already Settings No Fragment No Fragment 9 Active Fragment Transition Transition Pass Null MenuIte No Fragment No Fragment 10 m MenuItem = null Transition Transition Pass Null MenuItem = Stats Active Fragment, Fragmen ActiveFragment = Display Stats Display Stats 11 t null Fragment Fragment Pass Null Fragmen t MenuItem = Stats Transacti Fragment, Display Stats Display Stats 12 on Transaction = null Fragment Fragment Pass Service TC_ID Running TC_Name AppForegroundSe Input Data Expected Result Actual Result Status - Non-empty Start rvice already Configured 13 Service Configured running apps No service Display Display RecyclerView start RecyclerView No service start Pass 1 Permissio Apps List available with app statistics with app statistics Pass nsEmpty No Already Configured Permissions configured No Display "No Setup apps Activity No Setup Activity Display "No apps 214 Granted Apps List already apps granted Launch configured" message Launch Pass configured" message Pass Intent for Configure Intent to Intent to Apps ConfigureAppsActivit ConfigureAppsActivity 3 Activity Button click y is launched is launched Pass Correct Image Tint for Configure No input Configure Apps Configure Apps 4 Apps Btn required button tint is black button tint is black Pass Correct App Valid app Display the correct Display the correct Icon package app icon for the app icon for the 5 Displayed name configured app configured app Pass Correct App Valid app Display the correct Display the correct Name package app name for the app name for the 6 Displayed name configured app configured app Pass Valid app Valid Daily package Generate valid daily Generate valid daily 7 Usage List name usage list for the app usage list for the app Pass Valid Bar Entry List Valid daily Generate valid bar Generate valid bar 8 Generated usage list entry list for the app entry list for the app Pass Correct Calculate and display Calculate and display Average Valid daily average time in average time in 9 Time Format usage list correct format correct format Pass Valid Usage Percentage Valid app Calculate and display Calculate and display Change package valid percentage valid percentage 10 Calculated name change in usage change in usage Pass Correct Package Valid app Display the correct Display the correct Name package package name for the package name for the 11 Displayed name configured app configured app Pass Invalid App Invalid app Log error for Log error for Icon package "Package Not Found" "Package Not Found" 12 Handling name and skip adding to list and skip adding to list Pass Null Configured Apps List Display "No apps Display "No apps 13 Handled Null input configured" message configured" message Pass Valid Milliseconds Convert milliseconds Convert milliseconds to String Valid to string in correct to string in correct 14 Conversion milliseconds format format Pass TC_ID TC_Name Input Data Expected Result Actual Result Status Load Installed List of installed List of installed 1 Apps List None apps loaded apps loaded Pass Button Click - Configured apps Commit committed to Configured apps Configured Configured apps SharedPreference committed to 2 Apps set s SharedPreferences Pass Intent to MainActivity Intent to Intent to After Done MainActivity is MainActivity is 3 Button Click Button click launched launched Pass Progress Bar Visibility on AsyncTask AsyncTask Progress bar Progress bar 4 Pre-Execute execution becomes visible becomes visible Pass Progress Bar Visibility on AsyncTask AsyncTask Progress bar Progress bar 5 Post-Execute completion becomes invisible becomes invisible Pass RecyclerView Adapter Set After RecyclerView RecyclerView AsyncTask AsyncTask adapter set with adapter set with 6 Execution completion app list app list Pass Correct AsyncTask AsyncTask AsyncTask AsyncTask executes without executes without 7 Execution execution errors errors Pass Correct User User apps list User apps list Apps List PackageManager generated generated 8 Generation query correctly correctly Pass Correct App PackageManager App icons App icons 9 Icon Retrieval query retrieved correctly retrieved correctly Pass Correct App Name PackageManager App names App names 10 Retrieval query retrieved correctly retrieved correctly Pass Correct App Stats PackageManager App stats App stats 11 Retrieval query retrieved correctly retrieved correctly Pass Valid Package Name PackageManager Package names Package names 12 Handling query handled correctly handled correctly Pass AsyncTask AsyncTask is AsyncTask is Cancellation cancelled on cancelled on on Activity Activity activity activity 13 Destroy destruction destruction destruction Pass Correct AsyncTask Errors handled Errors handled Error properly in properly in 14 Handling AsyncTask error AsyncTask AsyncTask Pass Expected TC_ID TC_Name Input Data Result Actual Result Status View View inflated View inflated 1 Initialization None correctly correctly Pass Continue Continue Continue Button button button Disabled disabled disabled 2 Initially None initially initially Pass Continue Continue Continue button button Button enabled after enabled after Enabled After both both Permissions Permissions permissions permissions 3 Grant granted granted granted Pass Intent to Intent to usage access usage access Usage Access settings settings 4 Button Click Button click launched launched Pass Intent to Intent to manage manage overlay overlay Appear on permission permission Top Button settings settings 5 Click Button click launched launched Pass Usage access Usage access Usage Access Usage access button button Permission permission disabled and disabled and 6 Granted granted colored gray colored gray Pass Appear on Appear on top Appear on top Top Appear on top button button Permission permission disabled and disabled and 7 Granted granted colored gray colored gray Pass Continue Continue Continue Button button button Enabled After enabled after enabled after Usage Access Usage access usage access usage access 8 Grant granted granted granted Pass Continue Continue Continue button button Button enabled after enabled after Enabled After appear on top appear on top Appear on Appear on top permission permission 9 Top Grant granted granted granted Pass Usage access Usage access button button Usage Access Usage access remains remains Permission permission enabled and enabled and 10 Not Granted denied not colored not colored Pass 11 Appear on Appear on top Appear on top Appear on top Pass Top permission button button Permission denied remains remains enabled and enabled and Not Granted not colored not colored Continue Continue Continue button button Button Still remains remains Disabled No disabled disabled Without permissions without without 12 Permissions granted permissions permissions Pass Permissions Permissions Check checked checked Permissions periodically periodically 13 Periodically Periodic check every second every second Pass Usage Access Intent to Intent to Button Click No usage access usage access Without permissions settings not settings not 14 Permission granted launched launched Pass
TC_ID TC_Name Input Data Expected Actual Result Status
Result View View inflated View inflated 1 Initialization None correctly correctly Pass Progress bar Progress bar updated updated Progress Bar correctly correctly Updated according to according to 2 Correctly Usage time the delay time the delay time Pass Continue Button Continue Continue Hidden button hidden button hidden 3 Initially None initially initially Pass Continue Continue Continue button shown button shown Button Shown after delay after delay 4 After Delay None time elapsed time elapsed Pass App launched App launched Continue after continue after continue 5 Button Click Button click button clicked button clicked Pass Home screen Home screen launched launched Close Button after close after close 6 Click Button click button clicked button clicked Pass Task list Task list populated populated correctly correctly Task List according to according to 7 Populated Task list data the data the data Pass Delay time Delay time calculated calculated correctly correctly Delay Time based on the based on the 8 Calculation Usage time usage time usage time Pass Method to Method to Move to Front bring activity bring activity Method to front called to front called 9 Called None correctly correctly Pass Back button Back button press disabled press disabled Back Button and does not and does not Press Back button exit the exit the 10 Disabled press activity activity Pass No task list No task list displayed displayed Task List Empty task when the task when the task 11 Absent list list is empty list is empty Pass App Launched App launched App launched After successfully successfully Continue after continue after continue 12 Button Click None button click button click Pass 13 Home Screen None Home screen Home screen Pass launched launched Launched successfully successfully After Close after close after close Button Click button click button click Delay time Delay time calculated calculated correctly for correctly for Delay Time different different Calculation Usage time usage time usage time 14 Edge Case edge case scenarios scenarios Pass