... | ... | @@ -128,6 +128,64 @@ In case of build failure, we make sure again that all components are terminated |
|
|
|
|
|
# 4. Python main script #
|
|
|
|
|
|
The `main.py` script is using the following syntax:
|
|
|
|
|
|
```java
|
|
|
------------------------------------------------------------
|
|
|
main.py Ver:0.1
|
|
|
------------------------------------------------------------
|
|
|
Usage: python main.py [options]
|
|
|
--help Show this help.
|
|
|
--mode=[Mode]
|
|
|
TesteNB
|
|
|
TerminateeNB, TerminateUE, TerminateHSS, TerminateSPGW, TerminateMME
|
|
|
LogCollectBuild, LogCollecteNB, LogCollectHSS, LogCollectSPGW, LogCollectMME, LogCollectPing, LogCollectIperf
|
|
|
--eNBIPAddress=[eNB's IP Address]
|
|
|
--eNBRepository=[eNB's Repository URL]
|
|
|
--eNBBranch=[eNB's Branch Name]
|
|
|
--eNBCommitID=[eNB's Commit Number]
|
|
|
--eNBUserName=[eNB's Login User Name]
|
|
|
--eNBPassword=[eNB's Login Password]
|
|
|
--eNBSourceCodePath=[eNB's Source Code Path]
|
|
|
--EPCIPAddress=[EPC's IP Address]
|
|
|
--EPCUserName=[EPC's Login User Name]
|
|
|
--EPCPassword=[EPC's Login Password]
|
|
|
--EPCSourceCodePath=[EPC's Source Code Path]
|
|
|
--EPCType=[EPC's Type: OAI or ltebox]
|
|
|
--ADBIPAddress=[ADB's IP Address]
|
|
|
--ADBUserName=[ADB's Login User Name]
|
|
|
--ADBPassword=[ADB's Login Password]
|
|
|
--XMLTestFile=[XML Test File to be run]
|
|
|
------------------------------------------------------------
|
|
|
```
|
|
|
|
|
|
Note that in the Eurecom environment, all the servers (pythonExecutor, eNB, EPC, ADB) **SHALL** be in the same sub-network. Otherwise we are seeing echos and delays in the commands executed on remote servers due to firewall issues.
|
|
|
|
|
|
## 4.1. Terminate modes ##
|
|
|
|
|
|
The Terminate modes correspond to the calls made during the Terminate stages and the final post block.
|
|
|
|
|
|
These modes usually connect to the corresponding remote server (ie these server's parameter option shall be added) and properly stop the processes corresponding to the function.
|
|
|
|
|
|
In case of TerminateUE, the UE are placed under airplane mode and any residual iperf/ping process is killed.
|
|
|
|
|
|
These modes do not create log files nor generate an HTML report.
|
|
|
|
|
|
## 4.2. LogCollection modes ##
|
|
|
|
|
|
The LogCollection modes correspond to the calls made during the Log Collection stages.
|
|
|
|
|
|
These modes usually connect to the corresponding remote server (ie these server's parameter option shall be added), zip all log files associated to the corresponding function and remove these log files.
|
|
|
|
|
|
The copy from the remote server to the python executor node is done inside the Jenkins Pipeline script.
|
|
|
|
|
|
These modes do not create log files nor generate an HTML report.
|
|
|
|
|
|
## 4.3. TesteNB mode ##
|
|
|
|
|
|
The TesteNB mode corresponds to the Build and Test stage. This is the main mode.
|
|
|
|
|
|
In this mode, the python script parses the XML file (provided as an argument to option `--XMLTestFile`).
|
|
|
|
|
|
# 5. XML test case file #
|
|
|
|