Mantis Bugtracker          
testlink.org

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008419TestLinkBug Tracking System - Redmine Integrationpublic2018-10-18 14:042018-10-29 16:43
Reportersaadallah 
Assigned Tofman 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusresolvedResolutionnot fixable 
PlatformOSOS Version
Product Version1.9.17 (2018 Q1) 
Fixed in Version 
Summary0008419: send custom filed from Testlink to Redmine
DescriptionHello,
i create a custom field "CRITICITE_EXEC" in Testlink which is a list type with 3 values, and another one with the same name and the same type in Redmine.
I tried to configure TestLink to send the value of this custom field directly to Redmine but it dosen't work.
In the begining, in my config, i put a static value "Bloquant" of my Testlink's custom field :

<custom_fields type="array">
<custom_field name="CRITICITE_EXEC">
<value>Bloquant</value>
</custom_field>
</custom_fields>

but does not work

Could you please tell me is my config is wrong or not and how to send the a dynamic value from teslink to redmine?
Steps To ReproduceFrom Testlink :
1- create a custom field with :
a- name : CRITICITE_EXEC
b- available for : Test Case
c- type : list
d- Possible values : |Bloquant|Majeur|Mineur
e- enable on : Test Execution

2-on Issue Trackers :
<custom_fields type="array">
<custom_field name="CRITICITE_EXEC">
<value>Bloquant</value>
</custom_field>
</custom_fields>

=> with static value Bloquant for the first step

From Redmine :
create a custom field :
name : CRITICITE_EXEC
Type : list
Possible values : Bloquant,Majeur,Mineur

create an issue from testlink ==> the issue is well created on Redmine but the field CRITICITE_EXEC si not filled

TagsNo tags attached.
Database (MySQL,Postgres,etc)MySQL
Browserfirefox
PHP Version
TestCaseID
QA Team - Task Workflow StatusTBD
Attached Filespng file icon redmine-A.png [^] (136,260 bytes) 2018-10-20 13:16


png file icon redmine-B.png [^] (73,948 bytes) 2018-10-20 13:17


png file icon redmine-C.png [^] (75,375 bytes) 2018-10-20 13:17


png file icon redmine-D.png [^] (62,066 bytes) 2018-10-20 13:17


png file icon redmine-E.png [^] (109,445 bytes) 2018-10-20 13:18


? file icon 3create-issue-new-json.sh [^] (257 bytes) 2018-10-20 13:21
png file icon redmine-cf-config.png [^] (45,481 bytes) 2018-10-20 13:43

- Relationships

-  Notes
(0028035)
fman (administrator)
2018-10-18 14:13

Please give a look to examples present with testlink distribution on issuetrackingintegration folder
(0028042)
saadallah (reporter)
2018-10-19 15:10

I followed the instructions present with testlink distribution, and it's work with a text field but not with a list field :(

here is my issueTracking configuration :

<custom_fields type="array">

<custom_field id="1" name="CRITICITE_EXEC" multiple="true">
<value type="array">
<value>Bloquant</value>
</value>
</custom_field>

<custom_field id="3" name="texte">
<value>BloquantTexte</value>
</custom_field>

</custom_fields>
(0028046)
fman (administrator)
2018-10-20 11:22

useful links

http://www.redmine.org/projects/redmine/wiki/Rest_api#Working-with-custom-fields [^]
(0028047)
fman (administrator)
2018-10-20 13:15
edited on: 2018-10-20 13:22

With this script (on OSX and Linux) you will be able to create an issues without custom fields (only for testing porpuses)

Following code is present in: 3create-issue-new-json.sh

 curl 'https://testlinktest.planio.com/issues.json' [^] \
  -X POST \
  -H 'X-Redmine-API-Key: c1796c2215a55723f134a4c546e9c121' \
  -H 'Content-Type: application/json' \
  -d '{ "issue": {"subject": "issue 20181020.01", "project_id": 
"website-redesign"} }'


(0028048)
fman (administrator)
2018-10-20 13:19

images redmine-A,redmine-B, ... , redmine-E, regards the configuration done to try to test the custom field issue
(0028050)
fman (administrator)
2018-10-20 15:23

more tests with curl, to understand a little bit

<?xml version="1.0"?>
<issue>
  <subject>CF using ID ???? ISSUE FOR PLANIO 20181020-Poldark-01</subject>
  <project_id>website-redesign</project_id>
  <custom_fields type="array">
    <custom_field id="1" name="CRITICITE_EXEC">
      <value>Bloquant</value>
    </custom_field>
  </custom_fields>
</issue> 


with this xml, issue is created using curl WITHOUT ISSUES
(0028051)
fman (administrator)
2018-10-20 15:26

user to access
https://testlinktest.planio.com/ [^]

testlinkGuest with password Iamaguest.
(0028052)
fman (administrator)
2018-10-21 08:36

Import thing to understand and that is not detailed here:

Would you mind to point to the documentation that details that a value of a TestLink Custom Field can be sent to a Custom Field on Redmine ?

regards
(0028107)
fman (administrator)
2018-10-27 06:12

no more user feedback
(0028119)
saadallah (reporter)
2018-10-29 14:27

Sorry for the delay :(

Thank you for your messages, actually,i creates 2 custom fields on Testlink and Redmine :
- texte ==> text field
- CRITICITE_EXEC ==> list field

My configuration works very well if the custom field is a text.

<custom_field id="3" name="texte">
<value>BloquantText</value>
</custom_field>

But, it doesn't work with a list field :(

<custom_field id="1" name="CRITICITE_EXEC">
<value type="array">
<value>Bloquant</value>
</value>
</custom_field>

I have a second question, how can i fill dynamically my custom field please?
I mean, when the user execute the test, before sending the issue, he should fill the field then create the issue. on Redmine, we should find the value filled by the tester

I tried this configuration on my TestLink :

<custom_field id="3" name="texte">
<value>%%texte%%</value>
</custom_field>

but it dosen't work, on Redmin i get the value "%%texte%%" :(
(0028120)
fman (administrator)
2018-10-29 15:39

I have asked you where you have read that you can use dynamic value, because this is not documented and is also NOT POSSIBLE.
Please next time while reporting please provide reference to documentation
(0028121)
saadallah (reporter)
2018-10-29 15:52

it is not possible!!!! :(
following this ticket : http://mantis.testlink.org/view.php?id=8180 [^]
I though that it was possible de do it!!!!

humm....and is it possible to send an attachement file from Testlink to Redmine?

Thank you :)
(0028122)
fman (administrator)
2018-10-29 16:43

8180 is clear enough IMHO.

- Issue History
Date Modified Username Field Change
2018-10-18 14:04 saadallah New Issue
2018-10-18 14:13 fman Note Added: 0028035
2018-10-18 15:24 fman Assigned To => fman
2018-10-18 15:24 fman Status new => feedback
2018-10-19 15:10 saadallah Note Added: 0028042
2018-10-19 15:10 saadallah Status feedback => assigned
2018-10-19 15:38 fman QA Team - Task Workflow Status => TBD
2018-10-19 15:38 fman Category API - REST => Bug Tracking System - Redmine Integration
2018-10-20 11:22 fman Note Added: 0028046
2018-10-20 13:15 fman Note Added: 0028047
2018-10-20 13:16 fman File Added: redmine-A.png
2018-10-20 13:17 fman File Added: redmine-B.png
2018-10-20 13:17 fman File Added: redmine-C.png
2018-10-20 13:17 fman File Added: redmine-D.png
2018-10-20 13:18 fman File Added: redmine-E.png
2018-10-20 13:19 fman Note Added: 0028048
2018-10-20 13:21 fman File Added: 3create-issue-new-json.sh
2018-10-20 13:22 fman Note Edited: 0028047 View Revisions
2018-10-20 13:43 fman File Added: redmine-cf-config.png
2018-10-20 15:23 fman Note Added: 0028050
2018-10-20 15:26 fman Note Added: 0028051
2018-10-21 08:36 fman Note Added: 0028052
2018-10-27 06:12 fman Note Added: 0028107
2018-10-27 06:12 fman Status assigned => resolved
2018-10-27 06:12 fman Resolution open => not fixable
2018-10-29 14:27 saadallah Note Added: 0028119
2018-10-29 15:39 fman Note Added: 0028120
2018-10-29 15:52 saadallah Note Added: 0028121
2018-10-29 16:43 fman Note Added: 0028122



Copyright © 2000 - 2018 MantisBT Team
Powered by Mantis Bugtracker