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

Custom Test case Priority changes based on Requirement Priority.

$
0
0

Hi,

I am configuring the Test case Priority(Custom Field) based on the requirement priority.

The requirement in detail is:

Case 1: Requirement A having priority of 4, when we link this requirement with test case B, the requirement priority of 4 should automatically populate in Test case Priority field as priority 4.

Case 2: Requirement A1 has priority of 4, requirement A2 has priority of 3, requirement A3 has priority of 5. When we link all these requirements to Test case B, the average of A1, A2, A3 should be calculated and round of this value is posted back to Test case Priority field automatically when the field changes.


For the first case I have added the below in the Test case fieldchange for the case 1:

If FieldName = "TS_USER_02" Then
Select Case Req_Fields.Field("RQ_REQ_PRIORITY").Value

Case "1"
Test_Fields("TS_USER_02").Value = "1"

Case "2"
Test_Fields("TS_USER_02").Value = "2"

Case "3"
Test_Fields("TS_USER_02").Value = "3"

Case "4"
Test_Fields("TS_USER_02").Value = "4"

Case "5"
Test_Fields("TS_USER_02").Value = "5"

Case "6"
Test_Fields("TS_USER_02").Value = "6"

Case "7"
Test_Fields("TS_USER_02").Value = "7"

Case "8"
Test_Fields("TS_USER_02").Value = "8"

Case "9"
Test_Fields("TS_USER_02").Value = "9"

End Select
End If


But the above code is not working.

Please let me know if there is a way to address this issue. Also please let me know the possibilities of implementing the both the cases.

 

Thanks,


Viewing all articles
Browse latest Browse all 5491

Trending Articles



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