Friday 28 December 2012

Testcases for date field validation


It has calender provided beside textbox (we need to select date from text box)
1.Should accept dates in any format as decided ie dd/mm/yy or mm/dd/yy or yyyy(ex:1983). Client machine has some format set in regional settings.
2.If the date field is system driven then the format specified in the system should be accepted.
3.Need labels near date field for date format.
4.Cannot be left blank generally.
5.Cannot accept characters in the date function.
6.Should take 30/31 days according to the month of the year.
7.should accept 29 days of february in the leap year.
8.should not accept 000000 as a date.
9.should not accept more than 12 as the month value.
10.should accept 01 or 1 as the month value. The same holds true for day value.
11.should not accept only XX if the format specified is yyyy.
12.start date < end date
13.Separater can be either '-' or '/'
14.Validation of dates should be done by the dates on the server and not on the client.
15.Either any one of the date/month/year should be 00.
16.The present date should not be less than other dates.
17.We should also try for characters n special characters if the text box is editable.
18.We should specifically try dates like 30-02-2004(dd-mm-yyyy).
19.If we click on the text-box the calender should open.
20 We should be able to select the desired day on the calender.
21.After we click on to the selected date date should come in to the box and calender should be disappeared from there.
These should be the test cases for the selection of date in the text box
1. click on to the calender icon in front of the date field. calender should be opened.
2.in the calender current date should be selected
3.we should be able to select the desired date on to the calender
4.after click on to the selected date date should be come in to the box and calender should be disappered from there.
1.Should accept dates in any format as decided ie ddmmyy or mmddyy or yyyy. Client machine has some format set in regional settings.2.If the date field is system driven then the format specified in the system should be accepted.3.Need labels near date field for date format.4.Cannot be left blank generally5.Cannot accept characters in the date function6.Should take 30/31 days according to the month of the year7.should accept 29 days of february in the leap year.8.should not accept 000000 as a date.9.should not accept more than 12 as the month value.10.should accept 01 or 1 as the month value. The same holds true for day value.11.should not accept only XX if the format specified is yyyy.12.start date 31 similarily month should be< 12 and year as per requirement)
3) Also try characters and spcl. characters on date if textbox is editable.
4) Try dates 30-02-2004 i.e validation for month of feb.
5) Check as per requirement if all parts are separated with / or – or . sign
6) 1980- -1980 20/10/2006 etc. if given in requirement this is usually given in search 1980- means search for records after 1980 and so on
Bikram Cheema
(Third party Calendar controls/date pickers will have a text box attached with a button/icon beside it) You can consider the following test cases for a calendar control.
They may be many cases if the text box is editable or not purpose of the date field used etc .
1. Ensure that calendar window is displayed and active when the calendar is invoked by pressing the calendar icon. (Once we faced an issue the calendar window is in minimized state when we invoked the calendar.)
2. Ensure that calendar date is defaulted to system date.
3. Ensure that when a date is selected in the calendar (double click or some other method) the selected date is displayed in the text box.
(Third party Calendar controls/date pickers will have a text box attached with a button/icon beside it) You can consider the following test cases for a calendar control.
They may be many cases ,if the text box is editable or not, purpose of the date field used etc�.
1. Ensure that calendar window is displayed and active, when the calendar is invoked by pressing the calendar icon. (Once we faced an issue, the calendar window is in minimized state when we invoked the calendar.)
2. Ensure that calendar date is defaulted to system date.
3. Ensure that when a date is selected in the calendar (double click, or some other method), the selected date is displayed in the text box.

Roles of a Test Engineer

Roles

Web Application Testing


Basic Web Application Testing Checklist

User Interface
1. Colors
  • Are hyperlink colors standard?
  • Are the field backgrounds the correct color?
  • Are the field prompts the correct color?
  • Are the screen and field colors adjusted correctly for non-editable mode?
  • Does the site use (approximately) standard link colors?
  • Are all the buttons are in standard format and size?
  • Is the general screen background the correct color?
  • Is the page background (color) distraction free?
2. Content
  • All fonts to be the same
  • Are all the screen prompts specified in the correct screen font?
  • Does content remain if you need to go back to a previous page, or if you move forward to another new page? (Note: This may be altered based on the application and the requirement)
  • Is all text properly aligned?
  • Is the text in all fields specified in the correct screen font?
  • Is all the heading are left aligned
  • Does the first letter of the second word appears in lowercase?
3. Images
  • Are all graphics properly aligned?
  • Are graphics being used the most efficient use of file size?
  • Are graphics optimized for quick downloads?
  • Assure that command buttons are all of similar size and shape, and same font & font size.
  • Banner style & size & display exact same as existing windows
  • Does text wrap properly around pictures/graphics?
  • Is it visually consistent even without graphics?
4. Instructions
  • Is all the error message text spelt correctly on this screen?
  • Is all the micro-help text (i.e tool tip) spelt correctly on this screen?
  • Micro help text (i.e tool tip) for every enabled field & button
  • Progress messages on load of tabbed(active screens) screens
5. Navigation
  • Are all disabled fields avoided in the TAB sequence?
  • Are all read-only fields avoided in the TAB sequence?
  • Can all screens accessible via buttons on this screen be accessed correctly?
  • Does a scrollbar appear if required?
  • Does the Tab Order specified on the screen go in sequence from Top Left to bottom right? This is the default unless otherwise specified.
  • Is there a link to home on every single page?
  • On open of tab focus will be on first editable field
  • When an error message occurs does the focus return to the field in error when the user cancels it?
6. Usability
  • Are all the field prompts spelt correctly?
  • Are fonts too large or too small to read?
  • Are names in command button & option box names are not abbreviations.
  • Assure that option boxes, option buttons, and command buttons are logically grouped together in clearly demarcated areas "Group Box"
  • Can the typical user run the system without frustration?
  • Do pages print legibly without cutting off text?
  • Does the site convey a clear sense of its intended audience?
  • Does the site have a consistent, clearly recognizable "look-&-feel"?
  • Does User cab Login Member Area with both UserName/Email ID?
  • Does the site look good on 640 x 480, 600x800 etc.?
  • Does the system provide or facilitate customer service? i.e. responsive, helpful, accurate?
  • Is all terminology understandable for all of the site’s intended users?
7. Textboxes
  • Move mouse to text box and it should be changed to insert bar for editable text field and should remain unchanged for non-editable text field.
  • Test overflowing text box by inserting as many characters as you can in the text field. Also test width of the text field by entering all capital W.
  • Enter invalid characters, special characters and make sure that there is no abnormality.
  • User should be able to select text using Shift + arrow keys. Selection should be possible using mouse and double click should select entire text in the text box.
8. Radiobuttons
  • Only one should be selected from the given option.
  • User should be able to select any button using mouse or key board
  • Arrow key should set/unset the radio buttons.
9. Checkboxes
  • User should be able to select any combination of check boxes
  • Clicking mouse on the box should set/unset the check box.
  • Space bar should also do the same
10. Push Buttons
  • All buttons except OK/Cancel should have a letter access to them. This is indicated by a letter underlined in the button text. The button should be activated by pressing ALT
  • Clicking each button with mouse should activate it and trigger required action.
  • Similarly, after giving focus SPACE or RETURN button should also do the same.
  • If there is any Cancel button on the screen, pressing Esc should activate it.
11. DropDownList Boxes
  • Pressing the arrow should give list of options available to the user. List can be scrollable but user should not be able to type in.
  • Pressing Ctrl-F4 should open the list box.
  • Pressing a letter should bring the first item in the list starting with the same letter.
  • Items should be in alphabetical order in any list.
  • Selected item should be displayed on the list.
  • There should be only one blank space in the dropdown list.
12. Combo Box
  • Similar to the list mentioned above, but user should be able to enter text in it.
13. List Boxes
  • Should allow single select, either by mouse or arrow keys.
  • Pressing any letter should take you to the first element starting with that letter
  • If there are view/open button, double clicking on icon should be mapped to these behavior.
  • Make sure that all the data can be seen using scroll bar.

Functionality Aspects
1. Links
  • Check that the link takes you to the page it said it would.
  • Ensure to have no orphan pages (a page that has no links to it)
  • Check all of your links to other websites
  • Are all referenced web sites or email addresses hyperlinked?
  • If we have removed some of the pages from our own site, set up a custom 404 page that redirects your visitors to your home page (or a search page) when the user try to access a page that no longer exists.
  • Check all mailto links and whether it reaches properly
2. Forms
  • Acceptance of invalid input
  • Optional versus mandatory fields
  • Input longer than field allows
  • Radio buttons
  • Default values on page load/reload(Also terms and conditions should be disabled)
  • Is Command Button can be used for Hyperlinks and Continue Links ?
  • Is all the data inside combo/list box are arranged in chronological order?
  • Are all of the parts of a table or form present? Correctly laid out? Can you confirm that selected texts are in the "right place?
  • Does a scrollbar appear if required?
3. Data Verification and Validation
  • Is the Privacy Policy clearly defined and available for user access?
  • At no point of time the system should behave awkwardly when an invalid data is fed
  • Check to see what happens if a user deletes cookies while in site
  • Check to see what happens if a user deletes cookies after visiting a site

Application Specific Functional Requirements
1. Data Integration
  • Check the maximum field lengths to ensure that there are no truncated characters?
  • If numeric fields accept negative values can these be stored correctly on the database and does it make sense for the field to accept negative numbers?
  • If a particular set of data is saved to the database check that each value gets saved fully to the database. (i.e.) Beware of truncation (of strings) and rounding of numeric values.
2. Data Field Checks
  • Assure that leap years are validated correctly & do not cause errors/miscalculations.
  • Assure that Feb. 28, 29, 30 are validated correctly & do not cause errors/ miscalculations.
  • Is copyright for all the sites includes Yahoo co-branded sites are updated
3. Numeric Fields
  • Assure that lowest and highest values are handled correctly.
  • Assure that numeric fields with a blank in position 1 are processed or reported as an error.
  • Assure that fields with a blank in the last position are processed or reported as an error an error.
  • Assure that both + and - values are correctly processed.
  • Assure that division by zero does not occur.
  • Include value zero in all calculations.
  • Assure that upper and lower values in ranges are handled correctly. 
4. Alphanumeric Field Checks
  • Use blank and non-blank data.
  • Include lowest and highest values.
  • Include invalid characters & symbols.
  • Include valid characters.
  • Include data items with first position blank.
  • Include data items with last position blank.

Interface and Error Handling
1. Server Interface
  • Verify that communication is done correctly, web server-application server, application server-database server and vice versa.
  • Compatibility of server software, hardware, network connections
2. External Interface
  • Have all supported browsers been tested?
  • Have all error conditions related to external interfaces been tested when external application is unavailable or server inaccessible?
3. Internal Interface
  • If the site uses plug-ins, can the site still be used without them?
  • Can all linked documents be supported/opened on all platforms (i.e. can Microsoft Word be opened on Solaris)?
  • Are failures handled if there are errors in download?
  • Can users use copy/paste functionality? Does it allows in password/CVV/credit card no field?
  • Are you able to submit unencrypted form data?
4. Internal Interface
  • If the system does crash, are the re-start and recovery mechanisms efficient and reliable?
  • If we leave the site in the middle of a task does it cancel?
  • If we lose our Internet connection does the transaction cancel?
  • Does our solution handle browser crashes?
  • Does our solution handle network failures between Web site and application servers?
  • Have you implemented intelligent error handling (from disabling cookies, etc.)?

Compatibility
1.Browsers
  • Is the HTML version being used compatible with appropriate browser versions?
  • Do images display correctly with browsers under test?
  • Verify the fonts are usable on any of the browsers
  • Is Java Code/Scripts usable by the browsers under test?
  • Have you tested Animated GIFs across browsers?
2. Video Settings
  • Screen resolution (check that text and graphic alignment still work, font are readable etc.) like 1024 by 768, 600x800, 640 x 480 pixels etc
  • Color depth (256, 16-bit, 32-bit)
3. Connection Speed
  • Does the site load quickly enough in the viewer's browser within 8 Seconds?
4. Printers
  • Text and image alignment
  • Colors of text, foreground and background
  • Scalability to fit paper size
  • Tables and borders
  • Do pages print legibly without cutting off text?

E-Mail ID Testing



Here is the list of valid and invalid email format which can be used for testing.  The list is not comprehensive by any means, and is probably missing a bunch of edge cases.  However, it provides enough coverage for the majority of the allowed/disallowed email address according to RFC 2822.
BTW, if anyone else would like to contribute more cases to this list, or spot errors (fingers crossed), please feel free to let me know and I'll make sure the list is up-to-date.
Valid Email address
Reason
email@domain.com
Valid email
firstname.lastname@domain.com
Email contains dot in the address field
email@subdomain.domain.com
Email contains dot with subdomain
firstname+lastname@domain.com
Plus sign is considered valid character
email@123.123.123.123
Domain is valid IP address
email@[123.123.123.123]
Square bracket around IP address is considered valid
"email"@domain.com
Quotes around email is considered valid
1234567890@domain.com
Digits in address are valid
email@domain-one.com
Dash in domain name is valid
_______@domain.com
Underscore in the address field is valid
email@domain.name
.name is valid Top Level Domain name
email@domain.co.jp
Dot in Top Level Domain name also considered valid (use co.jp as example here)
firstname-lastname@domain.com
Dash in address field is valid

Invalid Email address
Reason
plainaddress
Missing @ sign and domain
#@%^%#$@#$@#.com
Garbage
@domain.com
Missing username
Joe Smith <email@domain.com>
Encoded html within email is invalid
email.domain.com
Missing @
email@domain@domain.com
Two @ sign
.email@domain.com
Leading dot in address is not allowed
email.@domain.com
Trailing dot in address is not allowed
email..email@domain.com
Multiple dots
あいうえお@domain.com
Unicode char as address
email@domain.com (Joe Smith)
Text followed email is not allowed
email@domain
Missing top level domain (.com/.net/.org/etc)
email@-domain.com
Leading dash in front of domain is invalid
email@domain.web
.web is not a valid top level domain
email@111.222.333.44444
Invalid IP format
email@domain..com
Multiple dot in the domain portion is invalid

Salesforce AI Associate Certification - 3

What is semantic retrieval in the context of LLMs?   Searching for relevant information in other data sources What additional protection do...