Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all 5491 articles
Browse latest View live

How to find the date of the latest upload/modification file in HPQC11 attachment using an excel VBA

$
0
0

Good morning everyone,

I'm triying to get all the attachments' name and its upload/last modification date related to a set of defects in HPQC 12.01 using excel vba.Right now, I'm able to get the names of each attachment, but I can't get the uploading/ latest modification date, does anyone know how to do this?The code that I'm using is: (For each attachment get the attachment information from the Cross Reference table)

Set bugAttachments = bg.AttachmentsSet bugAttachmentList = bugAttachments.NewList("")Dim bgAttachmentSizeDim tmpHyp As HyperlinkDim hypAddress AsStringDim m AsIntegerDim Text AsStringDim CmdDim rs
            bgAttachments =""            m =0ForEach bugAttachment In bugAttachmentList'bgAttachments = bugAttachment.Field("CR_VC_CUR_VER") & "hola"Text ="SELECT * FROM CROS_REF WHERE CR_REFERENCE = '"& bugAttachment.Name &"'"Set Cmd = tdc.Command 'Create an SQL Command objectCmd.CommandText = TextSet rs = Cmd.Execute 'Create a recordset of the current attachmentIf rs.RecordCount >0Then'Ensure that the command returned a resultrs.First 'Get to the start of the recordsetbgAttachments = rs.FieldValue(1)&"#"& rs.FieldValue(2)&"#"& rs.FieldValue(4)&"##"EndIf

ActiveCell.Offset(0, 1).Select
ActiveCell.Formula = bgAttachments
hypAddress = ActiveCell.Value
Set tmpHyp = ActiveSheet.Hyperlinks.Add(Anchor:=Selection, Address:= _
hypAddress, TextToDisplay:=ActiveCell.Value)

 


Excel query issue

$
0
0

I have a query that I'm having issues with.  I am going from CYCLE to list all my scenarios, then pulling all tests within those scenarios (want to list all scenarios whether or not there are tests, so my LEFT OUTER JOIN is working fine for that).  Then I'm getting all runs assoicated with each test (and this JOIN works fine as well).  Where I'm having issues is lastly pulling in any defects associated with each run.  The defects are appearing for each run, no matter what run the defect occured on.  Any ideas how to remedy this?  I'm sure it's something simple, but it's escaping me....

Any assistance is greatly appreciated!

Here's my code:

SELECT
        cy.CY_CYCLE                                as 'Scenario Name',
        ts.TS_NAME                                 as 'Step Name',
        tc.TC_STATUS                               as 'Test Instance Status',
        ts.TS_STATUS                               as 'Test Status',
        ts.TS_EXEC_STATUS                          as 'Test Execution Status',
        tc.TC_TESTER_NAME                          as 'Responsible Tester',
        tc.TC_PLAN_SCHEDULING_DATE                 as 'Planned Execution Date',
        cf.cf_item_name                            as 'Folder Description',
        rn.RN_RUN_ID,
      CASE when rn.RN_STATUS = 'PASSED'         then '1'
           when rn.RN_STATUS = 'FAILED'         then '2'
           when rn.RN_STATUS = 'N/A'            then '3'
           when rn.RN_STATUS = 'Not Completed'  then '4'
           when rn.RN_STATUS = 'No Run'         then '5'
        ELSE rn.RN_STATUS
      END                                          as SortedRunStatus,

        rn.RN_ASSIGN_RCYC                          as 'Test Cycle',
        tc.TC_TEST_ORDER                           as 'Step order in TESTCYCL',

       case cy.CY_ASSIGN_RCYC
            when '1067' then cf.CF_ITEM_NAME
            when '1068' then
              case when cf.cf_item_path like 'AAAAAPAACAAA%' then 'EAM'
                   when cf.cf_item_path like 'AAAAAPAACAAB%' then 'HCM'
                   when cf.cf_item_path like 'AAAAAPAACAAC%' then 'E2E'
                   when cf.cf_item_path like 'AAAAAPAACAAD%' then 'SCM'
                   else NULL
              end
       end as Team,
       bg.BG_BUG_ID                                as 'Defect ID',
       bg.BG_STATUS                                as 'Defect Status',
       ln.LN_ENTITY_TYPE                           as 'Defect In'

 

FROM    CYCLE cy
        LEFT OUTER JOIN TESTCYCL  tc  on cy.CY_CYCLE_ID = tc.TC_CYCLE_ID
        LEFT JOIN RUN             rn  on tc.TC_TESTCYCL_ID = rn.RN_TESTCYCL_ID
        LEFT JOIN TEST            ts  on tc.TC_TEST_ID = ts.TS_TEST_ID
        LEFT JOIN CYCL_FOLD       cf  on cy.CY_FOLDER_ID = cf.CF_ITEM_ID
        right JOIN V_LINK_TESTCYCL vln on tc.TC_TESTCYCL_ID = vln.LN_TESTCYCL_ID
        right JOIN LINK            ln  on vln.LN_BUG_ID = ln.LN_BUG_ID
        right JOIN BUG             bg  on ln.LN_BUG_ID = bg.BG_BUG_ID
        step


 /*    only for FIT1 cycle and Defects not Closed or Rejected  */

 WHERE  cy.CY_ASSIGN_RCYC = 1068
/*  and  bg.BG_STATUS not in ('Closed', 'Rejected')  */
     and bg.BG_BUG_ID = 155

  ORDER by  cy.CY_ASSIGN_RCYC,
            cy.CY_CYCLE,
            tc.TC_TEST_ORDER,
            SortedRunStatus
   ASC

Automated ALM Profile creation on LDAP Authetication

$
0
0

Hi,

If HP Quality Center 12.5x is using LDAP Authentication is it possible to get the ALM profile created automatically. Reading through archived forums I saw in couple of posts it is mentioned as - on first login attepmt if the ALM Profile is not present in QC, it will try to import the profile from LDAP.

Does the automatic pull from LDAP works at time of login attempts?

Thanks 

Update a test instance user field with test field(Test Set folder)

$
0
0

Hi,

I would like to update a test instance user field with the test set folder name. If the test set folder name is zzz which is a system field and is automatically updated by the system, I would want my workflow to update the test instance user field to updated with the same value.
I have tried the following but that does not work. 

Function TestSetTests_AfterPost
On Error Resume Next
dim tdc
Set tdc=TDConnection
Dim TSFact 'as testsetfactory
set TSFact=tdc.TestSetFactory
dim tstset 'as testset
set tstset=TSFact.Item(TestSet_Fields("CY_CYCLE_ID").Value)
Dim TSTestFact 'as TSTestFactory
set TSTestFact=tstset.TSTestFactory
dim TSTst 'as tstest
Set TSTst= TSTestFact.Item(TestSetTest_Fields.Field("TC_CYCLE_ID").Value)
TestSet_Fields.Field("CY_FOLDER_ID").IsReadOnly=False
TSTst.Field("TC_USER_02").Value=TestSet_Fields.Field("CY_FOLDER_ID").Value
TSTst.Post
TestSet_Fields.Field("CY_FOLDER_ID").IsReadOnly=True
on error goto 0
end function

Any suggestions would be helpful. 

Thank you.

ALM Query to fetch the Defect(BUG) details

$
0
0

Hi Everyone,

I have come up with a ALM qurery to Fetch the BUG details from ALM based on BUG ID, and i need the following details to be fetched,

All Defect Details along with, Linked details, and the defect linked to the corresponding Test/ Test set/test Cycle /Test Release Names 

Below is the QUERY i came up with

SELECT BUG.BG_BUG_ID,
BUG.BG_SUMMARY ,
BUG.BG_DETECTED_BY,
BUG.BG_SEVERITY,
BUG.BG_PRIORITY,
BUG.BG_USER_TEMPLATE_27,
CYCLE.CY_STATUS,
BUG.BG_USER_TEMPLATE_26,
BUG.BG_STATUS,
BUG.BG_USER_TEMPLATE_07,
BUG.BG_USER_TEMPLATE_08,
BUG.BG_USER_TEMPLATE_05,
BUG.BG_DEV_COMMENTS,
BUG.BG_DETECTION_DATE,
BUG.BG_USER_TEMPLATE_28,
RELEASE_CYCLES.RCYC_NAME
CYCL_FOLD.CF_ITEM_NAME /*Test Set Folder (CYCLE).Name*/ as 'Test Set Folder Name',
CYCLE.CY_CYCLE /*Test Set.Name*/ as 'Test Set Name',
TEST.TS_NAME /*Test.Test Name*/ as 'Test Case Name'
-- TESTCYCL.TC_STATUS /*Test Instance.Status*/ as 'Test Execution Status',
-- TESTCYCL.TC_EXEC_DATE /*Test Instance.Exec Date*/ as 'Execution Date',

FROM
RELEASE_CYCLES,
CYCL_FOLD,
CYCLE,
TESTCYCL,
TEST, bug


WHERE
RELEASE_CYCLES.RCYC_ID /*Cycle.Cycle ID*/ = CYCL_FOLD.CF_ASSIGN_RCYC /*Test Set Folder (CYCLE).Target Cycle*/
AND CYCL_FOLD.CF_ITEM_ID /*Test Set Folder (CYCLE).Test Set Folder ID*/ = CYCLE.CY_FOLDER_ID /*Test Set.Test Set Folder*/
AND CYCLE.CY_CYCLE_ID /*Test Set.Test Set ID*/ = TESTCYCL.TC_CYCLE_ID /*Test Instance.TestSet*/
AND TEST.TS_TEST_ID /*Test.Test ID*/ = TESTCYCL.TC_TEST_ID /*Test Instance.Test*/
and BUG.BG_BUG_ID='50011'

But i got stuck with following Issue:

1. When i RUn the Query i Able to get the BUG Details, but results are fetching multiple Test set details since the Script linked to that defect is present in multiple Release test sets, all the test set details are coming up,

i only need to get the Test Set/ Test Name which that BUG is directly linked to not all the test set where the Script is linked to.

E.g: BUG ID: 10 was found and linked to a Test ID: 1001 in Release 12, The query results should give me only 1 row that result, but My Query is giving me all the Release where Test ID: 1001 is present in(10,11,12)

Please help me in resolving it.
Appreicate your help

Thanks in Advance

Error while trying to logIn in QC using

$
0
0

Hi I am tryng to export all QC data from QC to Excel file-

I have checked - (Tools - Referances)

OLE Automation and OTA COM Type Library . and try to execute below code -

 

 DomainName = "DomainName"
ProjectName = "ProjectName"
UserName = "UserName"
Password = "Password"
Set objTDConnection = CreateObject("TDApiOle80.TDConnection")
QCServerName = "https://ServerName/qcbin"
objTDConnection.InitConnectionEx QCServerName
'In below statement I am getting error - Login Fail, using same user and password I can logined in QC, I did not understand what is the exactly error, where i have to check '
 objTDConnection.ConnectProjectEx DomainName, ProjectName, UserName, Password

If objTDConnection.LoggedIn Then

msgbox "Connect successfully "
Else
 msgbox "not connect with Quality Center Check username /Password/Domain name /Project Name "
End If

Set objTDConnection = Nothing

Project entities customization

$
0
0

Hi All,

I am customozing project entities from HP ALM Desktop Client. I want one of the field to be 'drop down' type. There is no option for selecting dropdown for that field. What can i do to make this field as 'dropdown' field.

Thanks in Advance,

Sanjeev

Linking audit log and properties to impacted design steps and tests

$
0
0

Hi, 

 

I'm trying to extract a full history of the modifications made on design steps and tests. 

 

I was able to gather the changes made on design steps but I'm not able to link each modification to their respective design step or test. 

 

Here my current query: 

SELECT
 AUDIT_LOG.AU_ACTION,
 AUDIT_LOG.AU_USER,
 AUDIT_PROPERTIES.AP_PROPERTY_NAME,
 AUDIT_PROPERTIES.AP_OLD_LONG_VALUE,
 AUDIT_PROPERTIES.AP_NEW_LONG_VALUE,
 AUDIT_LOG.AU_TIME
FROM
 AUDIT_LOG
 INNER JOIN AUDIT_PROPERTIES AUDIT_PROPERTIES ON AUDIT_LOG.AU_ACTION_ID = AUDIT_PROPERTIES.AP_ACTION_ID
WHERE
 AUDIT_LOG.AU_USER = '<user.name>'
 AND
 AU_ENTITY_TYPE LIKE 'DESSTEPS'

And now i would like to link each object of this query to its design step. How can I do that?

 

 

Thanks a lot


QC Automail -- Defect Link Redirect Issue

$
0
0

Hello,

We are currently on QC 12.53 Patch 1,windows 2012 and Oracle 12c.We recently enabled the SSL for our site and we were able to access the application using https link in IE with no issues.Also happened to configure the redirect from http to https which is also working fine.

However when there is a defect mail notification from QC and when we try to click on the hyperlink on the defect ID,its basically is routing to the http url and keeps failing to load the login page.I noticed when i mouse over the Defect ID in the mail notification,its showing the url as xyz.com:8443\qcbin,however when clicked on the hyperlink its taking to the url as

http://xyz.com:8443/qcbin/start_a.jsp and since the URL has port no as 8443 its not redirecting to https url.

So wondering if anyone has come across this scenario and what could be troubleshooted further from QC end to fix this url redirect issue from defect mail notification hyperlink.

Thanks,

SQL Query across projects

$
0
0

I'm trying to build a query that will give me every GR_GROUP_NAME from every project.

I have a query that will give me every Template and project NOT built from a Template as those should be the only ones with possible different groups.

 

SELECT DB_NAME + '.td.GROUPS' as UniqueDatabases FROM qcsiteadmin_db.td.projects p1
where PR_IS_ACTIVE = 'Y'
and (
(IS_TEMPLATE = 'N' and PROJECT_TYPE = 'Standard' and ISNULL((select IS_TEMPLATE from qcsiteadmin_db.td.projects where DOMAIN_NAME = p1.CREATE_FROM_DOMAIN and PROJECT_NAME = p1.CREATE_FROM_PROJECT), 'N') = 'N')
or (IS_TEMPLATE = 'Y')

 

 

That gives me the database names, but I'm trying to figure out how to use it to pull the groups from all of the projects in a single query.  Something like this ??? but of course this doesn't work...  maybe Union, but How will I union when the db names are in the select statement

SELECT GR_GROUP_NAME FROM (SELECT DB_NAME + '.td.GROUPS' as UniqueDatabases FROM qcsiteadmin_db.td.projects p1
where PR_IS_ACTIVE = 'Y'
and (
(IS_TEMPLATE = 'N' and PROJECT_TYPE = 'Standard' and ISNULL((select IS_TEMPLATE from qcsiteadmin_db.td.projects where DOMAIN_NAME = p1.CREATE_FROM_DOMAIN and PROJECT_NAME = p1.CREATE_FROM_PROJECT), 'N') = 'N')
or (IS_TEMPLATE = 'Y')
)
)

 

Thanks for any help you can provide.

Mike

Paramater Promotion

$
0
0

In HPQC,When i add a New Test Config there are so many Parameter maintain for a T Code so for example if ME21N Has parameter Company code and in mmbe again company code parameter will come so instead of that if ones i wrote the Company code it should refect all the Rows where the Company code is Present Hope u Understand my question.

Management Workflow

$
0
0

I am having some trouble with firing an action from the management module. When I have a cycle selected I want to pop a messagebox with the cycle name, just to get going.

The thing is that I have dropped a button onto the releases toolbar, its action name in workflow is UserDefinedActions.RunCycle but I cannot for the life of me find where to put the associated code in the workflow.

I would have expected to put it in the management script using the redirect from the common script here..

 

  'Use the following script to redirect this function to the module specific function:
  Select Case ActiveModule
    Case "Defects"
      ActionCanExecute = Defects_ActionCanExecute(ActionName)
    Case "Test Lab"
      ActionCanExecute = TestLab_ActionCanExecute(ActionName)
    Case "Test Plan"
      ActionCanExecute = TestPlan_ActionCanExecute(ActionName)
    Case "Requirements"
      ActionCanExecute = Requirements_ActionCanExecute(ActionName)
    Case "Management"
      ActionCanExecute = Management_ActionCanExecute(ActionName)
    Case "Test Resources"
      ActionCanExecute = Resources_ActionCanExecute(ActionName)
    Case "Business Components"
      ActionCanExecute = Components_ActionCanExecute(ActionName)
    Case "Dashboard"
      ActionCanExecute = Analysis_ActionCanExecute(ActionName)
    Case "Business Models"
      ActionCanExecute = BusinessModels_ActionCanExecute(ActionName)
    Case "Test Runs"
      ActionCanExecute = TestRuns_ActionCanExecute(ActionName)
  End Select
  ActionCanExecute = DefaultRes

Which I expect to send me to the new function in the management script here:

function Management_ActionCanExecute(actionName)
 msgbox "this is function Management_ActionCanExecute"
end function

 

but its simply not playing ball. Any ideas out there?

ALM Rest API posting design steps

$
0
0

Hi,

I am trying to add tests and design steps using the rest API.

I post the test ok but when I try and post the design-step it fails with a 500 error.  

I am using ALM version 12

I am using the following URL

http://hpqc.perceptive.com/qcbin/rest/domains/{domain}/projects/{project}/design-steps

I try posting the following:

string AuthenticationXML1 = @"<?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?>
<Entity Type=""design-step"">
<Fields>
<Field Name=""attachment""><Value></Value></Field>
<Field Name=""description""><Value>test</Value></Field>
<Field Name=""user-02""><Value>test</Value></Field>
<Field Name=""expected""><Value>test</Value></Field>
<Field Name=""has-params""><Value></Value></Field>
<Field Name=""link-test""><Value>1761</Value></Field>
<Field Name=""user-01""><Value>test</Value></Field>
<Field Name=""name""><Value>blar</Value></Field>
<Field Name=""step-order""><Value>4</Value></Field>
<Field Name=""user-03""><Value>test</Value></Field>
<Field Name=""parent-id""><Value>1761</Value></Field>
</Fields>
<RelatedEntities/>
</Entity>";

Any thoughts?

Is there a way to find out how many times a test case has been run?

$
0
0

Hello,

I have a folder under which I have subfolders (200*16=3200 testcases), I need to know how many times test cases has been run. Another way to look at it is from a reporting perspective where we are reporting only the unique number of test cases. But the testers executing the test cases may end up putting more effort in re-running the already passed test case which will not be shown in the overall report.

Any help? 

QC Connection Error to LDAP server

$
0
0

Hello,
we need urgent help on this. Our Quality Center system is completely down, none of our users can access this tool.

We are using Quality Center 12.21 in our organization. Within the LDAP connection settings of QC SITE ADMIN page, we are using our LAN ID "m148806" and it's password to establish connection. As password for this LAN ID is expiring soon, I have changed the password for this LAN account. Since then, I couldn't login to QC SITE PAGE or QC PROJECT. When I attempted to login to SITE ADMIN page, I am getting following error:
Failed to Login, please contact system administrator for help.
Description: An error happened while connecting to LDAP server. Please try again later.

We need urgent help please.

Thanks
-Subba


Patches locations for HP ALM Products

$
0
0

Hi everybody,

Maybe i'm the only one but i can't find a place where i can download ALM Patches.

I searched on the forums, i searched online and nothing...

I guess there is a page with the lists of patches for HP ALM 12.00 for example...

Thanks in advance.

User Defines variables in SAP TAO using UFT

$
0
0

I have created a user defined components in uft and ten using user define components as well as the SAP TAO components, I have created a scenario, but the issue is after consolidating using SAP TAO its working fine from UFT but When I am running the same script from HP ALM its is not able to identify the user defined components which I have created thru ALM

 

Thank you in advance

Importing test result from External tool

$
0
0

Hi,

I'm trying to import a Test Result from External tool and I'm interested to know the xml format (structure) managed by ALM quality center.

Could you help me?

Kind regards,

Salvatore

Update excel from Workflow

$
0
0

Hello Experts

We have a requirement to capture the some information like (RFCnumber / Total Test / Username) from HP ALM when copying test cases. This information will be maintained in an excel on server. information on this excel should keep appending.

I captured the info, Now how to open an excel stored in server and append the captured information and save.all this update of excel should be done from workflow.

Can someone help with sample code?

Thanks in advance.

Kamal.

Getting the information from AuditPropertyFactory table

$
0
0

I have been trying to use the ALM api , but when I try to get the information from the AuditPropertyFactory, I keep getting the error "Invalid server response".

try

{

AuditPropertyFactory auditLog = this.ALMConnection.AuditPropertyFactory asAuditPropertyFactory;

var auditLogFilter = auditLog.Filter asITDFilter;

 

foreach (KeyValuePair<string, string> pair in queryFilters)

{

auditLogFilter[pair.Key.ToString()] = pair.Value;

}

I'm using the same server and filter management  to get the Audit log information.

what can be the problem?

this.result = auditLog.NewList(auditLogFilter.Text);

}

catch (Exception e)

{

thrownewException("OTAAPI.PerformALMExecAuditPropertyQuery Method : " + e.Message, e.InnerException);

}

 

Viewing all 5491 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>