I read over many of the past posts on this topic and in particular Tarun's reply 9months ago: Tarun's reply
Although it appeared to work for one person, I cannot create the object (error: module not found) even though it is in HKCR.
Has anyone had any success with encoding the passwords in a VBScript library prior to passing to the QTP Test? This is necessary due to the fact that the pwd needs to be passed from another (Linux) server but we can't risk a text password appearing in the results (test input parameter).
The parameters, including password, are passed to a windows server from a deployment server running on a linux server. A vbscript on the windows server kicks off the selected tests using the passed parameters. Since the Linux server doesn't have access to the QTP password decoder util, it needs to be done prior to being passed as input to the test (otherwise it will appear on the results.
I hope this explains it. I was wondering if the Encoder.dll in the bin directory needs to be registered before using it outside QTP. It appears in the registry but I cannot CreateObject("Mercury.Encrypt"). Yuva, is your code used as a library (meaning it runs in the QTP context)?
I had similar issue and the only solution that i found out was to run QTP for some time do record, replay, close QTP...open again etc... and Suddenly it will start working in VBScript as well. Not sure when and how that happens but it does work from that point onwards. But a restart will again cause the issue.