Quantcast
Channel: PTC Community : Popular Discussions - Integrity
Viewing all 3432 articles
Browse latest View live

branch locking

$
0
0

How can I lock down a branch in Integrity ? 


Passing information from Test result to Defect during Defect Creation

$
0
0

Hello,

I am attempting to setup some defect item automation when it is created from a test session via test result editor.  I would like to use "Create Related" in Test Result Editor to create a defect.  In createing a defect, I would like to setup fields in the defect item based on it being generated from a Test Session.

 

Is there a way to pass information from the test result to the newly posted defect item that was created via Create Related?

 

Is there a way to do this via Custom Action?  I've run set command via custom action and I don't see any MKSSI_ISSUE0.

 

It seems that the defect item can be updated after it has been created via defectDeltaBean.getRelatedTestResultBeans().  But this requires a second trigger to run sometime after defect has been created.

 

There needs to be a getNewRelatedTestResultBeans() function.

how do I set Transaction Context in triggers

$
0
0

There is a script command called getTransactionContext in the Server Bean.  In the description, it mentions a map that can be used to pass information from one script to the next during a transaction.  I cannot find how to set or add to this map however.

 

Would someone please let me know how to add to this map?

 

Thanks

 

Mark

"cannot convert null to an object" in a triggerscript

$
0
0

Hi @all,

 

i'm now outing me as a non-programmer

We have following problem: in an item were three datefields. The first field should be filled by the user, and the other two fields should be computed by a rule. Because filling a datefield by a computation it is not editable anymore we wanted to use a trigger to do this.

 

This works fine unless the user doesnt fill the first datefield. Then we get a javascript error:

 

"Internal Error: undefined: Cannot convert null to an object."

 

Here comes the code from the triggerscript:

 

try

{

    var issue = bsf.lookupBean("imIssueDeltaBean");

    var params = bsf.lookupBean("parametersBean");

    var fieldDueDate = params.getParameter("Startfeld");

    var CompValue = params.getParameter("Anzahl Tage");

    var targetField = params.getParameter("Zielfeld");

}

 

function main()

{

    var StartDate = issue.getNewFieldValue(fieldDueDate);

    var StartDate = new Date().setTime(StartDate.getTime()+(CompValue*24*60*60*1000));

    issue.setFieldValue(targetField, StartDate); // set field to due date   

    }

}

 

The red line is the one which causes the error.

 

The Trigger-Config has three fields:

  • "Startfeld" (the first datefield),
  • "Zielfeld" (the target datefield)
  • "Anzahl Tage", which holds the Number of days to compute with.

 

So how we get rid of this Javascript-Error? First we tried to catch an empty field by the trigger-rule with looking for a "Startfeld" != -unspecified-

but this doesnt work. So we tried to get this in the script by an if-statement in the main-function like:

 

if (fieldDueDate != null)

 

but this has no effect, this if-Statement is always false.

Other if-Statements were

 

if (!fieldDueDate)

 

or

 

if (!isNaN(fieldDueDate))

 

are always true, so we never get into the function. Can someone help me, please ? Thanks in advance...

 

kind regards, Jens


Detect if is binary or text ?

$
0
0

 

Hello,

There is any CLI command in MKS Integrity 9.6 for detect if a new member must be added as binary instead of text ?

Some files are automatically detected as binary when you try to add them as text (e.g. doc, pdf) if contains null characters and have lines longer than 16 kB (have line terminators separated by more than 16 kB within the file).

Integrity - Windchill Integration

$
0
0

Hi All,

 

I have a requirement where I need to Integrate Integrity with Windchill. Has anyone done this before? I am aware of IIP (Integrity Integration Platform) but havn't tried it yet.

 

Related to its videos and documentation, there's not much information available.

 

Can anyone help me out to achieve this?

 

Regards

Nishant Kapoor

detach a long running process from the trigger context that started it

$
0
0

Hi all,

 

I'm looking for a idea how to prevent my integrity server from being "blocked" by along running process during a scheduled trigger.

 

Use case:

I have a schedule IM trigger that runs every midnight. It shall checkpoint a certain number of LARGE SI projects, so our developers can at least "step back" on a daily basis.

 

Currently I use the SI project bean to create the checkpoint, which generally works fine; but

as long as the checkpoint process is running, no other IM trigger can be processed .

 

So i wonder if there is a way to "fork" the checkpoint process from the trigger script.

I do not need any response value, as I simply trust in Integrity to do it's job .

 

I've tried to start a separate OS process and using the command shell API to to the job.

Unfortunately this requires an installed Integrity Client on my Server machine.

 

I appreciate any idea.

Export reports Microsoft Excel

$
0
0

HI,

 

I have few report in MKS 2007. Whne i run those reports in IE 7 or 8.0 and try to export it by right clicking on the report, followiing error is returned:

 

The user name and password associated with the current HTTP request do not match those associated with the current session. Click the following link to go to the main view

 

Could you please help.


add a new member in mks using the java mks api: mksapi.jar

$
0
0

Hello

 

I am working at java tool which connects at the mks source integrity server that add new members in an mks project.

I read the following documentation

{

}

 

and I found java sample code only for connection with the server:

}catch (APIException e) {

###

{

 

IntegrationPointFactory ipf = IntegrationPointFactory.getInstance();CmdRunner cmdRunner;

try {

cmdRunner = ipf.createLocalIntegrationPoint().getCommonSession()

.createCmdRunner();

 

cmdRunner.setDefaultHostname(

"myserver");

cmdRunner.setDefaultPort(7001);

cmdRunner.setDefaultUsername(

"IntegrationUser");

cmdRunner.setDefaultPassword(

"secret");

 

e.printStackTrace();

}

 

However I have not found in the above documentation a sample for adding members in mks source integrity server using the mks java api.

Would you give me a sample code that do that or pointing me another documentation for the mks source integrity java api ?

 

 

 

 

 

 

Best Regards,

 

 

 

Error -MKS Integrity Viewset cannot be found

$
0
0
Error -MKS Integrity Viewset cannot be found (migrated thread) Posted: Apr 13, 2012 5:38 AM

   Jayaram.K    Posts: 1   Registered: Apr, 2012



Hi
I am using MKS 2007 Integrity Client .Earlier it was working properly .But one day when i tried to open it , the following error occurred 'MKS integrity viewset cannot be found' and thereby i am unable to open it.I tried reinstalling but it did not work   
I am using the same MKS software as my colleagues are using .But the Service pack numbers and build numbers are differing .My colleagues are able to open it properly .I have checked with my manager that there is no license related problem also
my Build No: 4.9.0.4652
my Service pack no:007-01

colleagues' Build no :4.9.0.6006
colleagues' Service pack no :011-01

Please help me in solving this problem .Thanks in advance

  

Re: Error -MKS Integrity Viewset cannot be found Posted: Apr 16, 2012 5:13 PM
Posted By:   mlizak    Posts: 72 /  Registered: Feb, 2011  
Hello Jayaram,

It is usually recommended that you use the same version as the server that you are on.  Your system administrator should be able to supply you with the version of Integrity client which matches up to your Integrity server.

Having said that, there are a number of possibilities which could explain this.  Please call Integrity Technical Support if you require further help with this issue.

Regards,
Kael

How do I create a dynamic query?

$
0
0

In other tools that I have used, I could create a prompt to the user to provide input for the query.  For queries, I have found that there is a project filter option that will do what I need in some cases.  However, if I try to create a chart based off of that query, I have not found a way to allow the user to filter by their project.  Furthermore, if I want to filter the query results based on another field besides the project field based on user input, I have not found a good way to do this.

 

Any help would be appreciated.

create a "default" test result using trigger

$
0
0

Hi all,

 

Here the scenario:

 

 

All tests are performed manually using the Test Result Editor, there is no automation framework involved.

 

All our Test sessions are related to a "Device Description" Item that holds the detailed Hardware and Software Setup Information of the tested device used in the Session (where a "device" is one specific combination of several electronic units each with individual Hard and Software).

 

Our test case items contain an optional field "required environment" that basically holds information on what electronic unit(s) must be part of the tested device, so that the testcase is applicable.

 

The test cases are organized in TestSuite Documents e.g. based on function groups.

 

To increase productivity for the Test engineers I would like to have a "default" test result (verdict = NA -not applicable) created automatically for every test case in a session where the "required environment" of the testcase is defined and the values do not match the values defined in the session's "Device Description".

 

To keep a long story short: "If it cannot be tested, mark it as NA"

 

My Idea was to write a trigger script that is fired when the session changed it's state to "in Testing"

 

I how to iterate the test cases using "walkHierarchy" from the ScriptIssueBean,

 

but what would be the best way to create the test results?

 

Thanx for all replys

get a checkpoint with head revision as of this checkpoint

$
0
0

Hello

Given a checkpoint, do you know a way - by command line - to get/download the project as of the checkpoint time and in the head revisions configuration (instead of member revision).

 

To get the the checkpoint and its member revisions as of you can create a build sandbox.

To get the sandbox head revision state, you can checkout the sandbox without lock.

 

I am not sure the check-out of a build sandbox would do what I want.

 

Many thanks

Thierry

Display ViewSet in the client with CLI

$
0
0

Hello,

 

I have to make a viewset available ( as in being displayed) from the CLI.

 

I use integrity fetchviewset to import the viewset and make it available in the client menu ViewSet -> Open. This command makes the viewset to be displayed on the list that appears in the client from the menu ViewSet -> Open and the user has to select it and actually open it for display. But I want to skip this user action and make the viewset to be displayed when he opens the client, without him having to actually open the viewset "manually". Is that possible? I could not find this in the documentation.

 

I am using PTC 10.4 client.

 

Thanks for any help with this!

undocumented commands & options

$
0
0

Hi,

 

i want to make a list for undocumented (hidden) commands. There are many options for the diag command which are not documented like

im/si diag --diag=restart (restarts server)

im diag --diag=fixcpservers --hostname=<aktueller Rechner> --param=<alter Rechner>:<alte Portnummer> --param=<neuer Rechner>:<neue Portnummer> (Change CP servername after changing hostname)

im/si diag --diag=licenses (get an overview about used licenses)

im/si mm -g (display Memory Monitor for client and/or server)

im/si diag --diag=runsql (to direct run sql commands)

im diag --diag=slowqueries (to find slow queries for SQL tuning)

im diag --diag=querieplan (for SQL tuning)

 

--import option for many commands (to set field-values without transition check)

 

Also the "gateway" command is undocumented. i know the following options:

gateway retrieve --documentID="id" (or --query="query") --map="mapping exporter" --iif=outpufile.xml

 

i think that there are many other commands which are very useful for administrators bot not documented.

 

one command i'm searching for is to open the server log and tail it. In the Admin-GUI i can view the server log without open the log file on the server. I think there must be a diag-option to do the same from the CLI. When i have the command maybe i can tail it.

 

it would be nice to have a list of other undocumented commands and options :-)


Can I get a files/versions list based on labels?

$
0
0

I'd like to know si commands for retrieving a list of files and their versions from a Project based on labels on the files themselves. So I'm after a list of all files with a label from a project.

 

I'd like to know a similar cli means of retrieving the files/versions from a Project if the Project checkpoint itself is what is labeled, which might first mean getting the Checkpoint based on the label, then getting the files based on the checkpoint.

useful custom commands

$
0
0

Hi,

 

i'm looking for some useful custom commands.

At the moment we have custom commands for:

 

Copy SI Link to clipboard

Copy IM Link to clipboard

View Sandbox in Windows Explorer

 

i would be pleased if i get some new ideas (or a we can create a list) of useful custom commands (maybe with code)

Attempt to launch MKS Integrity Client Timed out

$
0
0

Hello,

This is my first time with MKS.  We are using MKS Integrity Client, on windows XP.  Installation of mksClient.bin runs fine, but anything I try, I get the following error.

 

Attempt to launch MKS Integrity Client Timed out. To solve this please try the following:

- Verify that the user you are logged in as has read and write permissions to the Integrity Client install directory.

- Make sure the Integrity Client install directory is the very first entry in the path.

 

I'm able to read/write in integrity client install directory, so that cannot be the issue.  Please provide your comments

Traceability between PTC Integrity and Enterprise Architect

$
0
0

Hi,

 

we want to create a connection between Integrity Items from PTC and packages/ elements from Enterprise Architect. Both tools have IDs with which they can be identified clearly. In the forum I read that there are several possibilities to get data out of PTC Integrity such as using command line scripting, running reports, using gateways, web services, API or trigger scripts.

 

My question is, which of these possibilities would you suggest when you want to connect one integrity item with one or more Enterprise Architect package/s or element/ s. Is there a way using a standard feature of PTC Integrity which helps the developer to get that task done with less changes in Integrity or do you suggest a self-made program which writes in each tool the specific ID/s from the opponent's tool to help the user for example to find the suitable UML diagram in the Enterprise Architect for an already open requirement integrity item of PTC Integrity faster?

 

 

Thanking you in anticipation.

 

 

 

Regards

Dan

How to open a URL using Trigger?

$
0
0

Hi,

 

Currently I've a requriement, whenever a defect or item is created I need to open one url via trigger. Let me know what is the code to open an URL via trigger?

 

Thanks & Regards,

shankar

Viewing all 3432 articles
Browse latest View live


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