Oracle® Communications DSR Automated Test Suite (ATS) Installation and User's Guide Release 8.4 F17134-01 |
|
![]() Previous |
Table 4-1 Test Case Execution
Sl. No. | Procedure | Description |
---|---|---|
1.
|
Once the installation is successfully completed a directory is created in the /home/cloud-user/ named as tests |
[cloud-user@dsrautomationol7vm1 tests]$ cd /home/cloud-user/ [cloud-user@dsrautomationol7vm1 tests]$ ls -lrth total 44K drwxr-xr-x. 5 cloud-user cloud-user 4.0K Mar 28 01:57 ats -rwx------. 1 cloud-user cloud-user 46 Apr 1 02:44 environment.py -rwx------. 1 cloud-user cloud-user 444 Apr 1 07:29 dut.yaml drwxr-xr-x. 2 cloud-user cloud-user 4.0K Apr 1 07:29 steps drwxr-xr-x. 2 cloud-user cloud-user 4.0K Apr 1 07:29 passwords drwxr-xr-x. 2 cloud-user cloud-user 4.0K Apr 1 07:29 examples |
2.
|
Navigate to this folder and edit the dut.yaml to provide the DSR, SDS and Local IPs to be used. |
DSRVIP: - name: DSRNOVIP IP: <Provide DSR NO VIP here> - name: DSRSOVIP IP: <Provide DSR SO VIP here> SIGNALING_IPs: - IP: <provide MP Signaling IP #1 here> type: LocalIp<provide the IP Type (LocalIp or IpfeTsa)> - IP: <provide MP Signaling IP #2 here> type: LocalIp<provide the IP Type (LocalIp or IpfeTsa)> - IP: <provide TSA Signaling IP #1 here> type: IpfeTsa<provide the IP Type (LocalIp or IpfeTsa)> - IP: <provide TSA Signaling IP #2 here> type: IpfeTsa<provide the IP Type (LocalIp or IpfeTsa)> ipfeInitiatorDampIp: - IP: <IP of the MP to be used as Initiator MP while configuring IPFE Initiator type connections> SDSVIP: - name: SDSNOVIP IP: <provide SDS NOAM VIP here> - name: SDSSOVIP IP: <provide SDS SOAM VIP here> LOCAL: - SIGNALING_IPs: - <Provide Local signaling IP of the current server here> |
3.
|
Edit the file passwords/auth.yaml and provide the DSR GUI password and Command Line interface password. |
--- SERVERS: - name: NOAM username: guiadmin password: <provide the NOAM GUI Password here> dsr_mmi_version: v3.0 sds_mmi_version: v1.0 cli_username: admusr cli_password: <provide the command line interface password here> - name: TRAFFICSERVER username: root password: <provide the password of the local server> ip: <IP of the local server> |
4.
|
Navigate to this folder and execute the below command to execute the sample test case. |
[cloud-user@nftest-worker01 tests]$ behave -i examples/sample.feature -c [cloud-user@nftest-worker01 tests]$ behave -i examples/sample.feature -c Feature: Sample Feature File # examples/sample.feature:1 Scenario: Sample Scenario # examples/sample.feature:2 Then Sample Step For Pass # ../../../usr/lib/python2.7/site-packages/ocdsr_automation-0.0.1-py2.7.egg/ocdsrautomation/ocdsr_steps.py:108 2019-03-11 06:03:19,294 INFO LOG.STEP | Sample Step passed 2019-03-11 06:03:19,294 WARNING LOG.STEP | Sample Step passed 2019-03-11 06:03:19,294 DEBUG LOG.STEP | Sample Step passed 2019-03-11 06:03:19,294 ERROR LOG.STEP | Sample Step passed 1 feature passed, 0 failed, 0 skipped 1 scenario passed, 0 failed, 0 skipped 1 step passed, 0 failed, 0 skipped, 0 undefined Took 0m0.001s The sample test case should run and complete successfully. |
5.
|
The test cases are located in the folder ats/features folder. In the 8.4 ATS, the mentioned test cases are provided. |
[cloud-user@dsrautomationol7vm1 behave_test_framework]$ ls -lrth ats/featurefile/ total 64K -rw-rw-r--. 1 cloud-user cloud-user 2.0K Apr 1 02:44 Test_REROUTEANSWER1.feature -rw-rw-r--. 1 cloud-user cloud-user 1.6K Apr 1 02:44 Test_REROUTE3.feature -rw-rw-r--. 1 cloud-user cloud-user 1.7K Apr 1 02:44 Test_RBAR3.feature -rw-rw-r--. 1 cloud-user cloud-user 1.7K Apr 1 02:44 Test_PRT1.feature -rw-rw-r--. 1 cloud-user cloud-user 988 Apr 1 02:44 Test_IPFE1.feature -rw-rw-r--. 1 cloud-user cloud-user 1.8K Apr 1 02:44 Test_FABR3.feature -rw-rw-r--. 1 cloud-user cloud-user 995 Apr 1 02:44 Test_EMRT1.feature -rw-rw-r--. 1 cloud-user cloud-user 1.1K Apr 1 02:44 Test_DESTHOST1.feature -rw-rw-r--. 1 cloud-user cloud-user 728 Apr 1 05:35 Test_AAA2.feature -rw-rw-r--. 1 cloud-user cloud-user 1.2K Apr 1 05:40 Test_AAA1.feature -rw-rw-r--. 1 cloud-user cloud-user 1.6K Apr 1 06:57 Test_DCL9.feature -rw-rw-r--. 1 cloud-user cloud-user 1.2K Apr 1 07:29 Test_ECC3.feature -rw-rw-r--. 1 cloud-user cloud-user 1.7K Apr 1 08:14 Test_RARG2.feature -rw-rw-r--. 1 cloud-user cloud-user 1.6K Apr 1 08:28 Test_DRMP1.feature -rw-rw-r--. 1 cloud-user cloud-user 2.4K Apr 1 08:38 Test_MSGPRIORITY3.feature -rw-rw-r--. 1 cloud-user cloud-user 1001 Apr 2 04:56 Test_SCTP1.feature -rw-rw-r--. 1 cloud-user cloud-user 1001 Apr 2 04:56 Test_NOAM_GUIAutomation.feature -rw-rw-r--. 1 cloud-user cloud-user 1001 Apr 2 04:56 Test_SOAM_GUIAutomation.feature -rw-rw-r--. 1 cloud-user cloud-user 1001 Apr 2 04:56 Test_Regression_GUIAutomation.feature |
6.
|
To execute any test case in the above list use the below command. Test cases should only executed from the /home/cloud-user/tests folder |
[cloud-user@dsrautomationol7vm1 tests]$ behave -i ats/featurefile/Test_DCL9.feature -c |
7.
|
To execute all test case use the below command. Test cases should only executed from the /home/cloud-user/tests folder |
[cloud-user@dsrautomationol7vm1 tests]$ behave -i ats/featurefile/Test_Signaling_ALL.feature -c |
8.
|
To execute SCTP test case use the below command. Test cases should only executed from the /home/cloud-user/tests folder |
[cloud-user@dsrautomationol7vm1 tests]$ sudo behave -i ats/featurefile/Test_SCTP1.feature -c |
9.
|
To execute feature files related to GUI automation | Open a VNC session in the tiger VNC installed. To open a VNC session , give VNC server to be hostname:display and password will be the password set while installing VNC server. |
10.
|
The test execution produces logs that are printed on the standard output and can be redirected to any file for storage. |