1 / 64

WEB-B ASE A PPLICATION T ESTING

WEB-B ASE A PPLICATION T ESTING. 20/04/2012. Teacher: Lâm Quang Vũ Trần Duy Hoàng. Group : D Team Leader: H oàng Quốc Minh Trung. Small Group Leader : D1:Phạm Bá Thuần 0812504 D2:Liễu Quang Tín 0812520 D3: D4: Hoàng Quốc Minh Trung 0912493

nixie
Télécharger la présentation

WEB-B ASE A PPLICATION T ESTING

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. WEB-BASE APPLICATION TESTING 20/04/2012 Seminar Software Testing – Group D

  2. Teacher: Lâm Quang Vũ Trần Duy Hoàng Group:D Team Leader: Hoàng Quốc Minh Trung Small Group Leader: D1:Phạm Bá Thuần 0812504 D2:Liễu Quang Tín 0812520 D3: D4:HoàngQuốc Minh Trung 0912493 D5:Phạm Danh 0912051 Seminar Software Testing – Group D

  3. Content Overview Web Application Testing Q&A Seminar Software Testing – Group D

  4. Overview What is web testing? • Web testing is the name given to software testing that focuses on web applications Seminar Software Testing – Group D

  5. Overview Why ? • To solve address issues before the system is revealed to the public • To solve issues such as the security of the web application, the basic functionality of the site • To ready for large number of user and access with hight bandwidth Seminar Software Testing – Group D

  6. Overview Testing Challenges • Large varied user base • Business environment • Locales • Testing environments • Security • Browsers Compability • Firewall • Intranet and Internet based Applications • Network Speed Seminar Software Testing – Group D

  7. II. Web Application Testing Link checker Cookies-Javscript Testing Web Browser Load Test And Stress Test Web Service Testing Seminar Software Testing – Group D

  8. Link checker What is link checker ? A toolor online servicethat is used to testsand reports on the validity of the hypertext links on the pages in a Web site Seminar Software Testing – Group D

  9. Link checker Some link checkers tool: SortSite(30 day trial) Link Checker Pro(30 day trial) LinkTiger(15 day trial) W3C Link Checker(Free) Google Webmaster Tools(Free) LinkChecker by 2bone(Free) REL Link Checker Lite(Free) WebLight(Free) .... Seminar Software Testing – Group D

  10. Link States Error 404: Not Found Seminar Software Testing – Group D

  11. Link States Error 500: Internal Server Error Seminar Software Testing – Group D

  12. Link States Error 403: Forbidden Seminar Software Testing – Group D

  13. Link States Error 503 Service Unavailable Seminar Software Testing – Group D

  14. Link States Error 503 Service Unavailable Seminar Software Testing – Group D

  15. Link States Error 408 Request Timeout: "An error has occurred in the script on this page. Line Char: Error: Code: Location: Do you want to continue running scripts on this page?" Seminar Software Testing – Group D

  16. Link checker Sortsite Seminar Software Testing – Group D

  17. Cookies-Javscript Testing Cookies Testing Session Timeout Testing JavaScript Testing Seminar Software Testing – Group D

  18. Cookies Testing What is cookie ? • Cookies is small information stored in text file on user’s hard drive by web server. • This information is later used by web browser to retrieve information from that machine Seminar Software Testing – Group D

  19. Cookies Testing Why we have to test cookie ? • To make sure that the cookies do not store confidential information. • To check the number of cookies used • Make sure that the application maintains its efficiency when switched off or Accept cookies Seminar Software Testing – Group D

  20. Cookies Testing Why we have to test cookie ? • To check application response to the damaged cookies. • Make sure that cookies are stored and removed it to the pages on which it is expected and necessary. • Testing that cookies are working correctly in all browsers that will be used by application. Seminar Software Testing – Group D

  21. Cookies Testing How to test cookie ? • Disabling Cookies. • Selective Rejecting Cookies. • Corrupting Cookies. • Cookies Encryption Seminar Software Testing – Group D

  22. Cookies Testing Disabling Cookies ? • This is probably the easiest area of cookie testing. • Disable all cookies and attempt to use the site’s major features and functions. • With cookies disabled,our testing job is somewhat reduced. Seminar Software Testing – Group D

  23. Cookies Testing Selective Rejecting Cookies ? • Start by deleting all cookies from our PC. • Analyze site cookieusage in advance and draw up a test plan. • Detailingwhat cookies to reject/accept for each function. Seminar Software Testing – Group D

  24. Cookies Testing Corrupting Cookies ? • Altering the data in the persistent cookies. • Allow the cookie to be modified. • Selectively deleting cookies. Seminar Software Testing – Group D

  25. Cookies Testing Cookies Encryption? • By using encryption of the cookie data. • Sensitive information like usernames and passwords should been encrypted before it is sent to our computer. • A case can certainly be made that certain types of sensitive data. Seminar Software Testing – Group D

  26. Cookies Testing Test cases for cookie testing? • Check if the application is writing cookies properly or not. • Test to make sure that no personal or sensitive data is stored in the cookie. If it is there in cookies, it should be in encrypted format. • If the application under test is a public website, there should notbe overuse of cookies. Seminar Software Testing – Group D

  27. Cookies Testing Test cases for cookie testing? • Close all browsers, deleteall previously written cookies and disable the cookies from our browser settings. • Set browser options to prompt whenever cookie is being stored/saved in your system. • Close all browsers windows and manually delete all cookies. Seminar Software Testing – Group D

  28. B. Session Timeout Testing What is Session timeout ? • The time-out period assigned to the Session object for the application. • If the user does not refresh or request a page within the time-out period, the session ends. Seminar Software Testing – Group D

  29. B. Session Timeout Testing How to test the Session timeout ? • 1 -Login into specific web application. • 2 - Sleep that script for timing of one User session • 3 -Then perform some action on the page • 4 -Observe the response of that action. • 5 -Application should show alert. If it is not then probably session is not ending properly Seminar Software Testing – Group D

  30. C. JavaScript Testing What is JavaScript ? • JavaScript is an interpreted language. • Asimple programminglanguage. • Client side programming language. • Directly embedded into HTML page Seminar Software Testing – Group D

  31. C. JavaScript Testing Turn off JavaScript ? • Web page doesn’t operate or work abnormally. • Tested websites : Gmail, YouTube, VnExpress, Facebook, MediaFire Seminar Software Testing – Group D

  32. C. JavaScript Testing Gmail • Turn off before loading. • StandardHTML: Seminar Software Testing – Group D

  33. C. JavaScript Testing YOUTUBE • Turn off before loading. Seminar Software Testing – Group D

  34. C. JavaScript Testing Other Websites • VnExpress: unable to load dynamic images. • Facebook : unable to use like and comment functions • MediaFire : • Loading before turning off : • Turning off before loading : unable to load Seminar Software Testing – Group D

  35. Web Browser Browser Compatibility How To Check The Compatibility ToolBrowershots Seminar Software Testing – Group D

  36. Browser Compatibility What? Browser compatibility is the ability of the Web browser to properly interpret the hypertextmarkup language (HTML) that renders Web pages Seminar Software Testing – Group D

  37. Browser Compatibility What we need to test ? Site displays correctly? On different browsers have the same layout, same design? Time to load ? Site layout is reasonable, content updates clearly? Seminar Software Testing – Group D

  38. Browser Compatibility What we need to test ? Screen size Information provided at this site, including note boards, clear error messages? Font-style, font size ? Popup, Ads? Be uncomfortable for the viewer? Seminar Software Testing – Group D

  39. Browser Compatibility Why? The site must be displayed in common browsers like IE, Firefox, Chrome, Opera, Safari ... Each of brower is different structure, design Your browser may not support the technologies that your website is using. The site can display well in browser but not good in other browsers Site has good displays on the new browser version? Seminar Software Testing – Group D

  40. How To Check The Compatibility Compatible with the OS Different windows version has different architecture (XP & Windows 7) The upgrade window Check on mac, linux Seminar Software Testing – Group D

  41. How To Check The Compatibility Compatible with the OS Seminar Software Testing – Group D

  42. How To Check The Compatibility Compatible with the OS Seminar Software Testing – Group D

  43. How To Check The Compatibility • Mobile browsing Check the web page displayed on the screen of mobile devices Seminar Software Testing – Group D

  44. How To Check The Compatibility Printing options Develop web site with appropriate length so that users can print Standard printer Provides links to printable materials if the site has the resources users will want to print Seminar Software Testing – Group D

  45. How To Check The Compatibility • Compatibility between browsers Step 1: Download and install some common browsers like Internet Explorer, Mozilla Firefox, Opera and Safari. Step 2: Check on http://browsershots.org/ to capture images on your site operating systems and different browsers. Step 3: Try checking the google error page with the keywords "internet explorer firefox difference", or "web page can not be displayed in Firefox" etc ... Seminar Software Testing – Group D

  46. How To Check The Compatibility • Compatibility between browsers Try on the online validator test as http://wave.webaim.org/ and http://www.totalvalidator.com/ to analyze the content Seminar Software Testing – Group D

  47. ToolBrowershots • What? Browershots is one of the popular methods in the test site. Is a free tool to check browser compatibility including several versions of the browsers and even of the more obscure browsers, can test on many different operating systems. Link to website: http://browsershots.org/ Seminar Software Testing – Group D

  48. ToolBrowershots • What? Browershots will take picturesof the site displayed on different browsers. Based on the photos, users can check the difference in screen size, color and display web pages with javascript and flash. Seminar Software Testing – Group D

  49. ToolBrowershots • How? Access http://browsershots.org/ Seminar Software Testing – Group D

  50. ToolBrowershots • How? Enter the URL into the textbox and press submit Seminar Software Testing – Group D

More Related