qc

Can I determine if current test execs from test lab or interactively from within QTP IDE?

无人久伴 提交于 2020-03-14 04:59:39
问题 What is the most efficient way to check if the current QTP test execution is interactive, i.e. not part of a QC test set execution launched from the QC test lab? Do you guys know a cool way? WR used to have a batch run flag which reliably was cleared for all executions from within the IDE. Maybe QTP has something like this, and I overlooked it? First, I thought about looking at the OnError property: Set qtApp = getObject("","QuickTest.Application") qtApp.Test.Settings.Run.OnError now returns

QC API JAR to connect using java

陌路散爱 提交于 2019-12-25 17:03:17
问题 I'm trying to integrate QC (also known as ALM) using java/servlets/springs and I've tried the following jar to do it, however I'm not able to establish the connection. 1) "com4j" - which is quite old and is also mentioned on this forum as well, however the latest QC or ALM doesn't gets connected using this jar QC Connection from Java using Com4 Your help would be greatly appreciated. 回答1: QC version 10.0 or < 10.0 do not support rest api, also latest version of QC including 11, 11.5 and 12 do

QTP/UFT - Close all browsers except QC/ALM

那年仲夏 提交于 2019-12-20 04:45:14
问题 Currently I am using the below code to close all the browsers except the ALM browser from where I run the test suite from. However When I run the suite from ALM, the below code identifies 2 browsers - ALM browser and the test case browser. It first closes the test case browser and when it executes the iteration for the ALM browser, it says the browser is not identified when it tries to find the name of the browser. I am not sure why it counts it as a browser if it cant identify it later. Any

HP Quality Center field names

删除回忆录丶 提交于 2019-12-18 09:49:29
问题 I am interacting with HP QC using python and referring to HP ALM OTA documentation. What I need is to access fields in different places (particularly now I am trying to access Test Set description field). As far as I know it is done by following: TestSet['description field name'] = 'I am description' The problem is - I don't know this field name and I can't find it in documentation mentioned. Up until now I was wondering around examples in hope to find these names (the way I found that Actual

Jenkins QC plugin Can't create TDConnection Object

你说的曾经没有我的故事 提交于 2019-12-12 03:16:45
问题 I'm attempting to use the Jenkins QC plugin, but when I build on jenkins i'm getting the following console errors Started by user anonymous Building in workspace C:\Users\builder.jenkins\workspace\QC Plugin [QC Plugin] $ cscript /nologo "C:\Users\builder.jenkins\workspace\QC Plugin\runTestSet.vbs" http:// * ** * ** Caine test test qcreport-test-4.xml 100 RUN_PLANNED_HOST C:\Users\builder.jenkins\workspace\QC Plugin\runTestSet.vbs(163, 5) Microsoft VBScript runtime error: ActiveX component can

Can I determine whether current component is executed from ALM's test lab, or interactively?

一曲冷凌霜 提交于 2019-12-11 00:15:24
问题 Can I determine (programmatically) how my current business component scriptcode has been initiated? It could be standalone (using "Run" from UFT's toolbar while the component is open) from a standalone test execution (using "Run" from UFT's toolbar while a test calling the component is open) from a test lab execution (using "Run" or "Run all" button in the test set im ALM)? Foggily related: Can I determine if current test execs from test lab or interactively from within QTP IDE? 回答1: If the

Getting all the 'Runs' of Test Scripts from Test Lab in Quality Center through OTA

做~自己de王妃 提交于 2019-12-08 14:34:29
Could some one help me in getting the below task done. It will be great help. Ex: I have a Test Script in Test Lab in a particular path in QC. I need to develop a OTA, which will provide me 'All Runs' of the Test Script present in the path that I give. Say, I have 20 scripts in a path "Path1"(Basically the Test Lab path). So when i give this path as input, can i get all the scripts present in it and all their execution Runs. Ex: A test script 1234 is initially "Failed", then next day if it is "Passed". Then I need to get both these statuses out from Qc for all the Test Scripts. Is this

Getting all the 'Runs' of Test Scripts from Test Lab in Quality Center through OTA

試著忘記壹切 提交于 2019-12-08 08:10:15
问题 Could some one help me in getting the below task done. It will be great help. Ex: I have a Test Script in Test Lab in a particular path in QC. I need to develop a OTA, which will provide me 'All Runs' of the Test Script present in the path that I give. Say, I have 20 scripts in a path "Path1"(Basically the Test Lab path). So when i give this path as input, can i get all the scripts present in it and all their execution Runs. Ex: A test script 1234 is initially "Failed", then next day if it is

QC Connection from Java using Com4

岁酱吖の 提交于 2019-12-08 06:51:01
问题 I am trying to connect to QC using code below : ITDConnection2 QCconn= ClassFactory.createTDConnection(); QCconn.initConnectionEx(Parameters.QC_URL); QCconn.login(Parameters.QC_USERNAME, Parameters.QC_PASSWORD); QCconn.connect(Parameters.QC_DOMAIN, Parameters.QC_PROJECT); But i am getting exception at line ITDConnection2 QCconn= ClassFactory.createTDConnection(); Exception: com4j.ComException: 80004002 QueryInterface failed : No such interface supported : .\com4j.cpp:163 I have QC install on

MYSQL 的Query Cache

一曲冷凌霜 提交于 2019-12-07 07:46:19
MYSQL的Query Cache 当你的数据库打开了Query Cache(简称QC)功能后,数据库在执行SELECT语句时,会将其结果放到QC中,当下一次处理同样的SELECT请求时,数据库就会从QC取得结果,而不需要去数据表中查询。 在这个“Cache为王”的时代,我们总是通过不同的方式去缓存我们的结果从而提高响应效率,但一个缓存机制是否有效,效果如何,却是一个需要好好思考的问题。在MySQL中的Query Cache就是一个适用较少情况的缓存机制。在上图中,如果缓存命中率非常高的话,有测试表明在极端情况下可以提高效率238% [1] 。但实际情况如何? Query Cache有如下规则,如果数据表被更改,那么和这个数据表相关的全部Cache全部都会无效,并删除之。这里“数据表更改”包括: INSERT , UPDATE , DELETE , TRUNCATE , ALTER TABLE , DROP TABLE , or DROP DATABASE 等。 举个例子,如果数据表posts访问频繁,那么意味着它的很多数据会被QC缓存起来,但是每一次posts数据表的更新,无论更新是不是影响到了cache的数据,都会将全部和posts表相关的cache清除。如果你的数据表更新频繁的话,那么Query Cache将会成为系统的负担。有实验表明,糟糕时,QC会降低系统13% [1]