Forums.Sureshkumar.net : A Perfect Place to Share Knowledge         Blogs     Games    Magazines    

"Sharing knowledge does not lessen your store, often it gets you more. Sharing plays a key role in relationships and bonding, happens in small steps and is assisted through community membership."

Go Back   SURESHKUMAR.NET FORUMS > TECHNICAL DISCUSSIONS > Testing Tools & QA
Register FAQ Members List Calendar Games Blogs Search Today's Posts Mark Forums Read

   

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 18-10-06, 05:32 PM   #1 (permalink)
Moderator
 
slinkanand's Avatar
 
Join Date: Aug 2006
Location: London, MI, UK
Age: 28
Posts: 263
Thanks: 0
Thanked 159 Times in 76 Posts
Thanks: 0
Thanked 159 Times in 76 Posts
Rep Power: 22 slinkanand has much to be proud of slinkanand has much to be proud of slinkanand has much to be proud of slinkanand has much to be proud of slinkanand has much to be proud of slinkanand has much to be proud of slinkanand has much to be proud of slinkanand has much to be proud of slinkanand has much to be proud of slinkanand has much to be proud of slinkanand has much to be proud of
General Input Tests for Strings

Here are some routine tests to try for a simple string field.
To use these values, you should first know the Minimum and Maximum number of characters required.
Then decide which of the following are relevant for your input field and use them.
If you are using an automated test tool, these values can easily be used exhaustively, or randomly, by a test script:
  • Nothing
  • Empty field (clear any defaults)
  • More than the maximum number of characters
  • Much more than the maximum number of characters
  • Any valid string
  • A single leading space
  • Many leading spaces
  • A single trailing space
  • Many trailing spaces
  • Leading and trailing spaces
  • A single embedded space
  • Many embedded spaces
  • Nonprinting character (e.g., Ctrl+char)
  • Operating system filename reserved characters (e.g., "*.:")
  • Language-specific reserved characters
  • Upper ASCII (128-254) (a.k.a. ANSI) characters
  • ASCII 255 (often interpreted as end of file)
  • Uppercase characters
  • Lowercase characters
  • Mixed case characters
  • Modifiers (e.g., Ctrl, Alt, Shift-Ctrl, and so on)
  • Function key (F2, F3, F5, and so on)
  • Characters special to sprintf (like or %d)
  • Keyboard special characters (~!@...)

Character Input Testing

The following is a list of characters that are, or may be, special to some portion of the processing chain for many web applications.

A robust input and display testing strategy will verify that these characters are
  • correctly rendered on input
  • if persisted in some way, correctly rendered after being persisted and retrieved from the persistent store
  • work correctly when placed in different parts of an input string (beginning, middle, end)
Note that some of these collections overlap -- the intent is for each list to be complete in and of itself.
  • Characters that are special to file system paths
    . \ / : ;
  • Characters that are illegal in file system paths
    unknown, TBD
  • Characters that are special to XML
    < > & " '
  • Characters that are illegal in XML
    • The following BNF rule describes valid characters in XML (from XML specification):
      • Char ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
      • Any character not in these ranges (for example #xC) is not allowed to appear anywhere in an XML document. (We still may need to handle these values correctly in some places.
        Even if the user may not be able to enter them, other services sometimes return them to us. For example, some SNMP object discoveries return strings containing #x0.)
  • Characters that are special in Javascript
    TBD, includes " ' \ and some character combinations beginning with \, like \u \n.
  • Characters that are illegal in Javascript
    TBD
  • Characters that are special in URLs
    • See RFC 2396, sections 2.2-2.4. The following characters are special:
    • reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" | "$" | ","
  • Characters that are illegal in URLs
    • See RFC 2396, sections 2.2-2.4. The following characters (the "unreserved" rules)
      are legal in URLs:
    • unreserved = alphanum | mark
      mark = "-" | "_" | "." | "!" | "~" | "*" | "'" | "(" | ")"
      alphanum = A-Z a-z 0-9
    • Any characters not in this set (for example 16-bit characters, 8-bit non-US-ASCII
      characters, and punctuation marks not in this list, except reserved characters being
      used in their official capacity) must be hex-encoded to be included in a URL.
    • The following rules describe characters that are explicitly disallowed (this set is
      NOT exhaustive, as the previous paragraph is):
    • control =
      space =
      delims = "<" | ">" | "#" | "%" | <">
      unwise = "{" | "}" | "|" | "\" | "^" | "[" | "]" | "`"
  • Characters that are 8-bit (e.g. European characters from ISO-8859-1,2,3):
    a with umlaut, e with accent, o with slash
  • Characters that are 16-bit: Korean, Japanese characters
__________________
Anand reddy

Some Birds aren't meant to be caged. Their feathers are too bright…
slinkanand is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01-11-06, 05:34 PM   #2 (permalink)
Member
 
Join Date: Oct 2006
Posts: 30
Thanks: 4
Thanked 2 Times in 1 Posts
Thanks: 4
Thanked 2 Times in 1 Post
Rep Power: 3 vanik is on a distinguished road
Re: General Input Tests for Strings

thank you
vanik is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
General Input Tests for Time Fields slinkanand Testing Tools & QA 0 18-10-06 05:27 PM
General Input Tests for Date Fields slinkanand Testing Tools & QA 0 18-10-06 05:24 PM
General Input Tests for Checkbox Fields slinkanand Testing Tools & QA 0 18-10-06 05:23 PM
General Input Tests for Radiobutton Fields slinkanand Testing Tools & QA 0 18-10-06 05:23 PM
General Input Tests for List box Fields slinkanand Testing Tools & QA 0 18-10-06 05:21 PM


All times are GMT +6.5. The time now is 10:06 AM.





Search Engine Optimization by vBSEO 3.1.0