Print Page | Close Window

TestCaseEnter, TestCaseExit

Printed From: One Stop Testing
Category: Testing Tools @ OneStopTesting
Forum Name: SilkTest @ OneStopTesting
Forum Discription: SilkTest is an automation tool for testing the functionality of enterprise applications in most versions of Windows, Sun Solaris 9 & 10, and Red Hat Enterprise Linux WS 2.1 & 3.0.
URL: http://forum.onestoptesting.com/forum_posts.asp?TID=2797
Printed Date: 01Jul2024 at 12:50am


Topic: TestCaseEnter, TestCaseExit
Posted By: tanushree
Subject: TestCaseEnter, TestCaseExit
Date Posted: 12Oct2007 at 5:59am
I've written an appstate as follows:
[-] appstate WinZipState ()
[-] if (GetTestCaseState()==TCS_ENTERING)
[-] if !(WinZip.Exists ())
[ ] WinZip.Start("C:\Program Files\WinZip\WINZIP32.exe")
[-] if (GetTestCaseState()==TCS_EXITING)
[ ] // AboutWinZip.Close ()
[-] if WinZip.Exists ()
[ ] WinZip.File.Exit.Pick()

Real simple. If WinZip is not already running, run it. When the test case has completed, exit. What happens is all of this code gets executed in sequence and the code in the testcase with the appstate of 'WinZipState' never gets executed.



Print Page | Close Window