Version: 8.3.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
LifeCycleCORBATest Class Reference
Inheritance diagram for LifeCycleCORBATest:
Inheritance graph

Public Member Functions

void setUp ()
 
void tearDown ()
 
void testFindOrLoad_Component_LaunchContainer ()
 
void testFindOrLoad_Component_SameInstance ()
 
void testFindOrLoad_Component_PythonInCppContainer ()
 
void testFindOrLoad_Component_PythonSameInstance ()
 
void testFindOrLoad_Component_UnknownInCatalog ()
 
void testFindOrLoad_Component_LaunchContainerHostname ()
 
void testFindOrLoad_Component_SameContainer ()
 
void testFindOrLoad_Component_UnknownMachine ()
 
void testFindOrLoad_Component_ParamsEmpty ()
 
void testFindOrLoad_Component_ParamsLocalContainer ()
 
void testFindOrLoad_Component_ParamsContainerName ()
 
void testFindOrLoad_Component_RemoteComputer ()
 
void testFindOrLoad_Component_ParamsRemoteComputer ()
 
void testFindOrLoad_Component_ParamsRemoteComputer2 ()
 
void testgetLocalFile_localComputer ()
 
void testgetLocalFile_remoteComputer ()
 

Protected Member Functions

std::string GetRemoteHost ()
 

Protected Attributes

CORBA::ORB_var _orb
 
SALOME_NamingService _NS
 

Member Function Documentation

void LifeCycleCORBATest::setUp ( )

Set Trace mecanism

  • delete preexisting trace classes if any
  • set trace on file Get or initialize the orb Create a SALOME_NamingService instance
void LifeCycleCORBATest::tearDown ( )
  • delete trace classes
void LifeCycleCORBATest::testFindOrLoad_Component_LaunchContainer ( )

Check FindOrLoad_Component.

  • get a local container (no hostname given), load an engine, check that the CORBA object is not null.
  • check narrow
void LifeCycleCORBATest::testFindOrLoad_Component_SameInstance ( )

Check FindOrLoad_Component.

  • Call 2 times FindOrLoad_Component with the same parameters
  • check if we get the same engine
void LifeCycleCORBATest::testFindOrLoad_Component_PythonInCppContainer ( )

Check FindOrLoad_Component with Python Component on C++ Container load an engine, check that the CORBA object is not null.

  • check narrow
void LifeCycleCORBATest::testFindOrLoad_Component_PythonSameInstance ( )

Check FindOrLoad_Component with Python Component on C++ Container

  • Call 2 times FindOrLoad_Component with the same parameters
  • check if we get the same engine
void LifeCycleCORBATest::testFindOrLoad_Component_UnknownInCatalog ( )

Check FindOrLoad_Component with a component name not in catalog. See list of catalog given to module catalog server. Here, we work with KERNEL_SRC/resources/KERNELCatalog.xml that contains only KERNEL, SalomeTestComponent and SALOME_TestComponentPy

void LifeCycleCORBATest::testFindOrLoad_Component_LaunchContainerHostname ( )

Check FindOrLoad_Component with hostname given

  • get a local container : getHostName()/componentName, load an engine, check that the CORBA object is not null.
  • check narrow
void LifeCycleCORBATest::testFindOrLoad_Component_SameContainer ( )

Check FindOrLoad_Component with and without local hostname given. We must get the same container, the same instance of component

void LifeCycleCORBATest::testFindOrLoad_Component_UnknownMachine ( )

Check FindOrLoad_Component: check behaviour when ask for an unknown computer We must catch a Salome Exception with "unknown host" message

void LifeCycleCORBATest::testFindOrLoad_Component_ParamsEmpty ( )

Check FindOrLoad_Component, empty params must give an instance

void LifeCycleCORBATest::testFindOrLoad_Component_ParamsLocalContainer ( )

Check FindOrLoad_Component params = local container

void LifeCycleCORBATest::testFindOrLoad_Component_ParamsContainerName ( )

Check FindOrLoad_Component params = containerName

void LifeCycleCORBATest::testFindOrLoad_Component_RemoteComputer ( )

Check FindOrLoad_Component on remote computer

void LifeCycleCORBATest::testFindOrLoad_Component_ParamsRemoteComputer ( )

Check FindOrLoad_Component with params on remote computer params empty except hostname

void LifeCycleCORBATest::testFindOrLoad_Component_ParamsRemoteComputer2 ( )

Check FindOrLoad_Component with params on remote computer params empty except hostname and container_name

void LifeCycleCORBATest::testgetLocalFile_localComputer ( )

Check SALOME_FileTransferCORBA on local machine

void LifeCycleCORBATest::testgetLocalFile_remoteComputer ( )

Check SALOME_FileTransferCORBA on remote machine

std::string LifeCycleCORBATest::GetRemoteHost ( )
protected

Check FindOrLoad_Component params = containerName

Get a remote HostName in the Resource Catalog