Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangjie
OpenXG-RAN
Commits
78c7fb9f
Commit
78c7fb9f
authored
Sep 01, 2020
by
Remi Hardy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fixing + completing fr1 automation
parent
d50e523d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
88 additions
and
4 deletions
+88
-4
ci-scripts/args_parse.py
ci-scripts/args_parse.py
+1
-1
ci-scripts/cls_cots_ue.py
ci-scripts/cls_cots_ue.py
+5
-3
ci-scripts/cots_ue_ctl.yaml
ci-scripts/cots_ue_ctl.yaml
+2
-0
ci-scripts/xml_files/fr1_toggle_cots_ue_airplaneOFF.xml
ci-scripts/xml_files/fr1_toggle_cots_ue_airplaneOFF.xml
+40
-0
ci-scripts/xml_files/fr1_toggle_cots_ue_airplaneON.xml
ci-scripts/xml_files/fr1_toggle_cots_ue_airplaneON.xml
+40
-0
No files found.
ci-scripts/args_parse.py
View file @
78c7fb9f
...
...
@@ -34,7 +34,7 @@
import
sys
# arg
import
re
# reg
import
yaml
import
constants
as
CONST
#-----------------------------------------------------------
# Parsing Command Line Arguements
...
...
ci-scripts/cls_cots_ue.py
View file @
78c7fb9f
...
...
@@ -53,7 +53,7 @@ class CotsUe:
def
Check_Airplane
(
self
):
mySSH
=
sshconnection
.
SSHConnection
()
mySSH
.
open
(
self
.
ADBIPAddr
,
self
.
ADBUserName
,
self
.
ADBPassWord
)
status
=
mySSH
.
cde_check_value
(
'
sudo
adb shell settings get global airplane_mode_on '
,
[
'0'
,
'1'
],
5
)
status
=
mySSH
.
cde_check_value
(
'adb shell settings get global airplane_mode_on '
,
[
'0'
,
'1'
],
5
)
mySSH
.
close
()
return
status
...
...
@@ -66,7 +66,9 @@ class CotsUe:
if
target_id
in
cots_ue_ctl
:
mySSH
=
sshconnection
.
SSHConnection
()
mySSH
.
open
(
self
.
ADBIPAddr
,
self
.
ADBUserName
,
self
.
ADBPassWord
)
mySSH
.
command
(
'sudo adb start-server'
,
'\$'
,
5
)
logging
.
info
(
str
(
self
.
ADBIPAddr
)
+
' '
+
str
(
self
.
ADBUserName
)
+
' '
+
str
(
self
.
ADBPassWord
))
mySSH
.
command
(
'adb start-server'
,
'\$'
,
5
)
mySSH
.
command
(
'adb devices'
,
'\$'
,
5
)
logging
.
info
(
"Toggling COTS UE Airplane mode to : "
+
target_state_str
)
#get current state
current_state
=
self
.
Check_Airplane
()
...
...
@@ -90,7 +92,7 @@ class CotsUe:
logging
.
error
(
"Current state is : "
+
str
(
current_state
))
else
:
print
(
"Airplane mode is already "
+
target_state_str
)
mySSH
.
command
(
'
sudo
adb kill-server'
,
'\$'
,
5
)
mySSH
.
command
(
'adb kill-server'
,
'\$'
,
5
)
mySSH
.
close
()
#ue id is NOT in the dictionary
else
:
...
...
ci-scripts/cots_ue_ctl.yaml
View file @
78c7fb9f
oppo
:
-
adb shell input keyevent KEYCODE_POWER
-
adb shell input swipe 300 700 300
0
-
adb shell am start -a android.settings.AIRPLANE_MODE_SETTINGS
-
adb shell input keyevent
20
-
adb shell input tap 968
324
...
...
ci-scripts/xml_files/fr1_toggle_cots_ue_airplaneOFF.xml
0 → 100644
View file @
78c7fb9f
<!--
Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The OpenAirInterface Software Alliance licenses this file to You under
the OAI Public License, Version 1.1 (the "License"); you may not use this file
except in compliance with the License.
You may obtain a copy of the License at
http://www.openairinterface.org/?page_id=698
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
For more information about the OpenAirInterface (OAI) Software Alliance:
contact@openairinterface.org
-->
<testCaseList>
<htmlTabRef>
test-airplane-mode
</htmlTabRef>
<htmlTabName>
AirplaneToggle
</htmlTabName>
<htmlTabIcon>
tasks
</htmlTabIcon>
<TestCaseRequestedList>
010000
</TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList>
<testCase
id=
"010000"
>
<class>
COTS_UE_Airplane
</class>
<desc>
Toggle COTS Airplane mode ON
</desc>
<cots_id>
oppo
</cots_id>
<cots_run_mode>
OFF
</cots_run_mode>
</testCase>
</testCaseList>
ci-scripts/xml_files/fr1_toggle_cots_ue_airplaneON.xml
0 → 100644
View file @
78c7fb9f
<!--
Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The OpenAirInterface Software Alliance licenses this file to You under
the OAI Public License, Version 1.1 (the "License"); you may not use this file
except in compliance with the License.
You may obtain a copy of the License at
http://www.openairinterface.org/?page_id=698
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
For more information about the OpenAirInterface (OAI) Software Alliance:
contact@openairinterface.org
-->
<testCaseList>
<htmlTabRef>
test-airplane-mode
</htmlTabRef>
<htmlTabName>
AirplaneToggle
</htmlTabName>
<htmlTabIcon>
tasks
</htmlTabIcon>
<TestCaseRequestedList>
010000
</TestCaseRequestedList>
<TestCaseExclusionList></TestCaseExclusionList>
<testCase
id=
"010000"
>
<class>
COTS_UE_Airplane
</class>
<desc>
Toggle COTS Airplane mode ON
</desc>
<cots_id>
oppo
</cots_id>
<cots_run_mode>
ON
</cots_run_mode>
</testCase>
</testCaseList>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment