# PTL and test groups

**URL:** https://community.openpbs.org/t/ptl-and-test-groups/491
**Category:** Developers
**Created:** [March 31, 2017, 10:37pm UTC](https://community.openpbs.org/t/ptl-and-test-groups/491 "2017-03-31T22:37:42Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![bhroam](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/bhroam/32/20_2.png) [@bhroam](https://community.openpbs.org/u/bhroam)
#### Post date: [March 31, 2017, 10:37pm UTC](https://community.openpbs.org/t/ptl-and-test-groups/491/1 "2017-03-31T22:37:42Z")

</div>

I find myself needing to submit a job in a particular group. I see that there are group variables (e.g, TESTGRP1) like the user variables (e.g., TEST\_USER1). I just don’t see how I can use them. I know that I use one of the user ones by passing it as the first argument to Job(). I looked at the Job() class and it doesn’t take an equivalent group parameter. I tried to set the group\_list attribute with the value of TESTGRP1, and it complained there was no such variable.

The only way I can see to use the groups that are predefined is to use the quoted string name instead of a global define. It would cause test failures if we ever changed the name of the groups.

Any help would be greatly appreciated.

Bhroam

---

<div class="post-metadata">

### Author: ![hirenvadalia](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/hirenvadalia/32/19_2.png) [@hirenvadalia](https://community.openpbs.org/u/hirenvadalia)
#### Post date: [April 3, 2017, 7:13am UTC](https://community.openpbs.org/t/ptl-and-test-groups/491/2 "2017-04-03T07:13:54Z")

</div>

> [@bhroam](#):
>
> I tried to set the group\_list attribute with the value of TESTGRP1, and it complained there was no such variable.

Hey @bhroam This should work fine with little modification in group name as its TSTGRP1 not TESTGRP1.  
Can you please try with TSTGRP1? and if you still face an issue please send me PTL logs I will look into issue.

---

<div class="post-metadata">

### Author: ![bhroam](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/bhroam/32/20_2.png) [@bhroam](https://community.openpbs.org/u/bhroam)
#### Post date: [April 3, 2017, 6:19pm UTC](https://community.openpbs.org/t/ptl-and-test-groups/491/3 "2017-04-03T18:19:21Z")

</div>

@hirenvadalia  
Thanks for the help. It was indeed a typo (TEST vs TST) that caused my issues. I’m curious, is there some reason TST was chosen instead of TEST? I guess I assumed it would follow that if TEST\_USER had the ‘E’, so would the group.

Bhroam

---

<div class="post-metadata">

### Author: ![agurban](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/agurban/32/67_2.png) [@agurban](https://community.openpbs.org/u/agurban)
#### Post date: [April 3, 2017, 7:11pm UTC](https://community.openpbs.org/t/ptl-and-test-groups/491/4 "2017-04-03T19:11:27Z")

</div>

If we’re going to be incorporating PTL into our product at some point,  
this kind of inconsistency should be fixed.

-Anne

---

<div class="post-metadata">

### Author: ![hirenvadalia](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/hirenvadalia/32/19_2.png) [@hirenvadalia](https://community.openpbs.org/u/hirenvadalia)
#### Post date: [April 5, 2017, 5:09am UTC](https://community.openpbs.org/t/ptl-and-test-groups/491/5 "2017-04-05T05:09:46Z")

</div>

I agree anne. Can you please file an ticket for same? Thanks.

---

<div class="post-metadata">

### Author: ![hirenvadalia](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/hirenvadalia/32/19_2.png) [@hirenvadalia](https://community.openpbs.org/u/hirenvadalia)
#### Post date: [April 5, 2017, 5:15am UTC](https://community.openpbs.org/t/ptl-and-test-groups/491/6 "2017-04-05T05:15:01Z")

</div>

Hi @bhroam I don’t think there particular reason behind choosing TST instead TEST… Right now I can only think one point that to separate out user vs group name.  
However as @agurban told we should have consistency in name so that it won’t confuse test writer in future.

---

<div class="post-metadata">

### Author: ![agurban](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.openpbs.org/agurban/32/67_2.png) [@agurban](https://community.openpbs.org/u/agurban)
#### Post date: [April 6, 2017, 7:37pm UTC](https://community.openpbs.org/t/ptl-and-test-groups/491/7 "2017-04-06T19:37:51Z")

</div>

I’ve filed PP-743 - “Use consistent naming for PTL components” for  
this problem.

Regards,  
-Anne
