Print Page | Close Window

Test Case Definition

Printed From: One Stop Testing
Category: Software Testing @ OneStopTesting
Forum Name: Test Cases @ OneStopTesting
Forum Discription: You must be well versed in writting Good Test Cases as they only will decide whether you can catch most of bugs or not.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=3396
Printed Date: 01Jan2025 at 5:41am


Topic: Test Case Definition
Posted By: tanushree
Subject: Test Case Definition
Date Posted: 29Oct2007 at 4:02am

Test Case Definition

 

To define the test case follow the below given steps:

  1. Select the Suite LoginAPPJ2SESuite from the Suites Tree.

  2. Choose the menu item New Test Case under the menu File. This opens the Performance Test Case Creation screen.

  3. Enter "PERF-SampleAPI-001" in the Case ID field.

  4. Enter "Sample API testing case" in the Description field.

  5. Select the Severity as "ShowStopper" from the combo box.

  6. Enter the Description for test run as "Sample API Run".

  7. Enter the Maximum Time Limit as "1800".

  8. Ignore Application Control Parameters.

  9. Click Test Conditions button and choose the tab Check Condition.

    1. Select the option Collect Data after fixed time delay (WAIT)Wait Time as 20 and select the Agent Name as "M1" and specify the

    2. Click Commit To List and click OK.

  10. Click Next.

  11. In the Data Collection screen, choose the API Performance Data Collector [API] option.

  12. Click the Load API option to load the API com.adventnet.testtools.common.util.FileUtil.

  13. Set the required classpath and click OK.

  14. Select the Instance Type as "Static".

  15. Configure the method arguments as follows:

    1. Select the method countOccurenceInFile(String, String)Configure Arguments button. Specify the first string argument as "README.html" and the second string argument as "QEngine". Click OK. from the method list and click

    2. Select the method doesFileExists(String) from the method list and click Configure Arguments button. Specify the string argument as "README.html" and click OK.

    3. Select the method getLinesInFile(String) from the method list and click Configure Arguments button. Specify the string argument as "README.html" and click OK.

    4. Select the method getTimeStamp() from the method list.

    5. Select the method isStringInFile(String, String) from the method list and click Configure Arguments button. Specify the first string argument as "README.html" and the second string argument as "QEngine". Click OK.

  16. Select the Agent Name as "M1".

  17. Enter Number of Users as "1".

  18. Enter Number of Samples as "2".

  19. Enter Sample Interval as "10" seconds.

  20. Click Commit To List and click OK.

  21. Click Finish button. The automated test case PERF-SampleAPI-001 is added onto the Suites Tree.




Print Page | Close Window