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

Unable to launch HP UFT 12.01 from HP ALM 12.53

$
0
0

i made several Business components. i can manage to connect HP UFT 12.01 to the HP ALM 12.53 server.

the problem is when in the testing tab of ALM and accessing my business components. the automated components have a link that would allow it to launch UFT from inside ALM, but when i click it, it gives an error saying "check testing tool installation". and at the same time, when trying to run tests from the TEST PLAN using the automated components, it gives the following error:

Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))

The problem, i think, is that ALM is not able to see the UFT installation somehow. which could be a registry issue. but i am not 100% sure.

please help.


Query Regarding Rest API

$
0
0

Is there any Rest API to update the status of Test case? if yes then please provide the Rest API URI for it.

Thanks in advance,

Ganesh U.

HP QC SOAPUI Integration using QC Rest Api

$
0
0

Hi,

 

Iam trying to Integraete soapui and QC using QC restapi.

 

Problem is iam able to connect and acces defects and testinstance is, But problem is iam not able to attach the file or img to QC using rest api.

 

Request:

POST https://qc.nam.nsroot.net:650/qcbin/rest/domains/GCT_GLOBAL/projects/AAP_Release_IUT_2017/defects/77/attachments HTTP/1.1
Accept-Encoding: gzip,deflate
Cookie: QCSession=NjI1NjY3MzM7UHRPeEJKSkdlQ0ptaDMwTUwyWEJ0USoqO1JFU1QgY2xpZW50OyA7IA..;Path=/;HTTPOnlyLWSSO_COOKIE_KEY=RnzmaMfNllAPct8aOJ3DAKZ9oJWafN1wWVnAlfmdyDD-O0k38TQYB8IfEYEYxlXMS0kNqBE9WTnR9muy71YUCkoja-_130d08mFyc4d9R30zJvl5rejSrVkHWi8SJbln4T81GGaxHIPWKYWhzf-eftfvySEFOPikR4W4tShrULqFEiij772v2uCUZWoTPBRdWnOFmCFq1hNJ8iAE0g2iBx6SKp46oJzSCwgFTyUZPV4.;Path=/;HTTPOnly
Content-Type: multipart/form-data; boundary="----=_Part_47_1511739743.1493373951945"
MIME-Version: 1.0
Content-Length: 189
Host: qc.nam.nsroot.net:650
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)


------=_Part_47_1511739743.1493373951945
Content-Type: application/octet-stream
Content-Transfer-Encoding: binary
Content-Disposition: form-data; name="File"; filename="sample.log"

 Response:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>String index out of range: -1</title>
<link rel="stylesheet" type="text/css" href="/qcbin/rest-exception/rest-exception.css"/>
<script type="text/javascript" src="/qcbin/rest-exception/rest-exception.js"/>
</head>
<body>
<div id="banner">
<img src="/qcbin/rest-exception/hp-logo.png" id="banner-logo"/>
<h3 id="banner-title">HP Application Lifecycle Management</h3>
</div>
<div id="content-holder">
<h1>String index out of range: -1</h1>
<div>
<tr>
<td>
<a id="exception-id-title">Exception Id:</a>
</td>
<td>qccore.general-error</td>
</tr>
</div>
<a id="more-details-label" style="display:none" href="#" onClick="javascript&colon;toggleDetails()">
<h3>Show Details</h3>
</a>
<div id="details-holder" style="display:none">
<div style="display:none">
<h4>Exception Properties:</h4>
<div/>
</div>
<div style="display:none">
<h4>Stack Trace:</h4>
<div/>
</div>
</div>
</div>
</body>
</html>

Authentication fails when trying to pull data from ALM server (using PHP)

$
0
0

Hi all, 

I have been trying to pull test cases from HP ALM via the rest api - When doing so, I get a 401 error. the error also recommend appending '?login-form-required=y' which is not a solution for my issue as I am trying to retrieve test cases with an automated script (using PUP

I have followed the next steps:

1.  Authenticate - when doing the authentication I have received the LWSSO_COOKIE_KEY.

2. Created a session using '/rest/site-session' - Did not get any particular error in that stage.

3. Verified authentication using /rest/is-authenticated' - I did get a response with my username.

HERE'S MY PROBLEM:

4. Retrieving test data using '/rest/domains/<MYDOMAIN>/projects/<MYPROJECT>/tests?page-size=20'

When making the curl request I am getting a 401 error saying authentication failed.

Here's the code I have been using for it.

 

<?php

$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_COOKIE, $LWSSO_COOKIE_KEY); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 300); $data = curl_exec($ch); curl_close($ch);

?>

 

Will appreciate your help.

Thanks!

 

ALM SaaS REST API 12.50 in PHP to get the defect details

$
0
0

Hi All,

 

I wanted to get the defects from the ALM using REST API using PHP . I am using GET method with header as Base64 Encoded with username:passowrd .

Below code is working in POSTMAN which is rest client but not working in PHP can some one help me to resolve the issue. When I execute the below code I am not getting any response in the Chrome Browser but same is working in POSTMAN client


<?php $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "http://hostname/qcbin/api/domains/domainname/projects/projectname/defects/?limit=10", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => array( "authorization: Basic encoded value", "cache-control: no-cache" ), )); $response = curl_exec($curl); $err = curl_error($curl); curl_close($curl); if ($err) { echo "cURL Error #:" . $err; } else { echo $response; } ?>

 

 

Controling the User in the WorkFlow in Defects modules

$
0
0

Hi,

I am currently using HP QC ALM 12.01. , JIRA v7.1.4 and using the hp synchronizer 1.4 tool to integrate the two.

 

In the Customise-Workflow section I have the following code to in the defect section:

--------------------------------------------------------------

Sub Bug_FieldChange(FieldName)
On Error Resume Next
If FieldName= "BG_STATUS" and Bug_Fields("BG_STATUS").value="Closed" then '
When defect closes on status closed, verify that the following fields are populated:
Bug_Fields("BG_USER_07").IsRequired=True
'Defect Root Cause
Bug_Fields("BG_CLOSING_DATE").IsRequired=True
'Closing Date
Bug_Fields("BG_DETECTED_IN_RCYC").IsRequired=TRUE
'Detected on Cycle

PrintError "Defects_Bug_FieldChange"
End If
On Error GoTo 0
End Sub

--------------------------------------------------------------

 

The current process: I click on status and select "closed", the code makes the coded fields mandatory. This is as expected. When I click on submit, it creates a defect and Jira then tries to sync with QC.

Now the issue is, when Jira and QC sync using the bridge it falls over because qc now has mandatory fields that wont originally mandatory. I do not have access to change the bridging tool settings, so i need to make a plan to get around it.

Question, how could I write my code to on submit button if all criteria has been met on mandatory fields in code, that it won't make them mandatory fields in DB or once defect has been closed?

 

Thank you in advance.

Convert to Tests - Custom Fields

$
0
0

Is it possible to populate custom fields in the Test Plan module from the value of custom fields in the Requirements module as part of the 'Convert to Tests' function? e.g. a requirement has the field 'Test Phase' populated with "UAT", can you make sure the converted test also has that value for the field Test Phase in the test plan module.

Something as simple as below in the Test_New part of the workflow does not work.

Test_Fields.Field("TS_USER_07").Value = Req_Fields.Field("RQ_USER_07").Value

TS_USER_07 is Test Phase in the Test Plan module

RQ_USER_07 is Test Phase in the Requirements module

Both use the same project list for values.

Software Content on HPE Enterprise Community in Read-Only May 9 - 15

$
0
0

Software Content on HPE Enterprise Community in Read-Only May 9 - 15

As you may have seen in the last few months, Hewlett Packard Enterprise is combining some software assets with Micro Focus. As part of this spin-merge with Micro Focus, a new Software instance of an online community will go live on May 16, 2017.

All boards within the current Software category will be located to a new community. All URLs will redirect to the new community. All current users will be migrated to the new community as well. Please be sure to update your bookmarks after May 16.

As part of the migration to a new Software instance, all software content will be in read-only mode from May 9 – 15. We apologize for any inconvenience.

We will continue to provide further updates in this News board.


OTA API .drilldown method

$
0
0

Morning All,

apologies this is my first initial post but I have been using these forums for a while. However I can't seem to find the answer to my below question, hopefully someone can help me.

i have managed to use the OTA API to build a qc summary graph and present the data within excel to my requirements, how ever I am now wanting to take it to a new level and drill down on some of the data in the graph. I have been looking through the OTA API manual and noticed their are two methods which I could potentially use to do this, '.drilldown' and '.multidrilldown'.

has anyone got some sample code of this working as I just can't get it working?? 

 

Many thanks 

 

Ash

How to update user field Test Instances from List ?

$
0
0

Hi,

I have following code to update user field.

Set oTSetTreeMgr = TDConnection.TestSetTreeManager
Set oTSetFolder = oTSetTreeMgr.NodeById (TestLabSelectedID)
set oTSinstancesList = oTSetFolder.FindTestInstances("")

for each oTSTest in oTSinstancesList
oTSTest.field("TC_USER_TEMPLATE_04") = oTSTest.field("TC_TESTCYCL_ID")
oTSTest.post
next

 

Can I do it without loop ?  

HP ALM Rest API 401 Unauthorized Create Defect C# .NET

$
0
0

Hello !

I can not create a Defect in HP ALM, 

When I request to create a defect I receive a 401 Unauthorized...

From what I understood from API:

  1. Authenticate (HttpRequest on /api/authentication/sign-in) and retrieve the following cookies "LWSSO_COOKIE_KEY", "QCSession", "ALM_USER", "XSRF-TOKEN";
  2. A session (HttpRequest on /rest/site-session) must be initialized by placing the retrieved cookies in the header and then retrieving the last "JSESSIONID" cookie;
  3. Finally, I request HTTP at this address "/rest/domains/" + HPALMDomain + "/projects/" + HPALMProject + "/defects" by placing all the cookies.

Each of the steps go perfectly well, I retrieve each time the cookies that I reuse for the following query. I have already tried to place only certain cookies at certain times.

Here is my source code, if you could help me it would be great!

public static class HPALMHelper
{
    #region Properties

    private static string HPALMUrl = ConfigurationManager.AppSettings["HPALMUrl"];
    private static string HPALMDomain = ConfigurationManager.AppSettings["HPALMDomain"];
    private static string HPALMUserName = ConfigurationManager.AppSettings["HPALMUserName"];
    private static string HPALMPassWord = ConfigurationManager.AppSettings["HPALMPassWord"];
    private static string HPALMProject = ConfigurationManager.AppSettings["HPALMProject"];

    #endregion

    private static string Base64Encode(string plainText)
    {
        var plainTextBytes = System.Text.Encoding.UTF8.GetBytes(plainText);

        return Convert.ToBase64String(plainTextBytes);
    }

    /*private static WebResponse ConnectHPALM()
    {
        #region Authentication Request

        string StrServerLogin = HPALMUrl + "/api/authentication/sign-in";
        HttpWebRequest authRequest = (HttpWebRequest)WebRequest.Create(StrServerLogin);
        authRequest.Headers[HttpRequestHeader.Authorization] = "Basic " + Base64Encode(HPALMUserName + ":" + HPALMPassWord);
        WebResponse authResponse = authRequest.GetResponse();

        #endregion

        return authResponse;
    }*/

    private static WebResponse ConnectHPALM(out string SSOCookie)
    {
        #region Authentication Request

        string StrServerLogin = HPALMUrl + "/api/authentication/sign-in";
        HttpWebRequest authRequest = (HttpWebRequest)WebRequest.Create(StrServerLogin);
        authRequest.Headers[HttpRequestHeader.Authorization] = "Basic " + Base64Encode(HPALMUserName + ":" + HPALMPassWord);
        WebResponse authResponse = authRequest.GetResponse();

        #endregion

        #region Session Request

        Uri target = new Uri(HPALMUrl);
        string SiteSession = HPALMUrl + "/rest/site-session";
        HttpWebRequest createSessionRequest = (HttpWebRequest)WebRequest.Create(SiteSession);
        createSessionRequest.Method = "POST";

        createSessionRequest.CookieContainer = new CookieContainer();
        string AuthCookies = authResponse.Headers.ToString();

        string LWSSOCookie = AuthCookies.Substring(AuthCookies.IndexOf("LWSSO_COOKIE_KEY=") + 17);
        LWSSOCookie = LWSSOCookie.Substring(0, LWSSOCookie.IndexOf(";"));
        createSessionRequest.CookieContainer.Add(new Cookie("LWSSO_COOKIE_KEY", LWSSOCookie) { Domain = target.Host });

        string QCSessionCookie = AuthCookies.Substring(AuthCookies.IndexOf("QCSession=") + 10);
        QCSessionCookie = QCSessionCookie.Substring(0, QCSessionCookie.IndexOf(";"));
        createSessionRequest.CookieContainer.Add(new Cookie("QCSession", QCSessionCookie) { Domain = target.Host });

        string UserCookie = AuthCookies.Substring(AuthCookies.IndexOf("ALM_USER=") + 9);
        UserCookie = UserCookie.Substring(0, UserCookie.IndexOf(";"));
        createSessionRequest.CookieContainer.Add(new Cookie("ALM_USER", UserCookie) { Domain = target.Host });

        string TokenCookie = AuthCookies.Substring(AuthCookies.IndexOf("XSRF-TOKEN=") + 12);
        TokenCookie = TokenCookie.Substring(0, TokenCookie.IndexOf(";"));
        createSessionRequest.CookieContainer.Add(new Cookie("XSRF-TOKEN", TokenCookie) { Domain = target.Host });

        SSOCookie = LWSSOCookie;

        createSessionRequest.Headers[HttpRequestHeader.Authorization] = "Basic " + Base64Encode(HPALMUserName + ":" + HPALMPassWord);
        WebResponse createSessionResponse = createSessionRequest.GetResponse();

        #endregion

        return createSessionResponse;
    }

    private static WebResponse LogOutHPALM()
    {
        #region Authentication Request

        string StrServerLogin = HPALMUrl + "/api/authentication/sign-out";
        HttpWebRequest authRequest = (HttpWebRequest)WebRequest.Create(StrServerLogin);
        authRequest.Headers[HttpRequestHeader.Authorization] = "Basic " + Base64Encode(HPALMUserName + ":" + HPALMPassWord);
        WebResponse authResponse = authRequest.GetResponse();

        #endregion

        return authResponse;
    }

    public static HttpStatusCode CreateDefect(string entity, out string createDefectResponseURL)
    {
        string SSOCookie;
        WebResponse authResponse = ConnectHPALM(out SSOCookie);

        HttpWebRequest createDefectRequest = (HttpWebRequest)WebRequest.Create(HPALMUrl + "/rest/domains/" + HPALMDomain + "/projects/" + HPALMProject + "/defects");
        createDefectRequest.Method = "POST";
        Uri target = new Uri(HPALMUrl);

        #region Stream Datas

        using (var defectDatas = new StreamWriter(createDefectRequest.GetRequestStream()))
        {
            defectDatas.Write(entity);
            defectDatas.Flush();
            defectDatas.Close();
        }

        #endregion

        #region Header

        createDefectRequest.Headers.Add("Accept-Language", "en-US,en;q=0.8,he;q=0.6");
        createDefectRequest.Headers.Add("Accept-Encoding", "gzip, deflate, sdch");
        createDefectRequest.KeepAlive = true;
        createDefectRequest.Accept = "application/json";
        createDefectRequest.ContentType = "application/json";

        #endregion

        #region Get & Set all cookies

        createDefectRequest.CookieContainer = new CookieContainer();

        string AuthCookies = authResponse.Headers.ToString();

        /*string JSESSIONIDCookie = AuthCookies.Substring(AuthCookies.IndexOf("JSESSIONID=") + 11);
        JSESSIONIDCookie = JSESSIONIDCookie.Substring(0, JSESSIONIDCookie.IndexOf(";"));
        createDefectRequest.CookieContainer.Add(new Cookie("JSESSIONID", JSESSIONIDCookie) { Domain = target.Host });*/

        //createDefectRequest.CookieContainer.Add(new Cookie("LWSSO_COOKIE_KEY", SSOCookie) { Domain = target.Host });

        /*string QCSessionCookie = AuthCookies.Substring(AuthCookies.IndexOf("QCSession=") + 10);
        QCSessionCookie = QCSessionCookie.Substring(0, QCSessionCookie.IndexOf(";"));
        createDefectRequest.CookieContainer.Add(new Cookie("QCSession", QCSessionCookie) { Domain = target.Host });

        string UserCookie = AuthCookies.Substring(AuthCookies.IndexOf("ALM_USER=") + 9);
        UserCookie = UserCookie.Substring(0, UserCookie.IndexOf(";"));
        createDefectRequest.CookieContainer.Add(new Cookie("ALM_USER", UserCookie) { Domain = target.Host });

        string TokenCookie = AuthCookies.Substring(AuthCookies.IndexOf("XSRF-TOKEN=") + 12);
        TokenCookie = TokenCookie.Substring(0, TokenCookie.IndexOf(";"));
        createDefectRequest.CookieContainer.Add(new Cookie("XSRF-TOKEN", TokenCookie) { Domain = target.Host });*/

        #endregion

        HttpWebResponse createDefectResponse = (HttpWebResponse)createDefectRequest.GetResponse();
        createDefectResponseURL = createDefectResponse.Headers.Get("Location");

        LogOutHPALM();

        return createDefectResponse.StatusCode;
    }

    public static string GetDefectId(string createDefectResponseURL)
    {
        if (!String.IsNullOrEmpty(createDefectResponseURL))
        {
            string defectId = createDefectResponseURL.Substring(createDefectResponseURL.LastIndexOf('/') + 1, (createDefectResponseURL.Length - (createDefectResponseURL.LastIndexOf('/') + 1)));

            return defectId;
        }

        return null;
    }
}

Thank you in advance !

Best regards,

Gary

How to fetch Testcase being executed from scheduler ?

$
0
0

Hello 

 

I have a two part query. 

 

1. How one can get the test case being run via ALM Scheduler using OTA. Intention is to get the Current testcase under execution initiated by ALM Scheduler. 

2. If Query#1 if at all possible, is there any possibility to fetch the Target Cycle Assigned to Testcase being run by the scheduler ?

 

Any help or guidance will be appreciated. 

 

Thanks in advance. 

 

Anyone seen this error before?

$
0
0

Attempting to create a new linked project from a template. The template project has gone offline as well, which is a bit worrying to say the least...

oops.png

Attachments at step level via REST

$
0
0

Hi!

I am building a library for QC, and I am having trouble uploading files at step level.

I already have made attachments through defects and test case level, but I am not being able to attach files via REST at step levels.

This is for example what I made to attach at run level:

/qcbin/rest/domains/DEFAULT/projects/TestProject/runs/2/attachments

using POST as a multipart form data, perfect, but when I do try with steps:

/qcbin/rest/domains/DEFAULT/projects/TestProject/runs/2/run-steps/1/attachments

 

I get error 404, even though /qcbin/rest/domains/DEFAULT/projects/TestProject/runs/2/run-steps/1 exists, and steps in QC has attachments, I am not being able to attach files with it. Is it different than how it works with both defects and runs?

I am using Java with Apache fluent, all the rest is ok, but at step level I can't manage to make it work

 

If someone could help me with that, I will be very glad!

 

Thanks :) .

 

 

Config PPM to new AD server

$
0
0

Hi experts,

We have new AD server, and need to link PPM to it.

Can help to advise what we need to change? Is it done via Admin Console or kConfig.sh?

Thanks for your help!


Calculate Defect TAT

$
0
0

I am looking for a query that can be used to calculate the Defect Turnaround time of a defect which satisfies the following condition.

TAT is calculated based on the time difference between Defect status = "new" and Defect Status "For Retest".

If Defect was raised against A and defect was closed against B , then the TAT hours should be calculated from only the time when the defect was assigned to B and not A until the defect was moved to retest.

 

I am using HP ALM tool.

Problem OTA 64 bits

$
0
0

Has anyone found any solutions to the OTA 64bit problem?
I am using ALM 12.53 and this problem remains, I can only run with office 32bits.

QTP scripts is not running when we running the script by using OTA

$
0
0

QTP scripts  is not running when we running the script by using OTA.attaching the screen shot.Please help me on this.

XTools.Run to Invoke batch file. Code working with ALM 12 but not with ALM SaaS Trial.

$
0
0

I have used XTools.Run to Invoke a batch file from VAPI-XP test in Test Plan. Same code is working with ALM 12 Desktop version but not working with ALM SaaS Trial. Batch file is not getting invoked. What could be the possible reason? Help me in troubleshooting the same.

Export to Excel from Test Lab

$
0
0

I've seen a lot of similar problems on here but none that have clearly articulated the solution to extracting the Test Cases and their Test Steps from the Test LAB to an Excel spreadsheet.

Given the noise on the subject, why hasn't HP developed an extract that does this from the menu?

The problem I have is that I've a lot of Test Cases in the Test LAB which have been executed but they have no corresponding library entries in the Test Plan and I need to retro-fit the information.

Anything anyone can suggest (that works!) would be really helpful.

 

Viewing all 5491 articles
Browse latest View live


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