Automation Testing, Manual Testing, QTP/UFT 11 , QC/ALM 11 ,SAP TAO, Unix, Selenium, Oracle SQL, Shell Scripting and For Online Trinings to contact me : Cell:+91-8897972059 , Email Id : quicktestprotech@gmail.com

Saturday, January 29, 2011

Web Scripts

Web Scripts

1) Count all opened Browsers on desktop, Capture Browser names and
export to an Excel file

Dim oBrowser, Browsers, TotBrowsers, i,r
Set objExcel=CreateObject("Excel.
Application")
Set myFile=objExcel.Workbooks.Open ("C:\Documents and
Settings\Administrator\Desktop\qtclass.xls")
Set mySheet=myFile.Worksheets("Sheet3")
r=1
mysheet.Cells(r,"C")="Browser Names"
Set oBrowser=Description.Create
oBrowser("micclass").value="Browser"

Set Browsers=Desktop.ChildObjects(oBrowser)
TotBrowsers=Browsers.Count
Msgbox TotBrowsers

For i= 0 to TotBrowsers-1 Step 1
       r=r+1
myBrowser=Browsers(i).GetRoproperty("title")
mysheet.Cells(r,"C")=myBrowser
Browsers(i).Close
Next

myFile.Save
objExcel.Quit
Set objExcel=Nothing

GUI Testing Checklist

GUI Testing Checklist 

This GUI Testing Checklist is to help you understand how your application can be tested according to the known and understood standards for GUI. This checklist can give some guidance to the development and Testing Teams. 

Development team can make sure that during the development they follow guidelines related to the compliance, aesthetics, navigation etc. but onus of testing GUI is on the QE team and as a tester it is your responsibility to validate your product against GUI standards followed by your organization

This GUI test checklist can ensure that all the GUI components are thoroughly tested. 

 GUI Objects:
Window, Dialog Box, Push Button, Radio Button, Radio Group, Tool bar,Edit Box, Text Box, Check Box, List Box, Drop down Box, Combo Box, Tab, Tree view, progress bar, Table,Scroll bar, Spin Etc... 
 

Windows Compliance Standards 
These compliance standards are followed by almost all the windows based application. Any variance from these standards can result into inconvenience to the user. This compliance must be followed for every application. These compliances can be categorized according to following criteria 
                     i.Compliance for each Application

ü       Application should be started by double clicking on the icon.
ü       Loading message should have information about application name, version number, icon etc.
ü       Main window of application should have same caption as the icon in the program manager.
ü       Closing of the application should result in “Are you sure?” message.
ü       Behaviour for starting application more than once must be specified.
ü       Try to start application while it is loading
ü       On every application, if application is busy it should show hour glass or some other mechanism to notify user that it is processing.
ü       Normally F1 button is used for help. If your product has help integrated, it should come by pressing F1 button.
ü       Minimize and restoring functionality should work properly
                   ii.Compliance for each Window in the Application 
ü       Window caption for every application should have application name and window name. Specially, error messages.
ü       Title of the window and information should make sense to the user.
ü       If screen has control menu, use the entire control menu like move, close, resize etc.
ü       Text present should be checked for spelling and grammar.
ü       If tab navigation is present, TAB should move focus in forward direction and SHIFT+TAB in backward direction.
ü       Tab order should be left to right and top to bottom within a group box.
ü       If focus is present on any control, it should be presented by dotting lines around it.
ü       User should not be able to select greyed or disabled control. Try this using tab as well as mouse.
ü       Text should be left justified
ü       In general, all the operations should have corresponding key board shortcut key for this.
ü       All tab buttons should have distinct letter for it.
                  iii.Text boxes
ü       Move mouse to textbox and it should be changed to insert bar for editable text field and should remain unchanged for non-editable text field.
ü       Test overflowing textbox 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.
                  iv.Radio Buttons
ü       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.
                   v.Check boxes
ü       User should be able to select any combination of checkboxes
ü       Clicking mouse on the box should set/unset the checkbox.
ü       Spacebar should also do the same

vi.            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.
vii.           Drop down list 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.
viii.          Combo Box
ü       Similar to the list mentioned above, but user should be able to enter text in it.
ix.            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 behaviour.
ü       Make sure that all the data can be seen using scroll bar.

Monday, January 24, 2011

Web Application Testing-3

Validate your HTML/CSS:

 

If you are optimizing your site for Search engines then HTML/CSS validation is very important. Mainly validate the site for HTML syntax errors. Check if site is crawl able to different search engines.

 

Database testing:

 

Data consistency is very important in web application. Check for data integrity and errors while you edit, delete, modify the forms or do any DB related functionality. Check if all the database queries are executing correctly, data is retrieved correctly and also updated correctly. More on database testing could be load on DB, we will address this in web load or performance testing below.

 

Usability Testing:

 

Test for navigation:


Navigation means how the user surfs the web pages, different controls like buttons, boxes or how user using the links on the pages to surf different pages.
Usability testing includes:
Web site should be easy to use. Instructions should be provided clearly. Check if the provided instructions are correct means whether they satisfy purpose. Main menu should be provided on each page. It should be consistent.

 

Content checking:

 

Content should be logical and easy to understand. Check for spelling errors. Use of dark colors annoys users and should not be used in site theme. You can follow some standards that are used for web page and content building. These are common accepted standards like as I mentioned above about annoying colors, fonts, frames etc.
Content should be meaningful. All the anchor text links should be working properly. Images should be placed properly with proper sizes.
These are some basic standards that should be followed in web development. Your task is to validate all for UI testing

 

Other user information for user help:

 

Like search option, sitemap, help files etc. Sitemap should be present with all the links in web sites with proper tree view of navigation. Check for all links on the sitemap.
“Search in the site” option will help users to find content pages they are looking for easily and quickly. These are all optional items and if present should be validated.

Interface Testing:

 

The main interfaces are:
Web server and application server interface
Application server and Database server interface.
Check if all the interactions between these servers are executed properly. Errors are handled properly. If database or web server returns any error message for any query by application server then application server should catch and display these error messages appropriately to users. Check what happens if user interrupts any transaction in-between? Check what happens if connection to web server is reset in between?

 

Compatibility Testing:

 

Compatibility of your web site is very important testing aspect. See which compatibility test to be executed:
§         Browser compatibility
§         Operating system compatibility
§         Mobile browsing
Printing options


Browser compatibility:

 

In my web-testing career I have experienced this as most influencing part on web site testing.
Some applications are very dependent on browsers. Different browsers have different configurations and settings that your web page should be compatible with. Your web site coding should be cross browser platform compatible. If you are using java scripts or
AJAX calls for UI functionality, performing security checks or validations then give more stress on browser compatibility testing of your web application.
Test web application on different browsers like Internet explorer, Firefox, Netscape navigator, AOL, Safari, Opera browsers with different versions.

 

OS compatibility:

 

Some functionality in your web application is may not be compatible with all operating systems. All new technologies used in web development like graphics designs, interface calls like different API’s may not be available in all Operating Systems.
Test your web application on different operating systems like Windows, Unix, MAC, Linux, Solaris with different OS flavors.

 

Mobile browsing:

 

This is new technology age. So in future Mobile browsing will rock. Test your web pages on mobile browsers. Compatibility issues may be there on mobile.


Printing options:

 

If you are giving page-printing options then make sure fonts, page alignment, page graphics getting printed properly. Pages should be fit to paper size or as per the size mentioned in printing option.

 

Performance testing:

 

Web application should sustain to heavy load. Web performance testing should include:
Web Load Testing
Web Stress Testing
Test application performance on different internet connection speed.
In web load testing test if many users are accessing or requesting the same page. Can system sustain in peak load times? Site should handle many simultaneous user requests, large input data from users, Simultaneous connection to DB, heavy load on specific pages etc.

Stress testing:

Generally stress means stretching the system beyond its specification limits. Web stress testing is performed to break the site by giving stress and checked how system reacts to stress and how system recovers from crashes. Stress is generally given on input fields, login and sign up areas.
In web performance testing web site functionality on different operating systems, different hardware platforms is checked for software, hardware memory leakage errors,

Security Testing:

Following are some tests for web security testing:
  • Test by pasting internal URL directly into browser address bar without login. Internal pages should not open.
  • If you are logged in using username and password and browsing internal pages then try changing URL options directly. I.e. If you are checking some publisher site statistics with publisher site ID= 123. Try directly changing the URL site ID parameter to different site ID which is not related to log in user. Access should deny for this user to view others stats.
  • Try some invalid inputs in input fields like login username, password and input text boxes. Check the system reaction on all invalid inputs.
  • Web directories or files should not be accessible directly unless given download option.
  • Test the CAPTCHA for automates scripts logins.
  • Test if SSL is used for security measures. If used proper message should get displayed when user switch from non-secure http:// pages to secure https:// pages and vice versa.
  • All transactions, error messages, security breach attempts should get logged in log files somewhere on web server.
               
Web Testing is an essential topic now a days
 

Web Application Testing-2

  – for Server side Validations
         
§          HTML (Hyper Text Markup Language) – for displaying web pages
§          XML (Extensible Markup Language) –for Transporting the Data
§         Java Script – for Client Side Validations
§         VB Script
§           IIS, Apache, Tomcat, Pramathi – as Web servers
§           JBoss, WebLogic, WebSpeare, COM+ - as Application Servers
§          Java, C#.NET, VB.NET, VC++.NET for Components development
§          SQL Server, Oracle, MySQL  as Database Servers
§         HTTP, SOAP – as Protocols



Functionality Testing:


Test for - all the links in web pages, database connection, forms used in the web pages for submitting or getting information from user, Cookie testing.

Check all the links:

 

§         Test the outgoing links from all the pages from specific domain under test.
§         Test all internal links.
§         Test links jumping on the same pages.
§         Test links used to send the email to admin or other users from web pages.
§         Test to check if there are any orphan pages.
§         Lastly in link checking, check for broken links in all above-mentioned links.

 

Test forms in all pages:

 

Forms are the integral part of any web site. Forms are used to get information from users and to keep interaction with them. So what should be checked on these forms?
§         First check all the validations on each field.
§         Check for the default values of fields.
§         Wrong inputs to the fields in the forms.
§         Options to create forms if any, form delete, view or modify the forms.

 

Cookies testing:

 

Cookies are small files stored on user machine. These are basically used to maintain the session mainly login sessions. Test the application by enabling or disabling the cookies in your browser options. Test if the cookies are encrypted before writing to user machine. If you are testing the session cookies (i.e. cookies expire after the sessions ends) check for login sessions and user stats after session end. Check effect on application security by deleting the cookies

Web Application Testing-1

Web Applications Testing

I) Overview:


Now a days Web Applications are getting more popular in the IT Industry, having so many advantages like supporting more clients, no client side installation and accessing from any ware etc…

 

Types of Web Application

 We can categorize web applications in two ways

 

a)    Business Classification

 

1)     Web Sites (They provide information about Organizations or Industries or persons)

2)    Web Portals (They are Business gateways, ex: Online Shopping sites, Job portals etc.)

3)     Web Applications (They are Service providers (both Free and Paid), apart from information) Ex: Net Banking Applications, Insurance Applications etc…)

 

b)    Technical Classification

1)     Intranet Applications (They are private applications, uses local area network (LAN))

2)     Internet Applications (They are Public applications, uses Wide area network (WAN)

3)     Extranet Applications (They also Private applications over Internet (WAN))

 

Browser:


It is a Software Application, which retrieves, and Presents information in text, image and voice like different file formats.

The browser is the viewer of a Web Site and there are so many different browsers and browser options that a well-done Web Site is probably designed to look good on as many browsers as possible.

Popular Browsers:
  • Internet Explorer
  • Mozilla Firefox
  • Google Chrome
  • Safari
  • Opera
  • Etc…

Loading...