Running Test Cases in Silk Test

Procedure To use the wizard :

  1. Involve the wizard by selecting File /New and clicking the Quick Start Wizard icon. Now you will name a new test plan, which will organize and manage your tests.

  2. Click Next.

  3. Name the file edit.pln and Next. The next step is to record the test frame, which defines all the windows, dialogs, menus, and so on that you want to test.

  4. To create a new test frame, leave New Test Frame selected and click Next. At this point, the wizard lists all the open (running and not minimized) applications. After you open the Text Editor, click on the Quick Start Wizard title bar to see Text Editor added to the list of applications.

  5. Select Text Editor and click next.

  6. The capture Windows panel displays, describing the procedure.

  7. Click Next.

  8. Now you simply open a document window an open all the dialogs hat you want to test in the Text Editor. When you place the mouse pointer on a window or dialog, the wizard records all the declarations .

  9. When you have finished capturing the windows and dialogs in Text Editor, click Return to Wizard in the Capturing New Windows dialog. Now that you have created you test frame, you are ready to create a test case.

  10. Click Next twice.

  11. Name the test Find Box and enter the description “Verify controls in Find dialog.” Click Next. You test is now being recorded, as indicated by the Record Status window on your screen.

  12. Now go to Text Editor, select Search / Find to open the Find dialog, place your mouse pointer over the dialog’s title bar, and press Ctrl + Alt to verify its state. The verify windows dialog displays. Click OK to verify all properties for the dialog. Close the Find dialog (to return to your base state), then click Done in the Record Status window. You return to the Wizard and are asked to confirm that the test is what you want.

  13. Click Next.

  14. Run the test by clicking the Run Test Button.

  15. The wizard reports the results. You an move the wizard to the side and look at the results file that is created whenever you run a test.

  16. In the wizard, click Next to save your testcase. The testcase is saved in a script (.t) file with the same name.

  17. Click Close to close the wizard. You see a window containing the results file from the test you just ran. In another window is the test plan.

No comments:

Post a Comment