Web and Load Tests with VS2010<br />Yuliya Solovyova<br />http://mswebtest.blogspot.com/<br />
Agenda<br />2<br />Why do testing with VSTS<br />Web tests<br />Load Test<br />Helping Tools<br />Books<br />
Why do testing with VSTS<br /><ul><li>Visual Studio allows:
Manual Tests
Web Tests
Load Tests
TFS Work Item Tracking
TFS Reporting
Source code control integration</li></li></ul><li>Web test<br />
Typical load testing configuration<br />Just using Visual Studio Ultimate enables you to generate 250 virtual users of loa...
Web test in VSTS<br /><ul><li>Capture and playback http-level  interactions
Records AJAX, Popup windows
Composition & Decomposition
Auto-validate response URL
Integrated with Team Build
Hidden running mode
Multi Browsers support
Data Driven Tests</li></li></ul><li>Web test features<br /><ul><li>Web test Properties:
Cache Control
Upcoming SlideShare
Loading in...5
×

Web and Load Tests with VS2010

7,268

Published on

Как нужно работать с веб и нагрузочными тестами в Visual Studio 2010. Данная презентация показывает детали работы с данным инструментом автоматизации.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
7,268
On Slideshare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Web and Load Tests with VS2010

  1. 1. Web and Load Tests with VS2010<br />Yuliya Solovyova<br />http://mswebtest.blogspot.com/<br />
  2. 2. Agenda<br />2<br />Why do testing with VSTS<br />Web tests<br />Load Test<br />Helping Tools<br />Books<br />
  3. 3. Why do testing with VSTS<br /><ul><li>Visual Studio allows:
  4. 4. Manual Tests
  5. 5. Web Tests
  6. 6. Load Tests
  7. 7. TFS Work Item Tracking
  8. 8. TFS Reporting
  9. 9. Source code control integration</li></li></ul><li>Web test<br />
  10. 10. Typical load testing configuration<br />Just using Visual Studio Ultimate enables you to generate 250 virtual users of load. To go higher than 250 users, you need to purchase a Virtual User Pack, which gives you 1000 users. You can use the 1000 users on any number of agents. *<br />*http://blogs.msdn.com/b/edglas/archive/2010/02/07/vs-2010-sku-lineup-and-pricing-finalized.aspx<br />
  11. 11. Web test in VSTS<br /><ul><li>Capture and playback http-level interactions
  12. 12. Records AJAX, Popup windows
  13. 13. Composition & Decomposition
  14. 14. Auto-validate response URL
  15. 15. Integrated with Team Build
  16. 16. Hidden running mode
  17. 17. Multi Browsers support
  18. 18. Data Driven Tests</li></li></ul><li>Web test features<br /><ul><li>Web test Properties:
  19. 19. Cache Control
  20. 20. Parse Dependent Request
  21. 21. Response Time Goal
  22. 22. Think Time
  23. 23. Expected URL
  24. 24. Url
  25. 25. Timeout</li></li></ul><li>Web test features<br /><ul><li>Validation Rules
  26. 26. Find Text
  27. 27. Form Field
  28. 28. Maximum Request Time
  29. 29. Required Tag
  30. 30. Required Attribute Name
  31. 31. Hidden Fields
  32. 32. Extraction Rules
  33. 33. Selected Option
  34. 34. Tag Inner Text
  35. 35. Extract Attribute Value
  36. 36. Extract From Field
  37. 37. Extract Text
  38. 38. Extract Hidden Fields</li></li></ul><li>Test Log<br /><ul><li>The Result Log is a file stored in the same directory as the web test is recorded into (*.webtestresult)</li></li></ul><li>Handle errors<br /><ul><li>Incorrect User credentials</li></li></ul><li>Run tests<br /><ul><li>TestList Editor
  39. 39. Manually from test
  40. 40. Create Batch File
  41. 41. For single test </li></ul>mstest/TestContainer:WebTest1.webtest<br /><ul><li>For Multiple WebTests</li></ul>mstest /TestContainer:WebTest1.webtest /TestContainer:WebTest2.webtest<br /> /RunConfig:NewRunConfig.testrunconfig/resultsfile:c:resultsMyResults.trx<br /><ul><li>For TestList</li></ul>mstest" /testmetadata:"C:QAVSTSCurrent.vsmdi" /testlist:Regression<br /> /resultsfile:c:resultsMyResults.trx<br />
  42. 42. Load tests in VSTS<br /><ul><li>Simulate multiple user running
  43. 43. Collect data from Target Server</li></ul>and any other servers<br /><ul><li>Useful for testing stress/load on:
  44. 44. Database
  45. 45. Custom Business Logic
  46. 46. Web Sites
  47. 47. Web Services
  48. 48. What can be measured:
  49. 49. Time To First Byte (TTFB)
  50. 50. Time To Last Byte (TTLB)
  51. 51. Active Sessions, Active Users
  52. 52. Pages per Second
  53. 53. Transactions per Second
  54. 54. Memory (% Committed Bytes)
  55. 55. Processor (% Consumption)
  56. 56. ASP.NET (Session Count, Requests/Sec)</li></li></ul><li>Load tests in VSTS<br /><ul><li>What can be managed:
  57. 57. User load
  58. 58. Network Mixed
  59. 59. Browser Mixed
  60. 60. Test Mix
  61. 61. Load Test Plug-In:
  62. 62. LoadTestStarting
  63. 63. LoadTestFinished
  64. 64. LoadTestWarmupComplete
  65. 65. TestStarting
  66. 66. TestFinished
  67. 67. ThresholdExceeded
  68. 68. HeartBeat
  69. 69. LoadTestAborted</li></li></ul><li>Load test results<br /><ul><li>Virtual User Activity Chart
  70. 70. Key Indicators Chart</li></li></ul><li>Load test results<br /><ul><li>Export to Excel reports</li></li></ul><li>Helping Tools<br />
  71. 71. Helping Tools<br />
  72. 72. Books<br />
  73. 73. 19<br />Узнай больше на <br />

×