Created
March 20, 2013 12:32
-
-
Save AdamSaleh/5204309 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Parovanie: | |
Jenkins build -> tcmsBuild | |
je zostaveny takto | |
Build.create create = new Build.create(); | |
create.product = properties.getProductID(); | |
create.name = build.getId(); | |
create.description = build.getDescription(); | |
JenkinsRun -> tcmsRun | |
TestRun.create create = new TestRun.create(); | |
create.product = properties.getProductID(); | |
create.product_version = properties.getProduct_vID(); | |
create.plan = properties.getPlanID(); | |
create.build = -1; //SEM SA DOPOCITA BUILD ID PO TOM CO JE VYTVORENY BUILD | |
create.manager = properties.getManagerId(); | |
create.summary = "Build " + run.getDisplayName(); | |
methodResult -> TestCaseRun | |
-> TestCase | |
TestCase je zostaveny takto: | |
create.product = properties.getProductID(); | |
create.category = properties.getCategoryID(); | |
create.priority = properties.getPriorityID(); | |
create.summary = result.getParent().getName() + "." + | |
result.getDisplayName(); | |
create.arguments = result.getParameters().toString(); | |
create.action =result.getDescription(); | |
create.plan = properties.getPlanID(); | |
create.is_automated = 1; | |
create je reprezentacia prikazu TestCase.create z | |
http://tcms.engineering.redhat.com/xmlrpc | |
TestCaseRun je zostaveny takto | |
TestCaseRun.create c = new TestCaseRun.create(); | |
c.run = -1; | |
c.caseVar = -1; | |
c.build = -1; | |
//TIETO TRI SU ODKAZY NA ID Run-u, TestCase-u a Build-u | |
c.case_run_status = status; | |
//SEM IDE STATUS | |
if (result.getException() != null) { | |
c.notes = result.getException().getExceptionName(); | |
c.notes += "\n\n"; | |
c.notes += result.getException().getStackTrace(); | |
c.notes += "\n\n"; | |
c.notes += result.getException().getMessage(); | |
} | |
if (result.getParameters() != null) { | |
Object parameters = result.getParameters(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment