Forum Discussion

sanjay0288's avatar
sanjay0288
Frequent Contributor
13 years ago

Way to logoff a user and login as another user and run testcomplete

Hi I just wanted to know is there a way to logoff an existing user(user with limited permissions) and login as administrator user  and perform some operations using testcomplete; again log off from administrator and login as user and verfiy those settings are reflected. I know about Reboot and continue method. But we dont want to use that method. Also Keys method does not process ctrl alt delete (these three keys used together) to log off. Can you please let me know what is the problem.

2 Replies


  • Hi,


     


    I'm sure, there is a way to log off the computer from script, but how will the system know what to do next (execute tests, run apps) after logging in? Using the RebootAndContinue method can handle this situation. Besides that, I recommend that you learn more about the RunAs mode for a tested application - this will allow you to run your app under different accounts. Read the "RunAs Mode" article for details.


     

  • sanjay0288's avatar
    sanjay0288
    Frequent Contributor
    Hi,

    Thanks for your reply. I used scripts to logoff and login as a different user and continue with test execution(Using the COM model of test complete) the only problem i faced using the scripts was wanted to write customized logs for the executed steps.



    However the Reboot and Continue method just worked perfect for my scenario.



    Thanks for the info