I wanna set the current directory to the path of QC, and QTP reports error, and the I already connect to QC;
The code as following:
Set wScript = CreateObject("WScript.Shell")
wScript.CurrentDirectory ="[QualityCenter] Subject\FAIT Demo\ Fuction Library"
Any one who can help me, thanks.
Hard work, and learn more
WScript is a Windows scripting feature. It has nothing to do with HP QTP and QC. It was built when these 2 didn't even existed. So why would you expect WScript which is VBScript for windows to work on QTP's concepts?
What exactly are you trying to achieve here?
Buy the NEW QTP Descriptive Programming Unplugged Book
** Download QTP Unplugged 2nd Edition eBook for FREE **
TDConnection is required to connect to QC before u add any path for QC.
read TDConnection Object in QTP Help.