Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin


 One Stop Testing ForumTesting Tools @ OneStopTestingSilkTest @ OneStopTesting

Message Icon Topic: TestCaseEnter, TestCaseExit

Post Reply Post New Topic
Author Message
tanushree
Senior Member
Senior Member
Avatar

Joined: 04Apr2007
Online Status: Offline
Posts: 2160
Quote tanushree Replybullet Topic: TestCaseEnter, TestCaseExit
    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.



Post Resume: Click here to Upload your Resume & Apply for Jobs

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 2.234 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Privacy Policy | Terms and Conditions
Job Interview Questions | Placement Papers | Free SMS | Freshers Jobs | MBA Forum | Learn SAP | Web Hosting