mirror of
https://github.com/openharmony/developtools_integration_verification.git
synced 2026-07-22 23:25:39 -04:00
@@ -497,14 +497,14 @@ def cmd_test(screenshot_path, py_path, new_report_path, resource_path, sn, test_
|
||||
|
||||
@timeout(900)
|
||||
def outCmd(cmd, save_screenshot_path, base_screenshot_path, resource_path):
|
||||
logger.info("cmd is: %s" % cmd)
|
||||
if system_type == "Windows":
|
||||
shell = False
|
||||
encoding = "gbk"
|
||||
else:
|
||||
shell = True
|
||||
encoding = "utf-8"
|
||||
p = subprocess.Popen(cmd, shell=shell, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, encoding=encoding)
|
||||
# logger.info("cmd is: %s" % cmd)
|
||||
# if system_type == "Windows":
|
||||
# shell = False
|
||||
# encoding = "gbk"
|
||||
# else:
|
||||
# shell = True
|
||||
# encoding = "utf-8"
|
||||
p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, encoding='utf-8', errors='ignore', universal_newlines=True)
|
||||
curline = p.stdout.readline()
|
||||
list_png_name = []
|
||||
try:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "Config for OpenHarmony devicetest test cases",
|
||||
"description": "外部用例:ACL白名单检查",
|
||||
"environment": [
|
||||
{
|
||||
"type": "device",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "Config for OpenHarmony devicetest test cases",
|
||||
"description": "外部用例:APL白名单检查",
|
||||
"environment": [
|
||||
{
|
||||
"type": "device",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "Config for OpenHarmony devicetest test cases",
|
||||
"description": "检查相机拍照录制以及点左下角缩略图跳转图库是否正常",
|
||||
"environment": [
|
||||
{
|
||||
"type": "device",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "Config for OpenHarmony devicetest test cases",
|
||||
"description": "检查联系人应用是否能正常启动",
|
||||
"environment": [
|
||||
{
|
||||
"type": "device",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "Config for OpenHarmony devicetest test cases",
|
||||
"description": "检查是否有[foundation,render_service,appspawn] Crash",
|
||||
"environment": [
|
||||
{
|
||||
"type": "device",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "Config for OpenHarmony devicetest test cases",
|
||||
"description": "检查音乐应用是否能正常启动",
|
||||
"environment": [
|
||||
{
|
||||
"type": "device",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "Config for OpenHarmony devicetest test cases",
|
||||
"description": "检查是否能正常点亮屏幕,滑动解锁并进入桌面",
|
||||
"environment": [
|
||||
{
|
||||
"type": "device",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "Config for OpenHarmony devicetest test cases",
|
||||
"description": "检查短信应用是否能正常启动",
|
||||
"environment": [
|
||||
{
|
||||
"type": "device",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "Config for OpenHarmony devicetest test cases",
|
||||
"description": "检查备忘录应用是否能正常启动,点击笔记内容是否能拉起键盘输入法",
|
||||
"environment": [
|
||||
{
|
||||
"type": "device",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "Config for OpenHarmony devicetest test cases",
|
||||
"description": "检查右上角下滑是否能进入控制中心",
|
||||
"environment": [
|
||||
{
|
||||
"type": "device",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "Config for OpenHarmony devicetest test cases",
|
||||
"description": "检查图库应用是否能正常启动以及sandbox测试",
|
||||
"environment": [
|
||||
{
|
||||
"type": "device",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "Config for OpenHarmony devicetest test cases",
|
||||
"description": "检查设备开机后是否有进程丢失",
|
||||
"environment": [
|
||||
{
|
||||
"type": "device",
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"description": "Config for OpenHarmony devicetest test cases",
|
||||
"description": "检查设置应用里面的wlan开关是否能正常打开和关闭",
|
||||
"environment": [
|
||||
{
|
||||
"type": "device",
|
||||
|
||||
Reference in New Issue
Block a user