标题: 当前路径的问题 [打印本页] 作者: aries1979 时间: 2006-3-15 16:32 标题: 当前路径的问题 两个 script.
In ScriptA, the root action Action1 calls ActionA, which is a nested reusable action.
In ScriptB, the root action Action2 calls Action1.
In ActionA,我向文件 "..\TestResult.txt"中写数据, 文件的路径如下: (TestResult.txt is located in the directory where the ScriptA and ScriptB is located)
|_ScriptB
|_ScriptA
|_Action0
|_Action1
...
|_TestResult.txt
我运行 ScriptA的时候, 文件路径是正确的,它是向上面那个TestResult.txt里面写数据.
但是运行ScriptB的时候, 它调用了 Action1 and then ActionA,这时候它向QTP安装目录下面写文件(C:\Program Files\Mercury Interactive\QuickTest Professional)