How do I get User details other than name from Test Plan Owner with RPE?
Exposed under testplan/owner i get a user id and resource URI
feeding this resource URI into a new QM Schema returns no results and when I try and use a QM Feed on contributor I get a list of URIs that have the jts unique ID which is not the same as the user id in QM.
I have also tried feeding this resource URI into a new RTC Schema and it is unable to resolve.
The reason I need to do this is within our system the User Id that comes out under testplan/owner reflects the system login id and in the case of some users this is justa series of letters and numbers. However their fullname is stored on the server and interestingly when I pull out owner from an RTC schema I get the fullname.
Accepted answer
https://localhost:9443/qm/.service......./resources/Project Alias/contributor?fields=feed/content/contributor[userid='U2377']/name
or
https://localhost:9443/qm/.service......./resources/Project Alias/contributor?fields=feed/content/contributor[userid='U2377']/*
One other answer
One example:
var pos=TestPlanURL.indexOf(/testplan/);
var conURI=TestPlanURL.substring(0,pos);
conURI=conURI + "/contributor?fields=feed/entry/content/contributor[userid='" + _value + "']/name";
conURI;
From the new data source(feed schema), use feed/entry/content/contributor/name to get the user's name.
Comments
in this case what is TestPlanURL?
I'm assuming you can use the normal QM Schema and not the Feed Schema to get testplan/owner/_value?
TestPlanURL is an internal variable that holds the value of testplan/identifier. You can directly use testplan/identifier.
In my case, I have used feed/entry/content/executionworkitem/owner/_value (feed schema). You may first check if you get the value for testplan/owner/_value in your template. (To test it, use a text element and print the value). If yes, you CAN use it.
Note: You can design the template in many ways (for same output).
The contributor feed just seems to output a list of all the users in my database.
If I output XonURI I get the following:
https://localhost:9443/qm/.service......./resources/Project Alias/contributor?fields=feed/content/contributor[userid=U2377]/name
So it looks like the filter part isn't working?