- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我找到了下面的 OTA 方法来访问 HP QC ,但是当我执行它时,我收到“sys is not a Defined”错误。我正在使用 Protractor(Nodejs) 来测试应用程序,因此我需要使用 JavaScript 进行 OTA 调用
有人可以帮我解决这个问题吗
function QualityCenterTest()
{
var qc = Sys.OleObject("TDApiOle80.TDConnection");
//var qc = qcc.TDConnection;
qcConnectionPath_String = " http://qc/qcbin /";
qcDomain_String = "Abc";
qcProject_String = "xyz";
qcUserId_String = "Test";
qcPassword_String = "";
qc.InitConnectionEx(qcConnectionPath_String);
qc.Login(qcUserId_String, qcPassword_String);
qc.Connect(qcDomain_String, qcProject_String);
// Set the folder
var currTestFolder = qc.TestSetTreeManager.NodeByPath("Root\\abc ");
var testParam = " TestSet";
var testSetList= currTestFolder.FindTestSets(testParam);
}
最佳答案
我相信 Sys.OleObject
是一个仅适用于 Windows 环境的 COM 对象,Node.js 不提供对此开箱即用的支持。
https://helloacm.com/using-com-object-in-nodejs/
However, the NodeJS does not inherently support the Win32 COM/OLE techniques maybe because it is designed to be platform independent in the first place, like Python, which is similar in the case that you will need to download the win32com package [see here].
如果您需要在 Windows 上运行应用程序才能访问 HP QA,您可能需要类似上面提到的软件包
https://github.com/idobatter/node-win32ole
请提供有关您的环境以及您可能使用的其他工具的更多信息。
(此外,我也在研究 HP QC 集成,因此请提供有关您正在使用的流程的更多信息)
更多信息也许您可以尝试使用 REST API 而不是 COM 对象。 http://alm-help.saas.hpe.com/en/Latest/api_refs/REST_TECH_PREVIEW/ALM_REST_API_TP.html
关于Javascript OTA 调用 HP QC,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35793525/
我正在尝试使用 Java 中的 Rest api 访问 QC 11。 我正在关注 HP 提供的手册中的 API 引用。以下是登录身份验证的基本步骤。 Non-Web Application Autho
我刚刚开始学习 Quartz Composer,我想要创建的第一件事是最终可以在 Cocoa 应用程序中使用的组合,该组合将接受黑白图像和两个 NSColor 并更改黑色像素NSColor #1 为白
我正在尝试从测试实验室中提取仅链接到已关闭、已拒绝和延迟缺陷的测试实例列表。测试实例可以链接到多个缺陷。在这种情况下,我必须检查所有链接的缺陷,如果任何缺陷未关闭/拒绝/推迟,则不应选择该实例。以下是
我正在使用 HP QC 来管理缺陷(刚刚开始)并且对各种缺陷状态类型有疑问.... 我们有: 新 - 新缺陷 打开 - ?? 活跃 - 正在调查缺陷 已修复 - 开发团队已发布修复 - 需要重新测试
我们目前正在寻求在我们的一个项目中改进当前的缺陷报告流程(主要是通过加快它们的速度)。我们使用 HP QC 记录缺陷并使用 Excel 创建表格/图表。 我想知道是否可以在 HP QC 上运行 SQL
我找到了下面的 OTA 方法来访问 HP QC ,但是当我执行它时,我收到“sys is not a Defined”错误。我正在使用 Protractor(Nodejs) 来测试应用程序,因此我需要
我有一个工具可以捕获我们在工作场所测试的应用程序的屏幕截图。现在,一旦我完成了对特定测试用例或场景的测试,我们就会将我们手动拍摄的屏幕截图附加到 HP 质量中心。 我想自动化这个并制作我的工具来将 w
有没有办法从 Cocoa 应用程序访问结构?我可以使用 QCView setvalue:forkey 方法设置整数和字符串,但是当我尝试访问结构时,我遇到了错误。基本上我想做的是将字节数组传递到 Qu
我编写了以下代码来从 QC 检索测试用例列表,但 tsTestFactory 为空,而当我评估 qcConnect.testSetFactory() 时,它会返回一个 Com4j 对象。 我在这里做错
情况:我成功地使用 com4j 和 java 连接到我的 QC java代码: ITDConnection itdc= ClassFactory.createTDConnection(); Syste
在工作中,一位同事将缺陷数据从 hp qc 复制并粘贴到 Excel,这花了她很长时间...这让我发疯! 有没有办法将数据从 hp qc 导出到 Excel?它只需要转储缺陷列表及其相关字段,如 Id
我在 HDFS 中加载了一个数据文件和一个 qc 文件,我想比较 QC 文件中存在的计数和数据文件行计数。为此,我编写了一个 shell 脚本,它提取 QC 文件的计数部分并对数据文件执行 wc -l
我正在尝试使用 Com4J API 将附件添加到从我的 Java 代码运行的 QC 测试实验室测试用例。我能够创建成功的运行,但是在代码下方添加附件时为“IAttachment attach = at
用于访问QC 测试计划中所有测试用例的接口(interface)是什么?对于测试实验室中的测试集详细信息,我们有 ITestSetFactory。但是我们如何才能在键值对中的某个集合对象中从 QC 获
任何人都可以在 QC ALM REST API 上帮助我吗?为了实现这个目的,我们需要配置哪些东西?我有权访问 QC 10。我可以使用相同的 QC 10 URL 通过 ALM REST API 进行连
我正在尝试使用 REST API 在 QC 中打开一个新缺陷 我的代码如下所示 createxml =' Development ' ; $qc = cur
我正在 QC 中执行测试用例。它正在更新测试运行中的结果,但不更新测试状态。 Set RunF = tstInstance.RunFactory runName = "Run_" & Month(Da
我能够使用 com4j 连接到 hpqc 并且还能够过滤缺陷。现在我需要访问错误列表的每个项目。 我能够访问单个缺陷,例如: IBug bug = bugfactory.item(55203).que
请建议我通过 selenium Web 驱动程序连接 ALM 的步骤。 作业: 通过 selenium Web 驱动程序创建与 ALM 的连接。2.将测试用例标记为通过/失败 最佳答案 对于 ALM,
我正在尝试使用以下代码连接到 QC: ITDConnection2 QCconn= ClassFactory.createTDConnection(); QCconn.initConnectionEx
我是一名优秀的程序员,十分优秀!