8/21/2023 0 Comments Canrhs timekeeper wsuFor example, you may visit 100 URLs and create 100 Records in a Measurement. Your test script will repeat creating Record s and putting them into the Measurement object as many times as you wants to. The Record objects should be stored in the Measurement object. You may also put some “size” information into the record (e.g, the size of downloaded file). While performing a test (e.g, visiting URLs), your test script will make a record, and write the “startAt” timestamp before an action, and the “endAt” timestamp after the action. A Measurement requires you to define a set of table column names, like “Case” ad “URL”. Your test script should create a Measurement object, which is a container of Record objects. Here is an outline of a test script which uses the Timekeeper to measure performance and print a report. Here comes the Timekeeper! Processing outline I want my tests to perform not only measuring performance but also compiling a concise report in Markdown format. But it is too tiresome to write manually a statistics report in Markdown table format. The 2nd problem is that it is difficult to find useful information out of the bulk of console messages. I introduced the Apache Commons StopWatch library into my test scripts to measure the duration and print the figure in console messages. The 1st problem is that it is bothersome recording the duration using a stopwatch device. Why? What happened? I need to list the slow URLs and look into them. In practice, most of URL respond within 10 seconds but a few of them sometimes respond slow (over 30 seconds). How large (bytes) is the generated image fileĪnd I want to examine many URLs 100 or more. How long tests take to take and save screenshot of a web page How long (seconds) tests take to navigate to a URL in browser I want to measure the performance of the tests. Often I develop Web UI tests in Groovy using Selenium. Timekeeper is a Java/Groovy library that helps tests to compile performance reports in Markdown.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |