Labels

Tuesday 25 August 2020

API Testing

Http Verbs
1. GET

Need to Send Request Headers  like accept,accept-encoding,accept-language and user-agent


2. POST
3. PUT
4. DELETE
5. PATCH
6. HEAD
7. CONNECTIONS
8. OPTIONS
9. TRACE



Authentication
#1. Cookie based authentication
#2. OAUTH
#3. OAUTH2

Saturday 8 October 2016

Tools makes testing easier

A common myth that we hear around from people is testing is an easy task. But as a QA we know that it is  not easy as sounds. We come across many challenges/hurdles while testing an application. With the help of below tools we can make our day to day testing easier

Takeaways from this Post:

1. Different test tools which you can apply/implement to  your testing process. This makes your testing easier  
2. Test Ideas, which enhances your test skills
3. Let me know if you find other than above mentioned so that I will add here. Please ignore if these are not at all takeaways :)


Problem #1 -  
In one of my project, we had a requirement of  compatibility testing i.e. to test the application in heavy sets of environments where we need to focus on testing in different set of OS's and different set of browsers(All versions of browsers). 
Maintaining  multiple machines and multiple browsers(installing and uninstalling browsers on a machine and testing is a night mare task) is  heavy. But we had a little better solution to maintain a VM and have snapshots for each version. Even this did not worked well for  us, because switching to each snapshot is again a over head and also maintaining these vms used to take up more memory space which was again a risk

Sol'n -On researching, we came to know that there are some external service providers which serves our purpose. They maintain all the stack of environments in cloud where we can access them and test our applications. Some of them are 

2. Sauce Labs
3. In IE browser when you press F12, you can see an emulator mode where you can test different IE browsers(7,8,9,10,11,Edge)

Problem # -2  
Have you ever got a requirement/test criteria to test the color of particular component(button,frame,link)  in a web page should match with the hex decimal value? Don't know how to test this?

Sol'n - Try using colorcop, where you can find exact hex decimal value of a component by simple drag and drop of eye dropper controller on a web page (OR) you can also try using "Colorzilla" browser plugin (available in Chrome/Firefox)


Problem # -3  
Have you ever found a bug, where the application is inconsistent in terms of height /width of a web component or distance between the components within a page or a different page  is not consistent. How do you really measure  these parameters and convey to Dev?

Sol'n - "Measure It" -Add on Firefox where you can easily measure the distances between  a component in a page in "px " units

Note:
There is an awsome  tool called FastStone Capture which not only provides above features, but also has additional capabilities like  screen and video capturing 

Problem # -4  
Have you ever tested content in a web page to see whether your application has some typos? What is your approach?

Sol'n-
One approach is to  paste whole content in word editor and check for mistakes or install a firefox plug-in called spell checker, where instantly you can check typo errors just by a single click(No Copy/paste required.)

Problem # -5 -  
Do you want to test an input field in an application with multi language characters(say Arabic,French, Japanese etc..? Gather these Test Data?

Sol'n- "CharacterMap", Go to Start in Windows 7 and type charmap in search. You see all language characters and you can copy the different language characters and start testing






Problem # -6 - 
Most of the today's web applications are having signup and account activation process via web emails. There was a requirement in my project daily to test at least 10-20 registrations/signups followed by account activation via email. But registering dummy accounts for web email accounts  was a tedious task .

Sol'n: There are some service providers like Yopmail which does not ask for you to Signup at all.  It creates an account at run time(No authentication)


Problem # - 7 -
This problem is a generic one i.e. not tightly coupled with testing.However you can correlate the things. Say, You have given an application  or a new tool and your task  is to research, how you plan , learn, manage and organize the learned things?

Sol'n:  There is a powerful tool called Mind maps, where you can brainstorm your ideas, map  your findings in a single map. This not only reduce your unwanted documentation part but also you can plan things better if you have everything on one area.
Believe me, once you start using this, you will love it

Download links:

1. Xmind
2. Mind Miester

Note: There is an  awesome Open source test community called TestInase where people contribute testing related articles in Mind maps. Explore this you love  it

Below picture depicts the mind map related to selenium web driver api


                        

Problem # -8 - 
If your application supports 4-5 different roles and you need to test the scenarios related to roles. You either test logging in and out from a single browser 4-5 times (OR) open different sessions of browsers(say firefox ,chrome, ie and private windows) at a time which again a tedious task to switch to different browsers. Either of them does not make our testing process easier.

Soln: Install chrome plug-in called "New Identity", where 3 different sessions(say admin,moderator,end user) of a same application can be preserved in 3 different tabs with no issues


Problem # -9 -
We go in  a route of testing mobile applications(Native/ browser based apps)  in routine Android SDK emulators(since cost and maintenance of real devices is high) . But I observe that these are very slow in terms of performance .Another problem while testing with these emulators is, you cannot really simulate some actions like camera, controlling battery levels etc..

Soln: There are some advanced and powerful emulators like GenyMotion , whose performance is not only good but it also has powerful capabilities like simulating network, Camera, GPS,battery levels. Please try these from above link


Problem # -10-

Edit this cookie
Evernote

Image compare
rdp connection












Tools makes testing easier

A common myth that we hear around from people is testing is an easy task. But as a QA we know that it is  not easy as sounds. We come across many challenges/hurdles while testing an application. With the help of below tools we can make our day to day testing easier

Takeaways from this Post:

1. Different test tools which you can apply/implement to  your testing process. This makes your testing easier  
2. Test Ideas, which enhances your test skills
3. Let me know if you find other than above mentioned so that I will add here. Please ignore if these are not at all takeaways :)


Problem #1 -  
In one of my project, we had a requirement of  compatibility testing i.e. to test the application in heavy sets of environments where we need to focus on testing in different set of OS's and different set of browsers(All versions of browsers). 
Maintaining  multiple machines and multiple browsers(installing and uninstalling browsers on a machine and testing is a night mare task) is  heavy. But we had a little better solution to maintain a VM and have snapshots for each version. Even this did not worked well for  us, because switching to each snapshot is again a over head and also maintaining these vms used to take up more memory space which was again a risk

Sol'n -On researching, we came to know that there are some external service providers which serves our purpose. They maintain all the stack of environments in cloud where we can access them and test our applications. Some of them are 

2. Sauce Labs
3. In IE browser when you press F12, you can see an emulator mode where you can test different IE browsers(7,8,9,10,11,Edge)

Problem # -2  
Have you ever got a requirement/test criteria to test the color of particular component(button,frame,link)  in a web page should match with the hex decimal value? Don't know how to test this?

Sol'n - Try using colorcop, where you can find exact hex decimal value of a component by simple drag and drop of eye dropper controller on a web page (OR) you can also try using "Colorzilla" browser plugin (available in Chrome/Firefox)


Problem # -3  
Have you ever found a bug, where the application is inconsistent in terms of height /width of a web component or distance between the components within a page or a different page  is not consistent. How do you really measure  these parameters and convey to Dev?

Sol'n - "Measure It" -Add on Firefox where you can easily measure the distances between  a component in a page in "px " units

Note:
There is an awsome  tool called FastStone Capture which not only provides above features, but also has additional capabilities like  screen and video capturing 

Problem # -4  
Have you ever tested content in a web page to see whether your application has some typos? What is your approach?

Sol'n-
One approach is to  paste whole content in word editor and check for mistakes or install a firefox plug-in called spell checker, where instantly you can check typo errors just by a single click(No Copy/paste required.)

Problem # -5 -  
Do you want to test an input field in an application with multi language characters(say Arabic,French, Japanese etc..? Gather these Test Data?

Sol'n- "CharacterMap", Go to Start in Windows 7 and type charmap in search. You see all language characters and you can copy the different language characters and start testing






Problem # -6 - 
Most of the today's web applications are having signup and account activation process via web emails. There was a requirement in my project daily to test at least 10-20 registrations/signups followed by account activation via email. But registering dummy accounts for web email accounts  was a tedious task .

Sol'n: There are some service providers like Yopmail which does not ask for you to Signup at all.  It creates an account at run time(No authentication)


Problem # - 7 -
This problem is a generic one i.e. not tightly coupled with testing.However you can correlate the things. Say, You have given an application  or a new tool and your task  is to research, how you plan , learn, manage and organize the learned things?

Sol'n:  There is a powerful tool called Mind maps, where you can brainstorm your ideas, map  your findings in a single map. This not only reduce your unwanted documentation part but also you can plan things better if you have everything on one area.
Believe me, once you start using this, you will love it

Download links:

1. Xmind
2. Mind Miester

Note: There is an  awesome Open source test community called TestInase where people contribute testing related articles in Mind maps. Explore this you love  it

Below picture depicts the mind map related to selenium web driver api


                        

Problem # -8 - 
If your application supports 4-5 different roles and you need to test the scenarios related to roles. You either test logging in and out from a single browser 4-5 times (OR) open different sessions of browsers(say firefox ,chrome, ie and private windows) at a time which again a tedious task to switch to different browsers. Either of them does not make our testing process easier.

Soln: Install chrome plug-in called "New Identity", where 3 different sessions(say admin,moderator,end user) of a same application can be preserved in 3 different tabs with no issues


Problem # -9 -
We go in  a route of testing mobile applications(Native/ browser based apps)  in routine Android SDK emulators(since cost and maintenance of real devices is high) . But I observe that these are very slow in terms of performance .Another problem while testing with these emulators is, you cannot really simulate some actions like camera, controlling battery levels etc..

Soln: There are some advanced and powerful emulators like GenyMotion , whose performance is not only good but it also has powerful capabilities like simulating network, Camera, GPS,battery levels. Please try these from above link


Problem # -10-

Edit this cookie
Evernote