Unable to create testcase workItem and add it as Linked Item

Description
sourabhc
Posts: 1
Joined: Fri Feb 16, 2018 5:32 am

Unable to create testcase workItem and add it as Linked Item

Postby sourabhc » Fri Feb 16, 2018 5:45 am

Hi,

I am trying to create a linked test case workitem through javascript.But iam uanble to create one.
Can you please help me with code for creating test case work item and add it as liked WI with an exsisiting workitem.

Thanks,
Sourabh

ALMighty
Posts: 80
Joined: Wed Apr 27, 2016 10:34 am
Location: Austria

Re: Unable to create testcase workItem and add it as Linked Item

Postby ALMighty » Fri Feb 16, 2018 1:33 pm

sourabhc wrote:Hi,

I am trying to create a linked test case workitem through javascript.But iam uanble to create one.
Can you please help me with code for creating test case work item and add it as liked WI with an exsisiting workitem.

Thanks,
Sourabh


To be honest I have no clue how to create work items with Javascript but let me ask you: Why you you want to do it with Javascript if there are more thoroghly documented ways?

Because if you want to create workitems programmatically, there are two ways I can recommend and which I have often used:

1.) In the Polarion Web UI itself if we wanted to create work items with a script, we always used Wikipages along with the Velocity language, the methods for creating and modifying WorkItems can mainly be found in the ITrackerService class:
https://almdemo.polarion.com/polarion/s ... rvice.html
Some related Polarion Forum threads that might help you getting into Wikipage (Velocity code) programming:

2.) "Outside" of Polarion Web UI, you could use the Polarion SOAP API and the .jar libraries in the SDK folder for creating the work items within a small Java application. Works pretty neat.
The most important class for that, TrackerWebService, can be found here: https://almdemo.polarion.com/polarion/s ... rvice.html

Though for connecting with the API you will need the SessionWebservice class which you can find here in the Javadoc of the WebServiceFactory class: https://almdemo.polarion.com/polarion/s ... ctory.html

If you anterested in either one of the ways (or both) just let me know, I can help you e.g. in setting a Java project up for utilizing the Polarion SOAP API.
---------------------------------------------------------------------------------------------------
Playing a good game is never lame. :D
Image


Return to “Polarion Application Lifecycle Management (ALM)”

Who is online

Users browsing this forum: No registered users and 2 guests