I have a quick question. I guess it's really a two part question.
A.) I have a test set up to run for two minutes right now. When that two minutes is up is the test stopped right there or does it allow the Main procedure to be run through and completed? It seems like it just stops the test right there.
B.) If the test is just stopped and the Main procedure is not allowed to be run through, is there a way I can programmatically cal a function afterwards? I have a very simple login/logout test right now and I would like for all of the users to be logged out upon completion of the test. I know in talking to some people who used WebLoad, it was possible in the RadView software. I couldn't find anything on it in the ACT help.
A. It stops it right then. If it's important to let it finish, you may want to put a timer function in the script that keeps track of the time as well, and then set your test time so that it gives them time enough to log out.
B. Not that I'm aware of. You CAN call on ACT projects from outside using VB, but you're not calling on specific functions...it just runs the whole thing as though you ran the test again.
If it's crucial to have it run for a specified amount of time, AND have it quit at a specified time, then what you might wish to do something like this:
Set variable Time = Timer (seconds past midnight)
While (Timer - Time less than Some time exceeding test duration)
If (Timer - Time less than test duration)
With something like that, you'll run that loop one time per user for the entire test duration...so your ACT graphs might look odd (depending on what you're looking at), but their behavior is to keep looping until the intended test duration is done...once it is, they stop running posts until you shut down the test, or the test duration property is met. You could always go a step further and set additional loops so that it would even exit the loop if you're in the middle and test duration is met...and have it run the logout post/s.
Essentially, there isn't built-in functions to do what you want (that I know of), so you have to program it in.