- 浏览: 34502 次
- 性别:
- 来自: 北京
最近访客 更多访客>>
最新评论
-
clarkht:
不错
html/css学习笔记(二) -
joec3:
Opportunities to those who are ...
Before 6 month assignment in OZ -
michelleyang:
是不 wushao 你替我谢谢组织! 是啊 就因为是在西安有 ...
悉尼行-生活retro -
shaobo_wu:
我代表组织慰问你~ 组织正着手派遣一位帅哥去探望你。要鼓起勇气 ...
悉尼行-生活retro -
michelleyang:
其实 一个人摸索 感觉很不好 但是每次想请教别人 可是不知道从 ...
悉尼行-工作retro
(转)Web Testing: Complete guide on testing web applications
- 博客分类:
- TWer生活
转自http://www.softwaretestinghelp.com/
目前一直专注于 web application的测试,发现如下总结很给力。。。
--------
In my previous post I have outlined points to be considered while testing web applications. Here we will see some more details on web application testing with web testing test cases. Let me tell you one thing that I always like to share practical knowledge, which can be useful to users in their career life. This is a quite long article so sit back and get relaxed to get most out of it.
Let’s have first web testing checklist.
1) Functionality Testing
2) Usability testing
3) Interface testing
4) Compatibility testing
5) Performance testing
6) Security testing
1) 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.
Let’s take example of the search engine project currently I am working on, In this project we have advertiser and affiliate signup steps. Each sign up step is different but dependent on other steps. So sign up flow should get executed correctly. There are different field validations like email Ids, User financial info validations. All these validations should get checked in manual or automated web testing.
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. (I will soon write separate article on cookie testing)
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 crawlable 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.
2) 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.
3) 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?
4) 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.
5) 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,
6) Security Testing:
Following are some test cases 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 logged in user. Access should denied for this user to view others stats.
* Try some invalid inputs in input fields like login username, password, 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.
I think I have addressed all major web testing methods. I have worked for around 2 years out of my testing career on web testing. There are some experts who have spent their whole career life on web testing. If I missed out addressing some important web testing aspect then let me know in comments below. I will keep on updating the article for latest testing information.
If you like this article you would also like to subscribe to our software testing email newsletter for software testing latest updates.
-----
发表评论
-
Mobile App 手动测试好文推荐
2013-02-18 16:29 15942012年在成都参与了一个公益项目:立人乡村图书馆捐书系统 ... -
广而告之 ThoughtWorks (转自TWer)
2011-06-01 14:47 2577ThoughtWorks Open Day ... -
Some thought about my job during recent months
2011-04-01 12:39 2385Here is my 4th month in OZ, ... -
读书笔记2--克服拖延的一些tips
2011-02-23 19:58 1122不同的人,拖 ... -
悉尼行-生活retro
2011-02-17 17:33 1615一鼓作气,继续补上,其实本该早总结的。。 well ... -
悉尼行-工作retro
2011-02-16 15:09 1346来到悉尼2个月了,貌似 ... -
读书笔记1 The begining---《拖延心理学》
2011-02-15 14:57 1277《拖延心理学》是2个月前Tuo同学推荐的,一直拖延着,现在开始 ... -
[转] A Guide to Writing Well(Joseph Epstein)
2011-02-09 12:35 1322写在前面: 一直受益于很多人的博客,自己也很想好好写博客 ... -
Before 6 month assignment in OZ
2010-12-02 18:01 1007On 12th,Dec, I will leave Xi'an ... -
观博有感
2010-11-09 22:25 807twu归来,入职,billable ... -
2010.9.19 写在最后一周开始之前
2010-09-20 00:24 0TWU 马上就要结束了,只剩下一周了,此时的我坐在空空的办公室 ... -
TWU 初来咋到(感悟)
2010-08-24 02:04 935技术篇一气呵成,虽说 ... -
TWU一周总结
2010-08-23 01:02 798之前很郁闷的事情是我忘记了博客的用户名和密码,所以一直没有更新 ... -
小谈入职前培训
2010-01-25 19:04 1049听说公司很是鼓励大家写博客,我有点欢喜有点悲,喜的是,我从前辈 ... -
写在未开始时
2010-01-11 20:14 7572009.12.7 我和TW签协议的日子,圆满结束了将近2个月 ...
相关推荐
The book "Flask Web Development" by Miguel Grinberg is a comprehensive guide aimed at teaching developers how to create robust web applications using Flask, a lightweight and flexible Python web ...
1. Writing Your First Angular Web Application 2. TypeScript 3. HowAngularWorks 4. Built-in Directives 5. Forms in Angular 6. Dependency Injection 7. HTTP 8. Routing 9. Data Architecture in Angular 4 ...
Chapter 8: Testing Web Application Frontends using Twill applies the knowledge gained from previous chapters to web applications, and introduces the Twill tool. Chapter 9: Integration Testing and ...
ng-book: The Complete Guide to Angular By 作者: Nathan Murray – Felipe Coury – Ari Lerner – Carlos Taborda ISBN-10 书号: 1985170280 ISBN-13 书号: 9781985170285 Edition 版本: 5 出版日期: 2018-02-06...
Chapter 8: Testing Web Application Frontends using Twill applies the knowledge gained from previous chapters to web applications, and introduces the Twill tool. Chapter 9: Integration Testing and ...
TestComplete is an automated testing tool, designed for advanced and novice testers alike, to create, manage and run tests for any desktop, Web or rich client software. It does not depend on any ...
Elm Web Development: An introductory guide to building functional web apps using Elm Paperback – April 10, 2018 by Ajdin Imsirovic (Author) 4.0 out of 5 stars 1 rating Explore why ELM is a great ...
Spring MVC is a model-view-controller framework for Java web applications to simplify the writing and testing of Java web applications, which fully integrates with the Spring dependency injection ...
A step-by-step guide to building web applications with Python and Django 2.1. Create, test, and deploy 5 progressively more complex websites including a Message Board app, a Blog app with user ...
tune your APIs using the best tools and techniques available This practical guide will help you to implement complete REST-based APIs from scratch Who This Book Is For This book is for web developers ...
as well as the final ebook version., Take your existing JavaScript skills to the next level and learn how to build complete web scale or enterprise applications that are easy to extend and maintain....
those who want to make a career building web applications using Microsoft technology, and those who are working on other web frameworks and want to learn ASP.NET Core. What You Will Learn Get to ...
This guide takes a step-by-step approach to developing, testing, debugging, and troubleshooting JEE applications, complete with examples and tips. Table of Contents Chapter 1. Introducing JEE and ...
1. **Building Web Applications**: Develop three complete web applications using Flask, covering a range of functionalities and integrating various technologies. - **Headlines Application**: A dynamic...
Professional Sitecore 8 Development: A Complete Guide to Solutions and Best Practices By 作者: Phil Wicklund – Jason Wilkerson ISBN-10 书号: 1484222911 ISBN-13 书号: 9781484222911 Edition 版本: 1st ...
This valuable guide provides direct, hands-on solutions that take the mystery out of Ajax's many capabilities. Each hack represents a clever way to accomplish a specific task, saving you countless ...