public interface TestAutomationConnector
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkCredentials(org.squashtest.tm.domain.testautomation.TestAutomationServer server)
Checks that the given server configuration (including credentials) actually works.
|
void |
executeParameterizedTests(Collection<org.squashtest.tm.core.foundation.lang.Couple<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender,Map<String,Object>>> tests,
String externalId,
TestAutomationCallbackService securedCallback)
Given a bunch of tests, must tell the remote server to execute them.
|
URL |
findTestAutomationProjectURL(org.squashtest.tm.domain.testautomation.TestAutomationProject testAutomationProject)
Will build and return the URL to access to the given test automation project's.
|
String |
getConnectorKind()
A String indicating which kind of connector it is
|
Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> |
listProjectsOnServer(org.squashtest.tm.domain.testautomation.TestAutomationServer server)
Given a server (that contains everything you need to connect it), returns the collection of
TestAutomationProject that it hosts. |
Collection<org.squashtest.tm.domain.testautomation.AutomatedTest> |
listTestsInProject(org.squashtest.tm.domain.testautomation.TestAutomationProject project)
Given a project (that contains everything you need to connect it), returns the collection of
AutomatedTest that it contains
|
boolean |
testListIsOrderGuaranteed(Collection<org.squashtest.tm.domain.testautomation.AutomatedTest> tests)
Will say, depending on the tests ecosystems if the execution order of the given test list is guaranteed.
|
String getConnectorKind()
boolean checkCredentials(org.squashtest.tm.domain.testautomation.TestAutomationServer server)
server - Collection<org.squashtest.tm.domain.testautomation.TestAutomationProject> listProjectsOnServer(org.squashtest.tm.domain.testautomation.TestAutomationServer server) throws ServerConnectionFailed, AccessDenied, UnreadableResponseException, NotFoundException, BadConfiguration, TestAutomationException
Given a server (that contains everything you need to connect it), returns the collection of
TestAutomationProject that it hosts.
server - ServerConnectionFailed - if could not connect to the serverAccessDenied - if the server was reached but the used user could log inUnreadableResponseException - if the server replied something that is not suitable for a response or otherwise replied not nicelyNotFoundException - if the server could not find its projectsTestAutomationException - for anything that doesn't fit the exceptions above.BadConfigurationCollection<org.squashtest.tm.domain.testautomation.AutomatedTest> listTestsInProject(org.squashtest.tm.domain.testautomation.TestAutomationProject project) throws ServerConnectionFailed, AccessDenied, UnreadableResponseException, NotFoundException, BadConfiguration, TestAutomationException
Given a project (that contains everything you need to connect it), returns the collection of
AutomatedTest that it contains
project - ServerConnectionFailed - if could not connect to the serverAccessDenied - if the server was reached but the used user could log inUnreadableResponseException - if the server replied something that is not suitable for a response or otherwise was rude to youNotFoundException - if the tests in that project cannot be foundTestAutomationException - for anything that doesn't fit the exceptions above.BadConfigurationvoid executeParameterizedTests(Collection<org.squashtest.tm.core.foundation.lang.Couple<org.squashtest.tm.domain.testautomation.AutomatedExecutionExtender,Map<String,Object>>> tests, String externalId, TestAutomationCallbackService securedCallback)
Given a bunch of tests, must tell the remote server to execute them. These particular executions of those tests are grouped and must be identifiable by a reference.
That method must return immediately after initiating the test start sequence, it must not wait for their completion. However it may possibly start a background task to oversee the remote executions from here.
tests - the tests that must be executedexternalId - a reference that index the resulting executions of those testsServerConnectionFailed - if could not connect to the serverAccessDenied - if the server was reached but the used user could log inUnreadableResponseException - if the server replied something that is not suitable for a response or otherwise thrown garbages at
youNotFoundException - if the tests in that project cannot be foundTestAutomationException - for anything that doesn't fit the exceptions above.URL findTestAutomationProjectURL(org.squashtest.tm.domain.testautomation.TestAutomationProject testAutomationProject)
Will build and return the URL to access to the given test automation project's.
testAutomationProject - : the TestAutomationProject we want the URL ofTestAutomationProjectSEboolean testListIsOrderGuaranteed(Collection<org.squashtest.tm.domain.testautomation.AutomatedTest> tests)
tests - Copyright © 2010–2017 Henix, henix.fr. All rights reserved.