#include <LifeCycleCORBATest.hxx>

Public Member Functions | |
| void | setUp () | 
| Set Trace mecanism.  More... | |
| void | tearDown () | 
| void | testFindOrLoad_Component_LaunchContainer () | 
| Check FindOrLoad_Component.  More... | |
| void | testFindOrLoad_Component_SameInstance () | 
| Check FindOrLoad_Component.  More... | |
| void | testFindOrLoad_Component_PythonInCppContainer () | 
| Check FindOrLoad_Component with Python Component on C++ Container load an engine, check that the CORBA object is not null.  More... | |
| void | testFindOrLoad_Component_PythonSameInstance () | 
| Check FindOrLoad_Component with Python Component on C++ Container.  More... | |
| void | testFindOrLoad_Component_UnknownInCatalog () | 
| Check FindOrLoad_Component with a component name not in catalog.  More... | |
| void | testFindOrLoad_Component_LaunchContainerHostname () | 
| Check FindOrLoad_Component with hostname given.  More... | |
| void | testFindOrLoad_Component_SameContainer () | 
| Check FindOrLoad_Component with and without local hostname given.  More... | |
| void | testFindOrLoad_Component_UnknownMachine () | 
| Check FindOrLoad_Component: check behaviour when ask for an unknown computer We must catch a Salome Exception with "unknown host" message.  More... | |
| void | testFindOrLoad_Component_ParamsEmpty () | 
| Check FindOrLoad_Component, empty params must give an instance.  More... | |
| void | testFindOrLoad_Component_ParamsLocalContainer () | 
| Check FindOrLoad_Component params = local container.  More... | |
| void | testFindOrLoad_Component_ParamsContainerName () | 
| Check FindOrLoad_Component params = containerName.  More... | |
| void | testFindOrLoad_Component_RemoteComputer () | 
| Check FindOrLoad_Component on remote computer.  More... | |
| void | testFindOrLoad_Component_ParamsRemoteComputer () | 
| Check FindOrLoad_Component with params on remote computer params empty except hostname.  More... | |
| void | testFindOrLoad_Component_ParamsRemoteComputer2 () | 
| Check FindOrLoad_Component with params on remote computer params empty except hostname and container_name.  More... | |
| void | testgetLocalFile_localComputer () | 
| Check SALOME_FileTransferCORBA on local machine.  More... | |
| void | testgetLocalFile_remoteComputer () | 
| Check SALOME_FileTransferCORBA on remote machine.  More... | |
Protected Member Functions | |
| std::string | GetRemoteHost () | 
| Check FindOrLoad_Component params = containerName.  More... | |
Protected Attributes | |
| CORBA::ORB_var | _orb | 
| SALOME_NamingService | _NS | 
      
  | 
  private | 
References Kernel_Utils::GetTmpDir().
Referenced by setUp().
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  private | 
      
  | 
  protected | 
Check FindOrLoad_Component params = containerName.
Get a remote HostName in the Resource Catalog
References _NS, Engines::ResourceParameters::can_run_containers, Engines::ResourceParameters::componentList, Kernel_Utils::GetHostname(), SALOME_LifeCycleCORBA::preSet(), SALOME_NamingService::Resolve(), and Engines::ContainerParameters::resource_params.
Referenced by testFindOrLoad_Component_ParamsRemoteComputer(), testFindOrLoad_Component_ParamsRemoteComputer2(), testFindOrLoad_Component_RemoteComputer(), and testgetLocalFile_remoteComputer().
| void LifeCycleCORBATest::setUp | ( | ) | 
Set Trace mecanism.
References _getTraceFileName(), _NS, _orb, ASSERT, PROTECTED_DELETE::deleteInstance(), SALOME_NamingService::init_orb(), LocalTraceBufferPool::instance(), SINGLETON_< TYPE >::Instance(), out, and traceFile.
| void LifeCycleCORBATest::tearDown | ( | ) | 
References PROTECTED_DELETE::deleteInstance(), and LocalTraceBufferPool::instance().
| void LifeCycleCORBATest::testFindOrLoad_Component_LaunchContainer | ( | ) | 
Check FindOrLoad_Component.
References _NS, and SALOME_LifeCycleCORBA::FindOrLoad_Component().
| void LifeCycleCORBATest::testFindOrLoad_Component_LaunchContainerHostname | ( | ) | 
Check FindOrLoad_Component with hostname given.
References _NS, DEVTRACE, SALOME_LifeCycleCORBA::FindOrLoad_Component(), and Kernel_Utils::GetHostname().
| void LifeCycleCORBATest::testFindOrLoad_Component_ParamsContainerName | ( | ) | 
Check FindOrLoad_Component params = containerName.
References _NS, Engines::ContainerParameters::container_name, SALOME_LifeCycleCORBA::FindOrLoad_Component(), Kernel_Utils::GetHostname(), and SALOME_LifeCycleCORBA::preSet().
| void LifeCycleCORBATest::testFindOrLoad_Component_ParamsEmpty | ( | ) | 
Check FindOrLoad_Component, empty params must give an instance.
References _NS, SALOME_LifeCycleCORBA::FindOrLoad_Component(), and SALOME_LifeCycleCORBA::preSet().
| void LifeCycleCORBATest::testFindOrLoad_Component_ParamsLocalContainer | ( | ) | 
Check FindOrLoad_Component params = local container.
References _NS, SALOME_LifeCycleCORBA::FindOrLoad_Component(), Kernel_Utils::GetHostname(), Engines::ResourceParameters::hostname, SALOME_LifeCycleCORBA::preSet(), and Engines::ContainerParameters::resource_params.
| void LifeCycleCORBATest::testFindOrLoad_Component_ParamsRemoteComputer | ( | ) | 
Check FindOrLoad_Component with params on remote computer params empty except hostname.
References _NS, SALOME_LifeCycleCORBA::FindOrLoad_Component(), GetRemoteHost(), Engines::ResourceParameters::hostname, SALOME_LifeCycleCORBA::preSet(), and Engines::ContainerParameters::resource_params.
| void LifeCycleCORBATest::testFindOrLoad_Component_ParamsRemoteComputer2 | ( | ) | 
Check FindOrLoad_Component with params on remote computer params empty except hostname and container_name.
References _NS, Engines::ContainerParameters::container_name, SALOME_LifeCycleCORBA::FindOrLoad_Component(), GetRemoteHost(), Engines::ResourceParameters::hostname, SALOME_LifeCycleCORBA::preSet(), and Engines::ContainerParameters::resource_params.
| 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.
References _NS, and SALOME_LifeCycleCORBA::FindOrLoad_Component().
| void LifeCycleCORBATest::testFindOrLoad_Component_PythonSameInstance | ( | ) | 
Check FindOrLoad_Component with Python Component on C++ Container.
References _NS, and SALOME_LifeCycleCORBA::FindOrLoad_Component().
| void LifeCycleCORBATest::testFindOrLoad_Component_RemoteComputer | ( | ) | 
Check FindOrLoad_Component on remote computer.
References _NS, DEVTRACE, SALOME_LifeCycleCORBA::FindOrLoad_Component(), and GetRemoteHost().
| 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
References _NS, DEVTRACE, SALOME_LifeCycleCORBA::FindOrLoad_Component(), and Kernel_Utils::GetHostname().
| void LifeCycleCORBATest::testFindOrLoad_Component_SameInstance | ( | ) | 
Check FindOrLoad_Component.
References _NS, and SALOME_LifeCycleCORBA::FindOrLoad_Component().
| 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
References _NS, and SALOME_LifeCycleCORBA::FindOrLoad_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.
References _NS, and SALOME_LifeCycleCORBA::FindOrLoad_Component().
| void LifeCycleCORBATest::testgetLocalFile_localComputer | ( | ) | 
Check SALOME_FileTransferCORBA on local machine.
References _NS, Kernel_Utils::GetHostname(), and SALOME_FileTransferCORBA::getLocalFile().
| void LifeCycleCORBATest::testgetLocalFile_remoteComputer | ( | ) | 
Check SALOME_FileTransferCORBA on remote machine.
References _NS, SALOME_FileTransferCORBA::getLocalFile(), and GetRemoteHost().
      
  | 
  protected | 
Referenced by GetRemoteHost(), setUp(), testFindOrLoad_Component_LaunchContainer(), testFindOrLoad_Component_LaunchContainerHostname(), testFindOrLoad_Component_ParamsContainerName(), testFindOrLoad_Component_ParamsEmpty(), testFindOrLoad_Component_ParamsLocalContainer(), testFindOrLoad_Component_ParamsRemoteComputer(), testFindOrLoad_Component_ParamsRemoteComputer2(), testFindOrLoad_Component_PythonInCppContainer(), testFindOrLoad_Component_PythonSameInstance(), testFindOrLoad_Component_RemoteComputer(), testFindOrLoad_Component_SameContainer(), testFindOrLoad_Component_SameInstance(), testFindOrLoad_Component_UnknownInCatalog(), testFindOrLoad_Component_UnknownMachine(), testgetLocalFile_localComputer(), and testgetLocalFile_remoteComputer().
      
  | 
  protected | 
Referenced by setUp().