org.squashtest.tm.service.internal.testautomation.service
Interface InsecureTestAutomationManagementService

All Superinterfaces:
TestAutomationFinderService
All Known Implementing Classes:
TestAutomationManagementServiceImpl

public interface InsecureTestAutomationManagementService
extends TestAutomationFinderService

That private interface contains methods that cannot be secured because the current ACL system doesn't encompass the TestAutomationX entities. That service should always be called through a front service being itself secured. That interface won't be published as OSGI service.

Author:
bsiri

Method Summary
 void fetchAllResultURL(org.squashtest.tm.domain.testautomation.TestAutomationProject project, org.squashtest.tm.domain.testautomation.AutomatedSuite suite)
          Will (attempt to) retrieve the result url for all the executions that belongs to a given automated suite, and of which tests belongs to a given project.
 org.squashtest.tm.domain.testautomation.TestAutomationProject findProjectById(long projectId)
           
 org.squashtest.tm.domain.testautomation.AutomatedTest findTestById(long testId)
           
 org.squashtest.tm.domain.testautomation.TestAutomationServer getDefaultServer()
          That method returns the default server configuration.
 org.squashtest.tm.domain.testautomation.AutomatedTest persistOrAttach(org.squashtest.tm.domain.testautomation.AutomatedTest newTest)
          Pretty much the same than persistOrAttach(TestAutomationProject).
 org.squashtest.tm.domain.testautomation.TestAutomationProject persistOrAttach(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)
           Will persist the supplied remote TestAutomationProject.
 void startAutomatedSuite(org.squashtest.tm.domain.testautomation.AutomatedSuite suite)
          Will start a test suite, by dispatching the tests to the corresponding connectors.
 
Methods inherited from interface org.squashtest.tm.service.testautomation.TestAutomationFinderService
findAutomatedTestSuiteById, findExecutionsByAutomatedTestSuiteId, listProjectsOnServer, listProjectsOnServer, listTestsInProjects
 

Method Detail

persistOrAttach

org.squashtest.tm.domain.testautomation.TestAutomationProject persistOrAttach(org.squashtest.tm.domain.testautomation.TestAutomationProject newProject)

Will persist the supplied remote TestAutomationProject. The argument must be attached to a TestAutomationServer and return it using TestAutomationProject.getServer().

The service will first try to reattach the server and project instance to existing instance in the database (See org.squashtest.tm.domain.testautomation package info for more about this), then persist the unknown entities.

That method returns the persisted instance of TestAutomationProject, that should be used in place of the one supplied in arguments from now on by the client code. That method is idempotent : an attached entity won't be peristed again.

Parameters:
remoteProject -

persistOrAttach

org.squashtest.tm.domain.testautomation.AutomatedTest persistOrAttach(org.squashtest.tm.domain.testautomation.AutomatedTest newTest)

Pretty much the same than persistOrAttach(TestAutomationProject). The argument must be attached to a persisted and session-bound TestAutomationProject.

Same principles and same results apply here

Parameters:
newTest -
Returns:
a persisted TestAutomationTest, that should be used by the client code from now on.

findProjectById

org.squashtest.tm.domain.testautomation.TestAutomationProject findProjectById(long projectId)

findTestById

org.squashtest.tm.domain.testautomation.AutomatedTest findTestById(long testId)

getDefaultServer

org.squashtest.tm.domain.testautomation.TestAutomationServer getDefaultServer()
That method returns the default server configuration. It is classified as insecure because a TestAutomationServer isn't a valid ACL entity, and yet it contains a password in clear (omg).

Returns:
the default instance of TestAutomationServer.

fetchAllResultURL

void fetchAllResultURL(org.squashtest.tm.domain.testautomation.TestAutomationProject project,
                       org.squashtest.tm.domain.testautomation.AutomatedSuite suite)
Will (attempt to) retrieve the result url for all the executions that belongs to a given automated suite, and of which tests belongs to a given project.

Parameters:
project -
suite -

startAutomatedSuite

void startAutomatedSuite(org.squashtest.tm.domain.testautomation.AutomatedSuite suite)
Will start a test suite, by dispatching the tests to the corresponding connectors.

Parameters:
suite -


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.