C# Class Meyn.TestLink.TestLinkAdaptor

encapsulates the basic comms to the TestLink API for the purpose of recording test results based upon the TestLinkFixtureAttribute information.
This class is used by test exporters for automated testing frameworks such as Gallio or NUnit
Show file Open project: apetrovskiy/STUPS

Public Methods

Method Description
GetTestCaseId ( string testName ) : int

get a test case id. If the test case does not exist then create one

RecordTheResult ( int testCaseId, TestCaseResultStatus status, string notes ) : GeneralResult

record a result with testlink;

Private Methods

Method Description
GetTestSuiteId ( int projectId, string testSuiteName ) : int

retrieve the testsuite id

basicConnection ( string devKey, string url ) : bool

create the basic connection and test it out

getTestCaseByName ( string testCaseName, int testSuiteId ) : int

get the test case by this name in this particular test suite

updateConnectionData ( TestLinkFixtureAttribute newData ) : void

try to update the connection with a minimum of API calls to testlink

updateData ( bool newProject, bool newTestPlan, bool newTestSuite ) : bool

update selected bits of the testlink fixture data

Method Details

GetTestCaseId() public method

get a test case id. If the test case does not exist then create one
public GetTestCaseId ( string testName ) : int
testName string
return int

RecordTheResult() public method

record a result with testlink;
public RecordTheResult ( int testCaseId, TestCaseResultStatus status, string notes ) : GeneralResult
testCaseId int
status TestCaseResultStatus
notes string
return GeneralResult