naps
BAN USERSuppose a computer has three CD drives and three processes. Each of the three processes holds one of the drives. If each process now requests another drive, the three processes will be in a deadlock. Each process will be waiting for the "CD drive released" event, which can be only caused by one of the other waiting processes.
- naps May 04, 2014It is very difficult to write the test cases here for whole amazon website, because test cases will be in thousands. But yes we can divide the testing in some part like
Functional and Non-functional Testing
In functional :- Buy box, login, logout,Signup, cancel order, Track order, Add to Cart, Add to wish list, Search bar, UI, Transaction process etc feature can be included.
Non-Functional:- Stress testing,Load testing, smoke testing, spike testing etc can be included.
Performance Testing:- is nothing but to test the performance of the testing application or system and to monitor the system performance under high load conditions etc.
Diff between Load testing and Stress testing
Load Testing:- is that in which we are applying the load till its end point i.e. let say if we are testing a website which is capable to take the load of 100 diff http users.Then we will apply the load from 1 to 100 (its upper limit only ) and check the performance in terms of speed, sustainability etc.
Stress Testing:- In stress testing we are testing the application by applying the load beyond its upper limit. i.e. more than 100 diff http users and then check it performance etc.
Here is the very simple implementation for this problem
import java.util.*;
public class SumOfNumArr{
public static void main(String []args){
int[] arr = {1,0,2,3};
int num = 3;
for(int i=0;i<arr.length;i++){
for(int j=0;j<arr.length;j++){
if(arr[i]+arr[j]==num)
System.out.println(arr[i] +", " + arr[j]);
}
}
}
}
1. Try to send the friend request from the user profile.
2. Try to send friend request from friend suggestion list by direct clicking on add as friend button/link.
3. Try to send a friend request to that guy who has mutual friends.
4. Try to add those guys who doesn't have any mutual friends.
5. Try to add yourself by going to your profile page.
6. Remove your friend from friend list and again add to friend list.
7. Try to add to that guy to whom you have blocked.
8. Try to cancel the friend request.
9. Check if you are able to see all stuffs of the another user profile after adding to friend list.
10. Check if the both user are able to chat each other.
11. Check also other related feature after adding to the user to friend list, like if you are able to like picture, put the comments and share.
Test the location service of smartphone
1. Check network connectivity, open gprs, gps and then open the google map and find your location and match with your exact location.
2. Don't open the gps, just open gprs and find your location on map.
3. Try to find the location while moving on high speed vehicle i.e. bike, car etc.
4. Try to find location in rural area.
5. Try to find the location on mountain area, in valley.
6. Find your location on the top of the very high building.
7. Try to find the location in river, sea on boat etc.
8. Open gps find location, pause application and close gps and move to new location then again open gps and resume application and check your current location.
9. Create VPN and use location map application over VPN and check the accuracy of the location.
So here for reversing a string, we have very simple algo :-
Take the string and convert it into char array by using toCharArray() function and take a temp char var.
Now start a for loop which will run until half of the length of array.
In this loop just swap the values using temp var like first value of array store in temp, and last element of array move to first and temp move to last.
That all now print the array by using for loop.
Here is the code implementation for the same :
import java.util.*;
public class ReverseString{
public static void main(String []args){
String str = "this is me";
char[] arr = str.toCharArray();
int len = arr.length;
for(int i=0;i<arr.length/2;i++){
char temp = 0;
temp = arr[i];
arr[i] = arr[len-i-1];
arr[len-i-1] = temp;
}
for(int i=0;i<arr.length;i++)
System.out.println(arr[i]);
}
}
Here are some debugging points which i will follow
1. Check if you have install any pdf reader.
2. Check if you are able to open that pdf reader.
3. Close pdf reader and again try to open the file.
4. Update the pdf reader.
5. Try to open the pdf file in any other pdf reader.
6. Check if the file is of valid format.
7. Check if the file is downloaded completely.
8. Try to open that pdf file in any other system.
9. Check the system RAM.
10. Check the memory consumption of system by the application.
11. Close other running application of the system.
12. Restart the system and again try to open the application.
13. Reinstall the pdf reader application.
14. Check if the application is blocked by any third party software etc.
15. Check the compatibility of application with OS.
16. Try to open some other pdf file in pdf reader to cross check.
17. Check if the pdf file requires password to open.
18. Check the error message if it is throwing some error while opening that pdf file.
19. Check if the pdf reader is running any other pdf file.
20. Check the file size.
21. Check the file extension.
22. Check the file permissions.
23. Restore the system to previous working conditions.
1. Install the browser on mobile.
2. Open the browser.
3. Check the browser is closing or not.
4. Open the private mode in browser and open any website.
5. Check if the browser is storing the history or other user data in private mode or not.
6. Try to open new window if it is opening also in private mode or not.
7. Close internet connection and then test it by opening any website in the browser.
8. Open the browser and minimize it and again open the browser and check if it is opening it in its previous state or not.
9. Check other functional testing like change font, remember password, new tabs etc.
10. UI testing on different browser, like it is compatible to the mobile screen resolution or not.
11. Security Testing.
12. Open many tabs at the same time.
13. Try to open the browser in low RAM.
14. Check bookmarks, save page feature.
15. Open some website and check if it is opening in mobile view or system view.
16. Open website and check if it is opening in the browser according to the screen resolution.
17. try to open two different website in two diff tab at the same time and perform some diff operations on them.
18. Try to download some files in the browser.
19. Download a very large file by using browser, and check if it is able to download that file or not.
20. Try to enter some wrong url in the browser.
21. Try to pass a vary log url
22. Open some flash website like YouTube and run any video in browser.
23. Try to kill the application from system app setting.
1. Upload a image of valid format.
2. Upload a image in valid size.
3. Image in valid resolution to upload.
4. Check the internet connectivity.
5. Upload some invalid format image.
6. Upload any text or some other non image file.
7. Upload a image in vary large size.
8. Upload multiple images (i.e. 5-6)
9. Upload a very large number of images (i.e. 500-800)
10. Don't upload any image and click on upload button.
11. Upload image which have a very long name.
12. Take a text file and change its extension to supported image format (i.e. jpeg) and try to upload.
13. Try to upload same image file at the same time.
14. Upload the file using different browsers.
1. Restart the vlc.
2. Try to play the movie in any other player.
3. Check the movie format is supported by vlc or not.
4. Check the system RAM.
5. Restart the system.
6. Clean the system cache any temp files.
7. Close other running applications.
8. Update the vlc.
9. Reinstall the vlc.
10. Check the vlc preferences, may b video and audio options are disable.
11. Try to change the movie file extension, some time you have .mp4 file and changed to .avi
12. Check if the any third party app is blocking to the vlc.
13. Check if the antivirus or firewall etc any security wall is blocking the vlc.
14. Check the task manager if there is any process or thread of vlc is running on the background, in that case kill that process.
15. Check if you have minimized the vlc.
16. Check the system video card capacity ( Memory) if it is capable to play the video.
17. Check if the movie file is corrupt.
18. Check if the movie file is already running and you are trying to playing it again in the same player.
19. Check if the audio and video driver are properly installed on system.
20. Check if the audio and video drivers are properly enable.
21. Check the internet connectivity if the movie file is required to play.
22. Check if the video file is not downloaded complete or still in downloading process.
23. Check if the system display is working fine.
24. Check if the movie file is very large.
25. Check the log if vlc is throwing some logs.
Here are some basic scenario
1. Check the internet connectivity.
2. Try to open in different browsers.
3. Check the browser proxy settings.
4. Update the browser.
5. Restart the system.
6. Test the ip address of the system.
7. Check that the website is available for india locale or not.
8. Check the firewall setting.
9. Check if the website is blocked by any third party application.
10. Clean the cache of browser..
11. Restart the browser.
12. Try to open the app on some other location by using some proxy site or app.
13. Try to reinstall the browser.
14. Check the timezone.
15. Check the url of the website.
16. Check if the antivirus is blocking the website.
17. Check if the web server is down for maintenance.
18. Check the domain name of website, let say in US domain is .com and in india domain is .in
19. Check if your service provider has blocked the website, sometime your service provider block some website.
20. Try to refresh the webpage 5-8 times due to lack to internet speed.
public class ReplaceCharFromString{
public static void main(String []args){
String str1 = "stauvwamna";
char[] arr1 = str1.toCharArray();
char str2 = 'X';
char chr = 'a';
for(int i=0;i<arr1.length;i++){
if(arr1[i]==chr){
arr1[i]=str2;
System.out.println(arr1[i]);
}else
System.out.println(arr1[i]);
}
}
}
1. Login with google account.
2. Store the things which user is searching.
3. Store the clicks (things) on which user is clicking
4. Get the user activity in other tabs of browsers.
5. access and get the information from user email, groups ect.
6. get the request from user for advertisement.
These steps are following the procedure of google standard what google do.
public class PushZeroAtEndOfArray{
public static void main(String []args){
int[] arr = {1,0,3,0,2,0,4,6,0,5};
int[] arr1 = new int[arr.length];
int j = arr.length;
int k=0;
for(int i=0;i<arr.length;i++){
if(arr[i]==0){
arr1[k]=0;
}else{
arr1[k] = arr[i];
k++;
}
}
for(int i=0;i<j;i++)
System.out.println(arr1[i]);
}
}
Here i am listing down some basic scenarios which user can try to debug the vlc media player.
1. Restart the vlc.
2. Restart the system and again start the vlc.
3. check the media format which user is running in vlc.
4. try to run some other format supported by vlc.
5. kill all thread of the vlc and again run it.
6. Check the System RAM.
7. Clean the system cache and temp files.
8. update the vlc media player.
9. reinstall the vlc.
10. Restore the system in previous restore point.
11. close all other running application.
12. Scan the system with antivirus, it is possible that app is crashing due to any virus.
13. check the error or warning message of if some file missing or something else.
Start from basic till end
1. Restart the application
2. Restart the System
3. Check the RAM of System
4. Remove system cache and temp files to make more space
5. Check if jre is installed may be you have deleted by mistake
6. Check CLASS PATH is right or not
7. Check the error or warnings which it is throwing while crashing.
8. Run the application as Administrative permissions.
9. Restore the system to previous restore point.
10. Try to debug the code of the application and check at which point it is breaking.
11. Try to google if you found some error or warnings.
12. Check the console to find the error.
13. Check the internet connectivity if application require the internet connection.
14. Check the dependency in the application.
These are some basic scenarios which user can try if he doesn't have the knowledge of coding and he need to debug the app.
1. Check if the wifi device is on or not.
- naps May 06, 20142. Internet wire is connected to device.
3. Internet connectivity notifications are coming on device.
4. Check on laptop that you wifi is enable on laptop.
5. Test if the wifi is connected to this wifi device.
6. Test if the wifi drivers are installed properly on laptop.
7. Test if the wifi connectivity is coming.
8. Test if the wifi get off when application is using.
9. Disconnect the wifi while using application over wifi.
10. Use internet on multiple application at the same time and check the speed of internet.
11. Use multiple device on same wifi to test the internet connectivity speed.
12. test if the user with device is out of range.
13. Test on the edge of wifi rage.
14. Connect with another wifi and use the application then move to the range of this testing wifi and test if laptop get connect with it or not.