Forum Discussion
AlexKaras
13 years agoChampion Level 3
Hi Pawel,
Not sure if I got you right, but:
Only one task can be assigned to the virtual user at a time. If you need to execute several tasks during some time period, you may consider something like that:
while timespan < ExecutionPeriod
{
VU.Task = <TaskObject1>
VU.Task = <TaskObject2>
...
}
Note, that in this case (as opposed to Complex Task) TestComplete will not keep cookies between tasks - i.e. if task1 sets cookie that is then used by task2, then you must keep the cookie somewhere and modify task2's requests in the OnBeforeRequest event handler.
Not sure if I got you right, but:
Only one task can be assigned to the virtual user at a time. If you need to execute several tasks during some time period, you may consider something like that:
while timespan < ExecutionPeriod
{
VU.Task = <TaskObject1>
VU.Task = <TaskObject2>
...
}
Note, that in this case (as opposed to Complex Task) TestComplete will not keep cookies between tasks - i.e. if task1 sets cookie that is then used by task2, then you must keep the cookie somewhere and modify task2's requests in the OnBeforeRequest event handler.
Related Content
Recent Discussions
- 2 hours agotramuntana
- 2 days agoSlickRick