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

One Directional Update and ALM sync

$
0
0

I am trying to get some help from the forum members to update ALM and keep it in sync with a 3rd party defect management system. 

Are there HP approved tools to enable an one directional update of the details populated on the external 3rd party tool into ALM? 

Appreciate your response. 

 


Automatically navigate to tab pageno

$
0
0

I have a need to logically, in the Defects Workflow, take a user to another tab/page.  Both in the Grid flat view and the Defects dialog module.  The new tab is generated by a Memo Field.

Is this even possible?  I have looked for focus and navigation possibilities, trying to invoke a HTML link as if i pressed the tab, and nothing seems available to get a user automatically navigated over to another tab.

I have attached a couple of screen shots.

Michael A.

Control Defect Comments without Adding New History Comments

$
0
0

I had the need that a lot of us have had with ALM, preventing historically entered Comments from being modified.  HP ALM is one of the few systems I have seen that allow this, as usually once a Comment is entered it is forever preserved and read-only.

A lot of posts I found here dealt with adding a new History Comments Memo Field, and using that solely for retention of all Comments.  While only using the original Dev_Comments field as a purely input mechanism only.  In our company we synchronize HP ALM with our TeamForge Development System.  This is a two-way sync.  And even though, through a lot of work in both systems, i could have implemented the Forum's History Comments functionality, i really wanted to preserve the original Dev_Comments field, but provide only Appending Comments while preventing modifications of existing Comment entries.

After weeks of trial and error, and constanlty reading all the Forums posts dealing with Comments, i finally came up with a solution i really like.  I wanted to share my solution with the Forum.  The example code refers to Defects, but I also implemented in Requirements too.

Here is what I have done and the instructions on how to use - 

  1. Modified System Field Comments Project Entity field to Sanitization Type = None.  This is necessary due to HP ALM always wanting to constantly modify certain HTML tags whenever it sees them, every single update.  This constantly affects existing historically entered Comments and I needed to stop any and all modifications of existing Comments 100% of the time.  This prevents that from happening anymore.
  2. Created new Memo field RQ_USER_25 and field BG_USER_25 Label = "Add New Comments".  The Memo Field creates a new tab in Defects and Requirements areas where we logically make the tab Visible.
  3. Logically have made all of the original Comments Fields Read Only, no one can enter anything in them anymore.  Only view.
  4. To enter/add comments now -

When on a list of items, the flat Grid of items -

  1. Go to Comments tab and click the Add Comments button.
  2. The "Add New Comments" tab will now be visible at the end of the other tabs along the bottom of the browser window.
  3. Enter whatever you want in the "Add New Comments" tab.  Everything and anything is acceptable.  As the original Comments worked, images and attachments are automatically created as Attachments, not embedded in text area.
  4. When you navigate away from the item you entered text for on the "Add New Comments"  tab the text will now be APPENDED to the existing Comments field, with an automatically generated header line consisting of Full Name, User Name, Current Item Status, Date, and Time, then the contents of the "Add New Comments" tab will be cleared, and the "Add New Comments" tab will be removed.

When in the Detail Dialog -

  1. Go to the Comments tab and press the Add Comments button.
  2. The "Add New Comments" tab will now be visible next to the Detail tab at the top of the browser window.
  3. Enter whatever you want in the "Add New Comments" tab.  Everything and anything is now acceptable. As the original Comments worked, images and attachments are automatically created as Attachments, not embedded in text area.
  4. When you when you press Submit/OK the item you entered text for on the "Add New Comments"  tab text will now be APPENDED to the existing Comments field, with an automatically generated header line consisting of Full Name, User Name, Current Item Status, Date, and Time, then the contents of the "Add New Comments" tab will be cleared, and the "Add New Comments" tab will be removed and no longer available on any subsequent Detail Dialog.
  5. TF Comments will continue be appended as they always have. 

The only thing I do not like about this new functionality is that when the Add Comments button is pressed that I cannot get the application to automatically navigate to the new Add New Comments tab.  But still, all in all, I think this is a very good solution.

Workflow Code Examples:


Function ActionCanExecute(ActionName)

......
if ActionName = "ReqAddDevCommentsAction1" then
  Req_Fields.Field("RQ_USER_25").IsVisible = true
  Req_Fields.Field("RQ_USER_25").IsReadOnly = false
  Bug_Fields.Field("BG_USER_25").IsVisible = true
  Bug_Fields.Field("BG_USER_25").IsReadOnly = false
end if

......

Sub Bug_New

  …..

    Bug_Fields.Field("BG_DEV_COMMENTS").IsReadOnly = True

    Bug_Fields.Field("BG_USER_25").IsVisible = false

    Bug_Fields.Field("BG_USER_25").IsReadOnly = true

  …..

Sub Bug_MoveTo

  …..

    Bug_Fields.Field("BG_DEV_COMMENTS").IsReadOnly = True

    Bug_Fields.Field("BG_USER_25").IsVisible = false

    Bug_Fields.Field("BG_USER_25").IsReadOnly = true

…..

Sub Bug_CanPost

…..

  If Bug_Fields.Field("BG_User_25").Value <> "" then

     Bug_AddToComments

  end if

…..


Sub Bug_AddToComments

newComment = Bug_Fields.Field("BG_USER_25").Value
origComment = Bug_Fields.Field("BG_DEV_COMMENTS").Value

' Remove ending </body>... from new comment
lngPos = instr(newComment,"</body>") - 1
if lngPos > 0 then
newComment = left(newComment,lngPos)
end if

lngPos = instr(newComment,"<body>")
if lngPos > 0 then
newComment = mid(newComment,lngPos + 6 )
end if

' Append Comment Separator, Name, Date, and Status to new Comments
if origComment = "" then
newLeadIn = "<html><body><div align=""left"" style=""min-height: 9pt; "">"
else
newLeadIn = Chr(10) & "<div align=""left"" style=""min-height: 9pt; "">" & _
"<font face=""Arial""><span style=""font-size:8pt""><br /></span></font>" & _
"<font face=""Arial"" color=""#000080""><span style=""font-size:8pt"">" & _
"<b>________________________________________</b></span></font>"
end if

newComment = newLeadIn & _
"<font face=""Arial""><span style=""font-size:8pt""><br /></span></font>" & _
"<font face=""Arial"" color=""#000080""><span style=""font-size:8pt"">" & _
"<b>" & fullname & " &lt;" & username & "&gt;, Status-" & _
Bug_Fields.Field("BG_USER_02").Value & _
", " & now & ":</b>" & _
"</span></font>" & _
newComment & _
"</div>"

lngPos = instr(origComment,"<body>")
if lngPos > 0 then
' Resume Next
else
origComment = "<html>" & Chr(10) & "<body>"
end if

lngPos = instr(origComment,"</body>") - 1
if lngPos > 0 then
origComment = left(origComment,lngPos)
end if

Bug_Fields.Field("BG_DEV_COMMENTS").IsReadOnly = false
Bug_Fields.Field("BG_DEV_COMMENTS").Value = origComment & newComment & _
"</body></html>"
Bug_Fields.Field("BG_DEV_COMMENTS").IsReadOnly = true
Bug_Fields.Field("BG_USER_25").Value = "reset"
Bug_Fields.Field("BG_USER_25").Value = ""
Bug_Fields.Field("BG_USER_25").IsReadOnly = true
Bug_Fields.Field("BG_USER_25").IsVisible = false

End Sub

Script saved from UFT in ALM (into Test Plan) is giving Permission issues

$
0
0

When a New Test is created in Test Plan with type QUICKTEST_TEST, The window accepts all the permissions to provide... and will be saved

 

When a New test is saved from UFT in ALM... We are seeing permission_issues...

When I try to import the test that was created via UFT into Test Lab i'm receiving following error....

msg6: you are not a member of the Owner or Modify Workgroup for this item. You cannot add cut,copy,modify or delete....

How to overcome this permission problem

Workflow to insert a row in History

$
0
0

I have a custom workflow button that allows a user to send a customized eMail from a Requirement.  That works, but I'm now being asked to have it log a record in that Requirements History when that eMail is sent.

I have found some examples in the OTA guide, but I can't seem to port that over to Workflow only use.

 

Oh, I'm on ALM 12.01

Thanks, for any help you could provide.

No useful answer to a common problem...

$
0
0

HP doesn't monitor these forums...no surprise.

Update Manual Step Status using VAPI-XP-Test Script?

$
0
0

In my VAPI-XP-Test Script, I'm currently 'adding a step to run' and reporting its status using:

AddStepToRun(Name, [Desc], [Expected], [Actual], [Status])

However, I'm wondering if the VAPI-XP-Test Scripts can allow me to interact with a manual step (that was defined in the 'Design Steps' in Test Plan) and update the 'Passed' / 'Failed' status of that step? (I'm using ALM 12.2)

I'm hoping if there's a method similar to 'AddStepToRun'  that will update the status of manual steps defined:
Manual Test Step Status Update.png
 

This would really help us in converting our manual test cases to 'automated tests'

Best Regards,
Ahmad
Test Automation Developer, RBC

Can't download ALM HP 12.50

$
0
0

Everytime I try to download it , I get an error message saying that there is not enough space (they need 8gigs) on my computer to download it. I am new to all this so I do not know what they mean by  that. My computer has more than enough space available . 


Not able to connect to End point 2 Clear Quest in HP ALM Synchronizer client.

$
0
0

Please find the below details and provide me the inputs.I need to sync the HP ALM defects to CQ defects.

I have installed the HP ALM synchronizer server,Synchronizer Client and Clear Quest Clinet on one of the servers.

For the connection In the End point 1, i gave my user id,password,HP ALM details like ALM URL,Domain and Project.

For the Endpoint 2 there are only details like user id,password,Database,SchemaRepository.

But no where we are entering DB server name or Clear Quest Url so how to get connected.

Below is the error :

ERROR #1- adapter.CONNECTION_FAILURE : Failed to connect to endpoint of type ClearQuest. Error: com.mercury.qc.gossip.exp.GossipServerException: adapter.CONNECTION_FAILURE : Failed to connect to endpoint of type ClearQuest. Error: com.hp.qc.synchronizer.adapters.exceptions.AdapterConnectionException: Failed to connect. Reason: AutomationException: Class not registered..

ERROR #2- adapter.CONNECTION_FAILURE : Failed to connect to endpoint of type ClearQuest. Error: com.hp.qc.synchronizer.adapters.exceptions.AdapterConnectionException: Failed to connect. Reason: AutomationException: Class not registered.

ERROR #3- Failed to connect. Reason: AutomationException: Class not registered

ERROR #4- AutomationException: Class not registered 

 

 

 

Adding New Templates in ALM 12.53

$
0
0

Hi All,

I have customized a project in ALM 12.53 and now I want to create a new Template by copying customization from this project. But i dont have the option "Create a template by copying customization from an existing project" instead i have "Create a template by copying data from an existing project". Will this option serve my purpose?

Thanks in advance,

Sanjeev

HP ALM Migration Documentation

$
0
0

Hi all

We're doing a project where we have to migrate old projects from HPQC 9.2 to end up in a HP ALM 12.5.

Our setup is the following:

- Source server (HPQC 9.2)
- Stage server 1 (ALM 11)
- Stage server 2 (ALM 11.52)
- Destination server (ALM 12.5)

Overall process:
1. We get a backup/restore from source server to stage server 1 which we import, verify and upgrade to 11 (we also do some project specific cleanup)
2. We do backup/restore of the 11 version project and import it to 11.52 site admin, verify and upgrade it.
3. We do backup/restore of the 11.52 version and import it to 12.5, verify and upgrade it.

So now my questions is: Where is "all" HP standard documentation on best practices etc. on how to do this? I tried looking for it and can only find KM1007069 which covers upgrade from 9.2 to 10 or 11. But can anyone help me find the rest?

Thanks in advance.
Br,

Bjarke

Requirements to Test configurations report

$
0
0

Hi All, 

Is there any way to generate the requirement coverage report based on Test configurations. We have below scenario Req 1 is linked to Test A. Test A have mutiple test configurations(C1,C2,C3). If we execute Test configuration C1 the req coverage status is showing as Not Completed since other Test configurations are not executed. So is there any report that shows the requirement coverage to test configurations?? 

We are using ALM 11 

HP QC Object variable or With block variable not set (Error 91)

$
0
0

Hello

I have the postscript that runs perfectly if i have only one querry, but if I add another one, it will give the error msg. Then it will open excel and show me where is the rror but i cant figure out how to repair it. I tried to putt it to "With" "End With" but with no luck

 Sub QC_PostProcessing()
 Dim MainWorksheet As Worksheet
 Set MainWorksheet = ActiveWorkbook.Worksheets("3b")
 Dim DataRange As Range
 Set DataRange = MainWorksheet.UsedRange

' Now that you have the data in DataRange you can process it.
    Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
    With Selection
        .HorizontalAlignment = xlGeneral
        .VerticalAlignment = xlBottom
        .WrapText = True
        .Orientation = 0
        .AddIndent = False
        .IndentLevel = 0
        .ShrinkToFit = False
        .ReadingOrder = xlContext
        .MergeCells = False
    End With
    With Selection
        .HorizontalAlignment = xlGeneral
        .VerticalAlignment = xlBottom
        .WrapText = False
        .Orientation = 0
        .AddIndent = False
        .IndentLevel = 0
        .ShrinkToFit = False
        .ReadingOrder = xlContext
        .MergeCells = False
    End With
    Selection.AutoFilter
    ActiveWorkbook.Worksheets("3b").AutoFilter.Sort.SortFields.Clear
    ActiveWorkbook.Worksheets("3b").AutoFilter.Sort.SortFields.Add Key:=Range( _
        "B:B"), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:= _
        xlSortNormal
    With ActiveWorkbook.Worksheets("3b").AutoFilter.Sort
        .Header = xlYes
        .MatchCase = False
        .Orientation = xlTopToBottom
        .SortMethod = xlPinYin
        .Apply
    End With

 Dim MainWorksheet1 As Worksheet
 Set MainWorksheet1 = ActiveWorkbook.Worksheets("open")
 Dim DataRange1 As Range
 Set DataRange1 = MainWorksheet1.UsedRange

    Sheets("open").Select
    Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
    With Selection
        .HorizontalAlignment = xlGeneral
        .VerticalAlignment = xlBottom
        .WrapText = True
        .Orientation = 0
        .AddIndent = False
        .IndentLevel = 0
        .ShrinkToFit = False
        .ReadingOrder = xlContext
        .MergeCells = False
    End With
    With Selection
        .HorizontalAlignment = xlGeneral
        .VerticalAlignment = xlBottom
        .WrapText = False
        .Orientation = 0
        .AddIndent = False
        .IndentLevel = 0
        .ShrinkToFit = False
        .ReadingOrder = xlContext
        .MergeCells = False
    End With
    Selection.AutoFilter
    ActiveWorkbook.Worksheets("open").AutoFilter.Sort.SortFields.Clear
    ActiveWorkbook.Worksheets("open").AutoFilter.Sort.SortFields.Add Key:=Range( _
        "B1:B3"), SortOn:=xlSortOnValues, Order:=xlDescending, DataOption:= _
        xlSortNormal
    With ActiveWorkbook.Worksheets("open").AutoFilter.Sort
        .Header = xlYes
        .MatchCase = False
        .Orientation = xlTopToBottom
        .SortMethod = xlPinYin
        .Apply
    End With
 End Sub

Evaluation of HP ALM tool

$
0
0

Hi Team,

We are in the process of evaluating the HP ALM Application to use in the DevOps category.

Would like to know alike other vendor tools like IBM Rational CLM, etc. Does HP ALM has source code management capability ?

Workitem Management Capability ?

Build and Release Capability ?

It would be great to know how to achieve the complete application lifecycle by making use of HP ALM.

Hide defect fields in HP ALM (12.2) based on the drop down Field

$
0
0

Hi All -

I am customizing the defect screen with additional type (category) as "Action Items" for which i have managed to render the fields based on the selection from the Type field. (i.,e, If its defect type, then set of fields will be displayed and if its "action item" type different set (w.r.t action items) of fields will be displayed to an user.

My issue is when i try to edit the defect type "Action Item", then all the fields that are applicable for defect type "defect" is being displayed which is causing confusion to the user.

For ex, after selecting an "Action Item" that was created earlier and try to edit the field severity (upon selecting severity dropdown list), other fields that are applicable for defect type "defect" is also being displayed. The wierd thing is i have the workflow script (Defects_Bug_New, Defects_Bug_FieldChange(FieldName) &  Defects_Bug_MoveTo) updated for hiding the fields based on the defect type's (defect, action item in this case).

Any suggestions would be of great help. thanks in advance for your time & suggestions!

 

 


Filter Results in REST API for Audits

$
0
0

Hi.

 

Currently I'm accessing the audit history via REST API in ALM 11.52.724 with the following URL:

https://www.xyz.com/qcbin/rest/domains/xyz/projects/xyz/audits?query={parent-type[defect];time[>='2016-08-01']}

which works fine.

But I want to reduce the amount of returned results by more filtering.

I'm looking for a filter string to filter by the "New Value" of the audit entry, but I didn't find any reference nor a similar problem in the forum.

Is there something like e.g.:"...?query={parent-type[defect];new-value[Alice OR Bob]}"?

Thx

OTA Customization.Lists object. How to get a list of lists

$
0
0

Hi all

I have struggled for a while, but cannot get a list of the Project Lists from the Customization.Lists object.

there seems to be no methods to do this?

Any ideas?

 

thanks

Fetch Defects that are in retest from QC using ALM Workflow script

$
0
0

I'm working on adding a button to defect screen and on clicking that button a email has to be sent with all the dfects that are in retest.

I couldn't find whats the table i need to refer and what are the columns in that. in customize project i navigated to Business view to get query but that also doesn't worked.

then in customize project, i navigated to project entities to find the field name in defects and that also doesn't worked out for me. 

I'm a site administator and also project administator,help me to connect to the database that is in ALM or help me with a smaple code to execute such kinda task in Script. Thanks in advance

 

(I'm new to QC sorry for not providing much infor)the code i used is:
Function ActionCanExecute(ActionName)
dim tdc
dim header
dim body
set tdc = TDConnection
Dim DefSet
On Error Resume Next
ActionCanExecute = True

If ActionName = "UserDefinedActions.Defects_Action2" Then
com1.CommandText ="Select BG_BUG_ID FROM Bug_Fields"
header= "Mail header"
body= "Mail Body"

Set DefSet = com1.Execute

For i = 0 To DefSet.RecordCount -1
body=body & " " & DefSet.FieldValue("BG_BUG_ID") & i
DefSet.Next
Next

tdc.SendMail "to@send.com","from@test.com",header,_
body,NULL,"HTML"
tdc = nothing
MsgBox "mail Sent"
End If

On Error GoTo 0

End Function

initially i tried by fetching all defect because there were only 10 defects in this test project

How to add existing test cases into test set using REST API

$
0
0

hi,

I have a bunch of test cases in several folders, I need to add a given array of test cases into given test set.

How can I do that using REST API?

I code in Ruby, but I guess it does not matter, I can convert code in any language into Ruby.

Any help is appreciated.

Thanks in advnace.

Display FullName in Test Lab

$
0
0

Hi,

I am looking for a help in displaying full name in Test Lab. I did created 2 custom fields in Test Instance 

Field 1 # Responsible Tester (Full Name) - TC_USER_03

Feild 2 # Tester (Full Name) - TC_USER_04

Now what I want is when any one enters Tester Name in Responsible Tester (TC_TESTER_NAME) column, its full name should be displayed in TC_USER_03 column. At my project user ID is only displayed instead of full name. I have created following code but it is not working fine.

Thank you for your kind help on this.

Sub TestSetTests_FieldChange(FieldName)
On Error Resume Next
TestLab_Full_Name


On Error GoTo 0
End Sub


Sub TestLab_Full_Name
On Error Resume Next

Msgbox TC_TESTER_NAME

if TestSetTest_Fields("TC_TESTER_NAME").IsNull then
Msgbox "TC_TESTER_NAME IS NULL"

Else
DIM PersonAssigned

PersonAssigned = PersonAssignedName(TestSetTest_Fields("TC_TESTER_NAME").Value)
Msgbox PersonAssigned
TestSetTest_Fields("TC_USER_03").IsReadOnly = False
TestSetTest_Fields("TC_USER_03").Value = PersonAssigned
TestSetTest_Fields("TC_USER_03").IsReadOnly = True
End If

On Error GoTo 0
End Sub

'Now create a function PersonAssignedName

Function PersonAssignedName(UserID)
On Error Resume Next

DIM TD, PerAss, AssUsers, PAUser
set TD = TDConnection
Set PerAss = TD.Customization
Set AssUsers = PerAss.Users
Set PAUser = AssUsers.User(UserID)
PersonAssignedName = PAUser.FullName

On Error GoTo 0
End Function

 

Viewing all 5491 articles
Browse latest View live


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