hudson.plugins.testlink
Class TestLinkSite

java.lang.Object
  extended by hudson.plugins.testlink.TestLinkSite

public class TestLinkSite
extends java.lang.Object

Immutable object that represents the TestLink site with a Test Project, a Test Plan and a Build.

Since:
3.0
Author:
Bruno P. Kinoshita - http://www.kinoshita.eti.br

Field Summary
protected  br.eti.kinoshita.testlinkjavaapi.TestLinkAPI api
           
protected  br.eti.kinoshita.testlinkjavaapi.model.Build build
           
protected  Report report
           
protected  br.eti.kinoshita.testlinkjavaapi.model.TestPlan testPlan
           
protected  br.eti.kinoshita.testlinkjavaapi.model.TestProject testProject
           
 
Constructor Summary
TestLinkSite(br.eti.kinoshita.testlinkjavaapi.TestLinkAPI api, br.eti.kinoshita.testlinkjavaapi.model.TestProject testProject, br.eti.kinoshita.testlinkjavaapi.model.TestPlan testPlan, br.eti.kinoshita.testlinkjavaapi.model.Build build)
           
 
Method Summary
 br.eti.kinoshita.testlinkjavaapi.TestLinkAPI getApi()
           
 br.eti.kinoshita.testlinkjavaapi.model.TestCase[] getAutomatedTestCases(java.lang.String[] customFieldsNames)
           
 br.eti.kinoshita.testlinkjavaapi.model.Build getBuild()
           
 Report getReport()
           
 br.eti.kinoshita.testlinkjavaapi.model.TestPlan getTestPlan()
           
 br.eti.kinoshita.testlinkjavaapi.model.TestProject getTestProject()
           
 int updateTestCase(TestCaseWrapper testCase)
          Updates the test cases status in TestLink (note and status) and uploads any existing attachments.
 void uploadAttachment(int executionId, br.eti.kinoshita.testlinkjavaapi.model.Attachment attachment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

api

protected final br.eti.kinoshita.testlinkjavaapi.TestLinkAPI api

testProject

protected final br.eti.kinoshita.testlinkjavaapi.model.TestProject testProject

testPlan

protected final br.eti.kinoshita.testlinkjavaapi.model.TestPlan testPlan

build

protected final br.eti.kinoshita.testlinkjavaapi.model.Build build

report

protected final Report report
Constructor Detail

TestLinkSite

public TestLinkSite(br.eti.kinoshita.testlinkjavaapi.TestLinkAPI api,
                    br.eti.kinoshita.testlinkjavaapi.model.TestProject testProject,
                    br.eti.kinoshita.testlinkjavaapi.model.TestPlan testPlan,
                    br.eti.kinoshita.testlinkjavaapi.model.Build build)
Parameters:
api - TestLink Java API object
testProject - TestLink Test Project
testPlan - TestLink Test Plan
build - TestLink Build
Method Detail

getApi

public br.eti.kinoshita.testlinkjavaapi.TestLinkAPI getApi()
Returns:
the TestLink Java API object

getTestProject

public br.eti.kinoshita.testlinkjavaapi.model.TestProject getTestProject()
Returns:
the testProject

getTestPlan

public br.eti.kinoshita.testlinkjavaapi.model.TestPlan getTestPlan()
Returns:
the testPlan

getBuild

public br.eti.kinoshita.testlinkjavaapi.model.Build getBuild()
Returns:
the build

getReport

public Report getReport()
Returns:
the report

getAutomatedTestCases

public br.eti.kinoshita.testlinkjavaapi.model.TestCase[] getAutomatedTestCases(java.lang.String[] customFieldsNames)
Parameters:
customFieldsNames - Array of custom fields names
Returns:
Array of automated test cases with custom fields

updateTestCase

public int updateTestCase(TestCaseWrapper testCase)
Updates the test cases status in TestLink (note and status) and uploads any existing attachments.

Parameters:
testCases - Test Cases

uploadAttachment

public void uploadAttachment(int executionId,
                             br.eti.kinoshita.testlinkjavaapi.model.Attachment attachment)


Copyright © 2010-2011 the Jenkins TestLink plug-in team-2012 Jenkins. All Rights Reserved.