Hi Testlink Team,
I'm trying to get the custom field values for my testcases/testplans, but I'm not sure with which parameters I have to supplie the functions.
In addition I'm unsing platforms, so I'm populating the custom field values while Testplan design.
thx in advance and best regards,
Cedric
API: which parameters for getCustomField functions?
Moderators: Amaradana, TurboPT, TL Developers
Re: API: which parameters for getCustomField functions?
all the documentation you need is inside the xml server class
in addition we have provided client*.php files for all methods
in addition we have provided client*.php files for all methods
Re: API: which parameters for getCustomField functions?
Frist, thanks for your quick reply and for your hint regarding the client*.php files.
Unfortunatly there is only one example(getTestCaseCustomfieldonDesignLVL) but i would need the parameters for ...ontestplandesign with platforms.
I also read you comments in the xml server class, but I'm not quite sure what the "linkid" should be and if the comments are correct because there is an argument($args["testcaseid"]) but the description states "project id".
FYI I'm using 1.9.5
Hope you can help me, thx in advance,
Cedric
Unfortunatly there is only one example(getTestCaseCustomfieldonDesignLVL) but i would need the parameters for ...ontestplandesign with platforms.
I also read you comments in the xml server class, but I'm not quite sure what the "linkid" should be and if the comments are correct because there is an argument($args["testcaseid"]) but the description states "project id".
FYI I'm using 1.9.5
Hope you can help me, thx in advance,
Cedric
Re: API: which parameters for getCustomField functions?
only way to try to help is have A FULL DETAIL that what you need to do, and till know your post do not provide it.
You have to explain everything:
have the custom field is configured
how you do same operation via GUI
etc
You have to explain everything:
have the custom field is configured
how you do same operation via GUI
etc
Re: API: which parameters for getCustomField functions?
Ok than I'll try to give you all information:
I need to create about 20 different testplans of one testproject. the testproject has about 30 different platforms and 100 testcases.
Each testplan has 20 different customfields which i want to populate while testplan design.
Each testcase has one customfield "expected result" which i want to populate while testplan design and one customfield "result" which should be populated while execution.
For each platform i want so select different testcases which will have different values for "expected result".
The customfield "expacted result" is available for testcases, enabled for "testplandesign" and "display on testexecution" is true.
The customfield "result" is available for testcases and enabled for "execution".
All customfields for the Testplans are visible on testexecution.
In addition all testcases are set to "automated".
Thats how my testlink design looks like at the moment.
What I want to do:
I'm using a c# application, where the user should select the name of the testplan and all information(testplancustomfields,platforms, platform linked testcases, customfields for the testcases) should be gathered via testlink api and the c# wrapper, which I'm developing at the moment. Next the application should start different tests dependent on the selected tests, platforms and values of the customfields and write the results back to testlink.
At the moment I'm able to get all information needed, beside values of the customfields for the testcases.
When I'm calling the function "getTestCaseCustomFieldTestPlanDesignValue(devkey, testprojectid, version, customfieldname, testplanid, platformid)" in my c# code, the response is an rmxrpcstruct with 18 different keys(id,name,lable, type, possible values,....value and nodeid).
All the values of these keys are correct, beside "value" and "nodeid"...these two are empty.
So I guess I'm using some wrong parameters? Is this problem related to my usage of platforms?
Hope now you have enought information to help me.
Thanks,
Cedric
I need to create about 20 different testplans of one testproject. the testproject has about 30 different platforms and 100 testcases.
Each testplan has 20 different customfields which i want to populate while testplan design.
Each testcase has one customfield "expected result" which i want to populate while testplan design and one customfield "result" which should be populated while execution.
For each platform i want so select different testcases which will have different values for "expected result".
The customfield "expacted result" is available for testcases, enabled for "testplandesign" and "display on testexecution" is true.
The customfield "result" is available for testcases and enabled for "execution".
All customfields for the Testplans are visible on testexecution.
In addition all testcases are set to "automated".
Thats how my testlink design looks like at the moment.
What I want to do:
I'm using a c# application, where the user should select the name of the testplan and all information(testplancustomfields,platforms, platform linked testcases, customfields for the testcases) should be gathered via testlink api and the c# wrapper, which I'm developing at the moment. Next the application should start different tests dependent on the selected tests, platforms and values of the customfields and write the results back to testlink.
At the moment I'm able to get all information needed, beside values of the customfields for the testcases.
When I'm calling the function "getTestCaseCustomFieldTestPlanDesignValue(devkey, testprojectid, version, customfieldname, testplanid, platformid)" in my c# code, the response is an rmxrpcstruct with 18 different keys(id,name,lable, type, possible values,....value and nodeid).
All the values of these keys are correct, beside "value" and "nodeid"...these two are empty.
So I guess I'm using some wrong parameters? Is this problem related to my usage of platforms?
Hope now you have enought information to help me.
Thanks,
Cedric
Re: API: which parameters for getCustomField functions?
a better simple test case is needed, not done with your real figures (i.e 20 custom fields)
There are missing pieces, one regards how you have filled the custom fields, without this info I will need to do lot of exploratory work, to try to match your environment.
Configure on your system a test scenario using just ONE TEST CASE, and ONE CUSTOM FIELD and provide ABSOLUTELY each step
you do in order to allow me to try to reproduce.
Because this can be an issue, please register on mantis and provide ALL requested info there.
There are missing pieces, one regards how you have filled the custom fields, without this info I will need to do lot of exploratory work, to try to match your environment.
Configure on your system a test scenario using just ONE TEST CASE, and ONE CUSTOM FIELD and provide ABSOLUTELY each step
you do in order to allow me to try to reproduce.
Because this can be an issue, please register on mantis and provide ALL requested info there.
Re: API: which parameters for getCustomField functions?
Hi,
do you really think this could be an issue?
I think I'm just using wrong parameters for the "getTestCaseCustomFieldTestPlanDesignValue".
As I wrote before now I'm using the parameters:
devkey
testprojectid....testproject.ID
version....testcase.tcversion_id
customfieldname....customfieldname
testplanid....testplan.id
platformid....testcase.platform_id
I'm not sure if these parameters are correct.
When you could check, if I'm right it would be awesome. If I'm wrong please provide the correct parameters for the function.
If these parameters are right, I'll do what you suggested before and open an issue on mantis.
thanks a lot
do you really think this could be an issue?
I think I'm just using wrong parameters for the "getTestCaseCustomFieldTestPlanDesignValue".
As I wrote before now I'm using the parameters:
devkey
testprojectid....testproject.ID
version....testcase.tcversion_id
customfieldname....customfieldname
testplanid....testplan.id
platformid....testcase.platform_id
I'm not sure if these parameters are correct.
When you could check, if I'm right it would be awesome. If I'm wrong please provide the correct parameters for the function.
If these parameters are right, I'll do what you suggested before and open an issue on mantis.
thanks a lot