Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduced API for updating Build custom fields values #71

Merged
merged 2 commits into from
Mar 19, 2017

Conversation

mazimkhan
Copy link
Contributor

@mazimkhan mazimkhan commented Jul 25, 2016

New API updateBuildCustomFields for updating build custom field values.

API signature:

public Map<String, Object> updateBuildCustomFields(Integer buildId, Integer testProjectId, Integer testPlanId, Map<String, String> customFields)

Corresponding TestLink XML-RPC Code will be shared shortly.

Related TestLink PR #71

@kinow
Copy link
Owner

kinow commented Jul 25, 2016

Do you have the ticket link for the TestLink XML-RPC code, please @mazimkhan ? I'll keep an eye on that and prepare to merge/release after the PHP code has been updated.

Thanks a lot for the pull request.

@mazimkhan
Copy link
Contributor Author

Hi, yes it is here TestLinkOpenSourceTRMS/testlink-code#47

@mazimkhan
Copy link
Contributor Author

@mazimkhan
Copy link
Contributor Author

@kinow we have some execute time custom fields that we want to update via junit result seeker. I see TestLinkAPI.reportTCResult API has support for sending custom field values: param Map<String, String> customFields. But hudson.tasks.junit.CaseResult does not have any means to get extra attributes or additional elements.

Can you please help if you know a solution to update execute time custom fields.

@kinow
Copy link
Owner

kinow commented Jul 28, 2016

IIRC, in the tap-plugin I had to create a wrapper around junit-plugin objects (which were part of the core at that time), in order to add metadata collected from TAP resuls + YAMLish. Maybe that's one way to solve it.

@mazimkhan
Copy link
Contributor Author

Thanks for your input @kinow. I will try a similar solution in testlink-plugin.

@mazimkhan
Copy link
Contributor Author

TestLinkOpenSourceTRMS/testlink-code#47 has been merged so this should be good to go.

@kinow
Copy link
Owner

kinow commented Nov 4, 2016

All good to merge @mazimkhan ! Will merge it once the code has been released (will check if it's in 1.9.15).

@mazimkhan
Copy link
Contributor Author

Awesome thanks!

@kinow
Copy link
Owner

kinow commented Nov 4, 2016

Not a problem. Just checked that it is not in TestLink 1.9.15. Let's wait for the next version to merge and release it :-)

"tl.setTestCaseExecutionType"), GET_PROJECT_PLATFORMS(
"tl.getProjectPlatforms"), REMOVE_PLATFORM_FROM_TEST_PLAN(
"tl.removePlatformFromTestPlan"), ADD_PLATFORM_TO_TEST_PLAN(
"tl.addPlatformToTestPlan");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yuck. I hadn't notice it got all that messed up. Thakns for fixing the formatting here.

@kinow kinow merged commit 38b965a into kinow:master Mar 19, 2017
@kinow
Copy link
Owner

kinow commented Mar 19, 2017

Thanks! Preparing a 1.9.16-0 today, unless I find some issue, then will cut a release during the next week.

kinow added a commit that referenced this pull request Mar 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants