Monday, March 9, 2009

How to test a Text Box

Listed below are the scenarios to test a text box in an application,

1) Check with the requirement whether it will accept numeric and special characters

2) Enter” HTML tag” and click save button
If it displays the entered texts means there is no defect.
If it converts the HTML tags and displays the message only means there is a defect

3) Enter “Java Script” and click save button
If it displays the entered texts means there is no defect.
If it converts the Script and displays the message only means there is a defect

4) Copy and paste a “Embed code” for a video from You Tube and click save button
If it displays the entered texts means there is no defect.
If it displays the video for that code means it is defect

5) Enter “Profile layout codes” and click save button
Ex : take code from http://www.pimpmyarea.com/getcode.php?style=archivos_css/movies2.css
If it displays the entered texts means there is no defect.
If it changes the design of the page means it is defect

6) Test With Boundary value conditions for the given character limitation
Ex: If it accepts 1 to 10 characters
Then Test with 0, 1,2,9,10,11
It will not accept 0 and 11 characters, if it accepts then there is an defect

7) Test by entering “Spaces” in the prefix and suffix of the entered character
It has to trim the spaces and have to display the texts properly

8) Test by entering “single quotes and double quotes”
It will result in Database error

9) Enter a text within Double quotes and click save button
Ex: “Testing”
Sometimes it will not show the entered text in the text box

10) Copy and Paste long texts from word or notepad
Ex: If the characters are limited between 1 to 10, then it will not allow to type text more than 10 characters, Some times copy texts from word document which have 15 characters and paste it in the text box, it will allow.

Tuesday, March 3, 2009

How to find broken links in a website

If you are testing web based applications, then it is necessary to find the broken links in the website.

Links which is not redirected to proper pages or not showing any output page is known as broken links.

Listed below are the online tools to find broken links in your application

1) http://validator.w3.org/checklink
2) http://htmlhelp.com/tools/valet/

Other than these tools there is one tool called “Xenu” also used to find the broken links. But you have to install it in your local system. Here is the link to download “Xenu”

http://www.softpedia.com/get/Internet/Other-Internet-Related/Xenu-Link-Sleuth.shtml

These tools will not give you all the broken links in your website. Normally manual testing of a application is far better than testing with the help of tools.

If you know more about the tools to find broken links, kindly write down in comments section or send an e-mail to me.

Monday, March 2, 2009

What is “character set” and how to test “Character Set”:

Character set: A defined list of characters recognized by the computer hardware and software. Each character is represented by a number.The ASCII character set, for example, uses the numbers 0 through 127 to represent all English characters as well as special control characters.



How to test Character set:

Scenario 1:

1) If you have admin rights for your web application, you can see an option for changing character set in main settings field. It will be normally displayed as “UTF-8”
2) Now Go to the site and change the UTF set in your browser via View--character encoding--more encoding--UTF-16
After choosing the UTF-16 check whether the texts in the site displayed properly or not?




Scenario 2:
1) Change the character set from UTF-8 into UTF-16 in admin and save changes
2) Now go to the site and change the UTF set and language to check whether site displays the texts properly or not.
To change language go to View--character encoding--Auto detect



Scenario 3:
1) After changing UTF character set in admin, check with the pop up’s and flash players in the site.
2) Sometimes change in UTF character set will results in pop up display and flash player display in the site (i.e.) pop up’s in the site and player will not display properly

Note: Test the above scenarios in all the major browsers.

If you know more about character set and testing of character set, kindly write down in comments section or send an e-mail to me.