How to use Host["Password'} in RunAs Method?
Hi,
I'm encountering a strange behaviour of a dialog window in WIN 8: I'm running a distributed test on remote host (WIN8).
The test starts an application that brings up a dialog window, then another dialog windows starts from within the first one and it should be on top, but it opens behind the first window and no matter what I do I can't bring it to the top.
The only workaround that I've found so far is to start the application using RunAs with the credentials of the remote machine (previously I was using Run method). The credentials (Domain, Username and Password) are specified in Hosts properties , so I want to use them as RunAs parameters so I'm doing the following
var Host = NetworkSuite["Jobs"]["ItemByName"]("JobName")["Tasks"]["ItemByName"]("TaskName")["Host"];
var Domain = Host["Domain"];
var Username = Host["Username"];
var Password = Host["Password"];
Then I want to start the application
TestedApps["ApplicationName"]["RunAs"](Domain,Username,Password);
The problem is that Password contains ***** , which obviously is not a valid password.
Can somebody advise on how the password from Host properties can be used for the above mentioned purpose ?