英文:
How to set qtRunResultsOptions.ResultsLocation to an ALM test set path
问题
我正在开发一个AOM,通过.vbs文件运行我的UFT脚本。
我已经看到一些关于如何通过本地和临时路径设置结果位置的示例,但是为了我的目标,我想在ALM中的特定测试集内设置结果位置。
我已经建立了ALM连接,并成功打开了ALM中的一个脚本。
以下是我目前正在使用的代码部分,我想要修改:
' 准备RunResultsOptions对象
Set qtRunResultsOptions = CreateObject("QuickTest.RunResultsOptions") ' 创建Run Results Options对象
qtRunResultsOptions.ResultsLocation = "<TempLocation>" ' 设置临时结果位置
我想将"
英文:
I'm working on an AOM to run my UFT scripts via .vbs files
I've seen some samples on how to set the Results location via local and temp path but for my goal, I want to set the Results Location on a specific Test Set inside alm.
I have already established ALM connection and manage to open a script that is inside ALM
Here's the portion of the code I am currently using and I want to modify:
' Prepare the RunResultsOptions object
Set qtRunResultsOptions = CreateObject("QuickTest.RunResultsOptions") ' Create the Run Results Options object
qtRunResultsOptions.ResultsLocation = "<TempLocation>" ' Set a temporary results location
I want to change the "TempLocation" into a specific Test Set path inside ALM. I'm wondering what would be the syntax and parameters needed.
答案1
得分: 1
根据文档中所述,您需要使用<NewLocation>
并设置三个值TDRunName
、TDTestInstance
和TDTestSet
。
' 准备RunResultsOptions对象
Set qtRunResultsOptions = CreateObject("QuickTest.RunResultsOptions") ' 创建Run Results Options对象
qtRunResultsOptions.TDRunName = "..."
qtRunResultsOptions.TDTestInstance = "..."
qtRunResultsOptions.TDTestSet = "..."
' 上述值必须设置才能生成测试路径。
qtRunResultsOptions.ResultsLocation = "<NewLocation>"
代码未经测试
... 表示必需信息
英文:
As stated in the documentation you need to use <NewLocation>
and set the three values TDRunName
, TDTestInstance
, and TDTestSet
.
' Prepare the RunResultsOptions object
Set qtRunResultsOptions = CreateObject("QuickTest.RunResultsOptions") ' Create the Run Results Options object
qtRunResultsOptions.TDRunName = "..."
qtRunResultsOptions.TDTestInstance = "..."
qtRunResultsOptions.TDTestSet = "..."
'The above values must be set to generate a test path.
qtRunResultsOptions.ResultsLocation = "<NewLocation>"
<sup>Code is provided untested</sup>
<sup><sup>...</sup> Denotes required information</sup>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论