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

Integrity Webservice client - documentation

$
0
0

Hello,

 

I have a requirement of querying the mks integrity, based on certain filed and fetch the status of that item (Development task).

I am not understanding which webservice i can use, and big confusion in supplying the required inputs...

 

Can you please share the documentation or sample code to query the mks system thru web services.

 

Appreciate your response.


testresult verdict in report

$
0
0

Hi all,

 

I'd like to create a "Test Session Details" report that covers the follow content.

 

1. the sessions meta data (run-date, assigned user, test environment , etc.)

2. the used test case data (Text, Passed/Failed criteria, Category, etc. )

and

2.1 the concrete result (verdict) for this test case in this session

 

#1 and #2 are no problem, but I'm stuck with #2.1.

 

I cannot find a way to filter the results (related to the test case) for the one result (related to this test session)

 

The report run with a single Item selection (namely the Test Session's ID) and looks like this

 

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>

<title>&reporttitle</title>

<%screenStyleSheet%>

<%printerStyleSheet%>

<style type="text/css" media="screen">

.embedded_table th {padding: 2px 8px; background-color: #60607A; color: #FFFFFF; font-weight: bold; text-align: center; vertical-align: top}

.embedded_table td {padding: 2px 8px; }

table.list {border: 0px;}

tr.list {border: 0px;}

td.list {border: 0px;}

table.border {border: 1px solid black; border-collapse:collapse;}

 

 

</style>

</head>

<script type="text/javascript">

var line_count=0;

var REPORT_ISSUES = "";

 

function writeEvenOddTRTag() {

line_count++;

if (line_count%2 == 0)

document.write("<tr class='even_row'>");

else

document.write("<tr class='odd_row'>");

}

</script>

 

<%subparams default="true" %>

<%dateformat%>

<%datetimeformat%>

<%sortby &sortby%>

<body>

<p class="header">&reportheader</p>

<p class="date">as of : &#160;<%currentdate%>&#160;<a class="noPrint" id="RERUNLINK"><img title="Refresh this Report" src="<%hosturl%>RQ_MKS_ALM_2009/refresh.gif"></a></p>

 

<%begindetail%>

<script type="text/javascript">

if(REPORT_ISSUES == "") REPORT_ISSUES = <%<%builtin ID%>%>;

else REPORT_ISSUES = REPORT_ISSUES+","+<%<%builtin ID%>%>;

</script>

 

<table class="detailcols fullWidth">

<tr>

<td class="list">

<!-- start table per item -->

<table class="fullWidth">

<tr>

<th><%Type%>:</b> <a style="color:#FFFFFF" href="<%hosturl%>im/WebClient?IssueID=<%<%builtin ID%>%>"><%<%builtin ID%>%></a>-<%<%builtin Project %>%></th>

</tr>

<!-- Overview info -->

<tr class="detailheading">

<td>1.0 Test Session Overview</td>

</tr>

<tr class="list">

<td>

<b>1.1 Overview</b>

<!-- Overview info -->

<table class="fullWidth">

<tr>

<td colspan="2"><b>Zusammenfassung:</b> <%Summary%></td>

</tr>

<tr> <td colspan="2">

<b>betroffener Pr&uuml;fling:</b>

<%beginrelationshipsdetail EPEC_relDeviceDesc%>

 

<a href="<%hosturl%>im/viewissue?selection=<%Relationship ID%>"><%Relationship ID%></a><%Relationship Summary%>

<td>

</tr>

 

<tr>

<td width="50%"><b>Project:</b> <%Project%></td>

<td width="50%"><b>Assigned User:</b> <%<%builtin Assigned User%>%></td>

</tr>

<tr>

<td width="50%"><b>Test Objective:</b> <%RQ_Test Objective%></td>

<td width="50%"><b>State:</b> <%<%builtin State%>%></td>

</tr>

<tr>

<td width="50%"><b>Tests As Of Date:</b> <%<%builtin Tests As Of Date%>%></td>

<td width="50%"><b>Priority:</b> <%RQ_Priority%></td>

</tr>

<tr>

<td width="50%"><b>Session Type:</b> <%RQ_Session Type%></td>

<td width="50%"></td>

</tr>

</table>

</td>

</tr>

 

<!-- Tests info -->

<tr class="detailheading">

<td>2.0 Tests</td>

</tr>

<tr >

<td >

<!-- Test Case info -->

<b>2.1 Tests</b>

<p>This session has the following tests:</p>

 

<script type="text/javascript">linecount=0;</script>

 

<table class="white_bg list">

<tr class="list"><td class="list"></td></tr>

</table>

<%beginrelationshipsdetail Query[(walktestsession[<%<%builtin ID%>%>])] %>

 

<table class="detailcols fullWidth">

<tr class="detailheading">

<span>

<td colspan="1" width="10%"><a href="<%hosturl%>im/WebClient?IssueID=<%Relationship ID%>"><%Relationship ID%></a></td>

<td colspan="3" width="70%"><%Relationship <%builtin Summary%>%></td>

<td colspan="1" width="10%"><%Relationship <%builtin Category%>%></td>

<td colspan="1" width="10%">

<%begintestresultdetail%>

<%testresult Verdict%> </br>

<%endtestresultdetail%>

 

</td>

</span>

</tr>

<tr>

<span>

<td style="border: 1px solid grey;" colspan="3" width="50%" ><%Relationship RQ_Text%></td>

<td style="border: 1px solid grey;" colspan="3" width="50%" ><%Relationship TM_PassFail_Criteria%></td>

</span>

</tr>

 

 

</table>

<table class="white_bg list">

<tr class="list"><td class="list"></td></tr>

</table>

 

<%endrelationshipsdetail%>

</td>

</tr>

</table>

</td>

</tr>

</table>

<hr class="full_line">

<%enddetail%>

<center class="footer"></center>

 

<script type="text/javascript">

if (REPORT_ISSUES == "")

document.all.RERUNLINK.href = "<%hosturl%>im/runreport?selection=&currentReportName";

else

document.all.RERUNLINK.href = "<%hosturl%>im/runreport?selection=&currentReportName&issues=" + REPORT_ISSUES;

</script>

</body>

</html>

 

which gives somehting like this

 

screen1.JPG

 

Any Ideas?

Rich Content in Report

$
0
0

When I try to output a text field from a Test Result Related Item that contains rich content to an HTML report, all of the < and > are replaced by &lt; and &gt;. This happens with some other characters also. How do you get it to preserve the HTML instead of doing this conversion? Below is where I am trying to use it. Basically I'm trying to output all ALM_Defect items from a test session. This doesn't happen for fields on the Test Session itself though.

 

<%begintestresultdetail verdict=&combinedverdictfilter %>

<%begintestresultitemdetail%>

<table>

<script type="text/javascript">

<!--

var itemId = "<%testresultitem ID%>";

var itemType = "<%testresultitem Type%>";

var desc = "<%testresultitem ALM_Description%>";

if (itemType == "ALM_Defect") {

document.write("<tr><td class='noBorder'>" + itemId + "</td><td class='noBorder'>" + desc + "</td></tr>");

}

-->

</script>

</table>

<%endtestresultitemdetail%>

<%endtestresultdetail%>

Sort Defects by Creation Date in Report

$
0
0

I have a report that includes all the defects from a test session. How can I sort them by a given field? Also, how can I sort them by their creation date?

Integrity Webservice client - documentation

$
0
0

Hello,

 

I have a requirement of querying the mks integrity, based on certain filed and fetch the status of that item (Development task).

I am not understanding which webservice i can use, and big confusion in supplying the required inputs...

 

Can you please share the documentation or sample code to query the mks system thru web services.

 

Appreciate your response.

Is it possible to automate Integrity web client?

$
0
0

Hi all,

 

I have automated some MKS functionalities using the CLI option im.exe. I would like to ask if it is also possible to automate the web client and how?

 

Thanks,

is it possible to integrate outlook mail with Integrity Server ?

$
0
0

is it possible to integrate outlook mail with Integrity Server ?

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)


How to integrate Simulink with Integrity Modeler

$
0
0

Hello !

I'm searching for a method how to integrate Simulink with Integrity Modeler. I'm working with Simulink synchronizer, but there is always a mistake:

''An error occurred whilst interfacing with Simulink.

'  0×0 empty char array' is not a valid model name because it is not a valid MATLAB function name.  ''

Can someone help me and show a simple example how to integrate Simulink with Integrity Modeler?. ( tutorials e.t.c)

Regards

John

Synchronize a Simulink-Model

Integrity Client out-of-memory

$
0
0

While working with the Integrity Client (Version 2009, SP7) I'm fairly often running out of memory with the error messages

 

"PermGen space" or

"Integrity Client out of memory" or

"MKS124804: Internal error detected: Error was: mks.frame.exception.OutOfMemoryApplicationError: Not enough memory: The application ran out of memory on the client or server."

 

on a Win7 64-bit machine with 4GB of RAM. As in those situations the Client often uses less than 500MB of memory and not much other tools running, there seems to be a client setting limiting the amount of memory.

I increased the maximum heap size to 1024MB, caching is set to 200MB.

 

Is it one of those settings or are there any others?

Integration for MATLAB Simulink in Integrity Modeler

$
0
0

Simple example tried (after reading basic documentation) to integrate a Matlab Simulink Model in an Integrity Modeler model  is not working. Do you know where to find documentation or tutorials on this question ?

How to Synchronize a Simulink Model with PTC Integrity?

$
0
0

Hello !

Can someone help me and show a simple example how to synchronize Simulink with PTC integrity.

Regards !

Synchronize a Simulink-Model

Noticed a difference between si mods and the project differences view in the client gui

$
0
0

Hi.

I'm experimenting with the si CLI command and stumbled upon a difference in th output of this command and the respective project difference view in the client gui.

 

I was using this command:

>si mods --recurse -Y --project=/work/products/whatever/shared/ClockLib/posix/project.pj --projectRevision=1.169.1.3 --projectRevision=1.161 --showAppliedCPList --showChangePackages

This command comes back empty.

 

The GUI however does indeed show a difference for this subproject and these checkpoints. It says:

/work/products/whatever/shared/ClockLib/posix/project.pj     Subproject changed from checkpoint 1.161 to checkpoint 1.169.1.3

tmLib.c                                                       Member revision changed from 1.10 to 1.10.1.1


Possible peculiarities:

- The subproject in question is a shared subproject. The gui shows the target path: /work/products/whatever/shared/ClockLib/posix/project.pj

  While the source path would be /work/shared/something/ClockLib/posix/project.pj

  The output of si mods is empty, no matter which path I use, though.

- The checkpoints in question are not on the same branch

 

Why is this difference not shown by using the CLI command?

 

 

Additionally, when I try to show the differences of the projects several levels higher, the si mods command will not even get the right resulting checkpoint of the subproject in question.

I was using this command:

>si mods --recurse -Y --project=/work/products/whatever/project.pj --projectRevision=1.59.1.4 --projectRevision=1.59 --showAppliedCPList --showChangePackages

 

As stated above, the gui shows the correct values: Subproject changed from checkpoint 1.161 to checkpoint 1.169.1.3

The si mods command however comes back with Subproject checkpoint changed: /work/products/whatever/shared/ClockLib/posix/project.pj from 1.161 to 1.171

 

How comes si mods gets lost in the project tree and takes the wrong branch?


Integrity - create field that is a computed sum

$
0
0

Hello -

In Integrity 10.9, I'm trying to create a new field for my documents that is a computed sum of all "Verified By Trace Count" entries in a document.

 

The field "Verified By Trace Count" related to each requirement is calculated by:

     isEmpty(RelCount("Verified By"),0);

 

So, at the document level, I was hoping the sum of all these values would simply be:
     sum("Verified By Trace Count");

 

but that always gave me the error:
"An error occurred parsing the computation expression "sum("Verfied By Trace Count");": MKS124539: sum: Function is an aggregate function, but a non-aggregate computation is being evaluated."

 

I tried using the aggregate function, but couldn't quite get the syntax right.

 

Any help would be appreciated.

 

 

Is there a document that gives examples on how to use all these computational functions and operators?


Thanks!
John

Integrity Modeler: How do I link requirements with Simulink items?

$
0
0

Hi All,

 

we are trying to achieve better tracability between our Matlab/Simulink model and our requirements and for this we were hoping to use the Modeler's Simulink Synchronizer Tool.

 

We've tried synchronising the Simulink model with our SysML Model in Modeler, but so far we have only achieved to import entire modules and their i/o flows. Is there a way of importing Simulink items below the "Module" level, so that one can see the actual functional model created in Simulink in Modeler? We would then like to be able to link the Simulink blocks (say a certain switch or gain block) with the requirements they satisfy.

 

Can this be done, i.e. importing the functional model?

 

I understand that in SysML there is no equivalent of each an every Simulink block, but I was hoping that the Synchronizer feature would allow to map more than just the module structure from Simulink.

 

As a next step, we would like to synchronize the "linked to" information back into Simulink, such that the items in the functional model might show a label "satisfies Requirement Req_123" or something along those lines. Do you think that is feasible?

 

 

 

Thanks for your answers,

Lisa

Counting relationships: is it better to use a dynamic calculation or a relationship field rule?

$
0
0

I need to count the relationships for some items types, like for example the number of "Validated By" traces for a Requirement.

1) One way to do that is via a dynamic calculation: for example, "Trace Count - Validated By" is defined as isEmpty( RelCount( "Validated By" ) , 0 ).

2) The other way is to keep the field as a normal input integer (no calculation), but define a rule on the relationship field "Validated By" that runs a trigger script like "count.js".

 

Which solution is better from a performance standpoint?

 

- On one hand, having the dynamic calculation means it's performed every time the item is accessed. Changing the computation to static is not a solution since I need the number as soon as it changes.

- On the other hand, I've noticed that rule triggers are run every time the item is edited, no matter which fields are edited. I even suspect that all the rules are run for all relationship fields, but I'm not sure of that (and no time to investigate further). For items in a document that is saved as a whole, that could mean tens of trigger calls for each edit.

 

I've implemented both and don't perceive any performance impact. However, I'd like to get some feedback from the community and PTC before going further.

Integration for MATLAB Simulink in Integrity Modeler

$
0
0

Simple example tried (after reading basic documentation) to integrate a Matlab Simulink Model in an Integrity Modeler model  is not working. Do you know where to find documentation or tutorials on this question ?

Integrity Client out-of-memory

$
0
0

While working with the Integrity Client (Version 2009, SP7) I'm fairly often running out of memory with the error messages

 

"PermGen space" or

"Integrity Client out of memory" or

"MKS124804: Internal error detected: Error was: mks.frame.exception.OutOfMemoryApplicationError: Not enough memory: The application ran out of memory on the client or server."

 

on a Win7 64-bit machine with 4GB of RAM. As in those situations the Client often uses less than 500MB of memory and not much other tools running, there seems to be a client setting limiting the amount of memory.

I increased the maximum heap size to 1024MB, caching is set to 200MB.

 

Is it one of those settings or are there any others?

Viewing all 3432 articles
Browse latest View live


Latest Images

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