Forum Discussion

shubhangi's avatar
shubhangi
Contributor
14 years ago

How to log off and log on a user

Hi,



I want a windows user to log off and then login.

I dont want to use task.ActionAfterRun, as I want log ff/On in side a task.



Does anyone has an idea about this?



Any help would be appreciated.



Thanks

Shubhangi


  • Hi Shubhangi,


    You cannot log off/on a computer within a task as this functionality is not compatible with TestComplete's Network Suite.


    What do you not want to use the Action after run option for? You can devide your test into two tasks and set the Action after run option to Reboot computer for the first task. Thus, TestComplete will run the first part of your test (Task1), then will reboot the slave computer and continue running the second test part (Task2).