Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 463) sorted by relevance

12345678910>>...19

/test/xts/tools/reftest/
Dsvg.py20 def setUp(self) -> None: argument
21 self.LE = WebView()
22 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
24 def test_svg_001(self): argument
25 self.LE.init_runner('test_svg_001') # 打开runner页面
26 self.LE.click_js() # 取消勾选js
27 self.LE.click_manual() # 取消勾选manual
28self.LE.send_path('svg/animations/use-animate-display-none-symbol.html') # 是否进入指定路径 默认是/ 即全部路径
29 self.LE.start_test() # 点击start test 按钮
30 self.LE.click_show_test() # 点击show test按钮
[all …]
Dwpt_css_two.py23 def setUp(self) -> None:
24 self.LE = WebView()
25 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver argument
27 def test_css_3001(self):
28 self.LE.init_runner('test_css_3001') # 打开runner页面
29 self.LE.remove_checkbox()
30 self.LE.send_path('css/CSS2/linebox/vertical-align-056.xht') # 是否进入指定路径 默认是/ 即全部路径
31 self.LE.start_show_test("css_3001")
32 self.LE.test_implicit_expression_screenshot('//*[@id="div2"]', "test") # test页面截图
33 self.LE.test_implicit_expression_screenshot('//*[@id="div3"]', "test") # test页面截图
[all …]
Dmathml.py21 def setUp(self) -> None: argument
22 self.LE = WebView()
23 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
25 def test_mathml_001(self): argument
26 self.LE.init_runner('test_mathml_001') # 打开runner页面
27 self.LE.click_js() # 取消勾选js
28 self.LE.click_manual() # 取消勾选manual
29self.LE.send_path('mathml/presentation-markup/direction/direction-006.html') # 是否进入指定路径 默认是/ 即全部路径
30 self.LE.start_test() # 点击start test 按钮
31 self.LE.click_show_test() # 点击show test按钮
[all …]
Dwpt_css_one.py23 def setUp(self) -> None:
24 self.LE = WebView()
25 self.LE.init_webview(test_package='com.example.myapplication') # ����chromeDriver argument
27 def test_css_001(self):
28 self.LE.init_runner('test_css_001') # ��runnerҳ��
31 self.LE.remove_checkbox()
32self.LE.send_path('css/CSS2/abspos/abspos-containing-block-initial-001.xht') # �Ƿ����ָ��·�� Ĭ����…
35 self.LE.start_show_test("css_1")
36 self.LE.test_file_screenshot("test") # testҳ���ͼ
37 self.LE.click_show_ref() # ���show reference��ť
[all …]
Dwpt_html.py19 def setUp(self) -> None: argument
20 self.LE = WebView()
21 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
22 def test_html_001(self): argument
23 self.LE.init_runner('test_html_001') # 打开runner页面
24 self.LE.click_js() # 取消勾选js
25 self.LE.click_manual() # 取消勾选manual
26self.LE.send_path('html/browsers/sandboxing/sandbox-parse-noscript.html') # 是否进入指定路径 默认是/ 即全部路径
27 self.LE.start_test() # 点击start test 按钮
28 self.LE.click_show_test() # 点击show test按钮
[all …]
Dinfrastructure.py20 def setUp(self) -> None: argument
21 self.LE = WebView()
22 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
24 def test_infrastructure_001(self): argument
25 self.LE.init_runner('test_infrastructure_001') # 打开runner页面
26 self.LE.click_js() # 取消勾选js
27 self.LE.click_manual() # 取消勾选manual
28 self.LE.send_path('infrastructure/assumptions/ahem-ref.html') # 是否进入指定路径 默认是/ 即全部路径
29 self.LE.start_test() # 点击start test 按钮
30 self.LE.click_show_test() # 点击show test按钮
[all …]
Dforced_colors_mode.py21 def setUp(self) -> None: argument
22 self.LE = WebView()
23 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
25 def test_forced_colors_mode_001(self): argument
26 self.LE.init_runner('test_forced_colors_mode_001') # 打开runner页面
27 self.LE.click_js() # 取消勾选js
28 self.LE.click_manual() # 取消勾选manual
29self.LE.send_path('forced-colors-mode/backplate/forced-colors-mode-backplate-01.html') # 是否进入指定路径…
30 self.LE.start_test() # 点击start test 按钮
31 self.LE.click_show_test() # 点击show test按钮
[all …]
Dshadow_dom.py20 def setUp(self) -> None: argument
21 self.LE = WebView()
22 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
24 def test_shadow_dom_001(self): argument
25 self.LE.init_runner('test_shadow_dom_001') # 打开runner页面
26 self.LE.click_js() # 取消勾选js
27 self.LE.click_manual() # 取消勾选manual
28 self.LE.send_path('shadow-dom/directionality-001.tentative.html') # 是否进入指定路径 默认是/ 即全部路径
29 self.LE.start_test() # 点击start test 按钮
30 self.LE.click_show_test() # 点击show test按钮
[all …]
Ddensity_size_correction.py20 def setUp(self) -> None: argument
21 self.LE = WebView()
22 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
24 def test_density_size_correction_001(self): argument
25 self.LE.init_runner('test_density_size_correction_001') # 打开runner页面
26 self.LE.click_js() # 取消勾选js
27 self.LE.click_manual() # 取消勾选manual
28self.LE.send_path('density-size-correction/density-corrected-image-svg-aspect-ratio-cross-origin.s…
29 self.LE.start_test() # 点击start test 按钮
30 self.LE.click_show_test() # 点击show test按钮
[all …]
Dcompat.py19 def setUp(self) -> None: argument
20 self.LE = WebView()
21 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
23 def test_compat_001(self): argument
24 self.LE.init_runner('test_compat_001') # 打开runner页面
25 self.LE.click_js() # 取消勾选js
26 self.LE.click_manual() # 取消勾选manual
27 self.LE.send_path('compat/webkit-background-origin-text.html') # 是否进入指定路径 默认是/ 即全部路径
28 self.LE.start_test() # 点击start test 按钮
29 self.LE.click_show_test() # 点击show test按钮
[all …]
Dquirks.py20 def setUp(self) -> None: argument
21 self.LE = WebView()
22 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
24 def test_quirks_001(self): argument
25 self.LE.init_runner('test_quirks_001') # 打开runner页面
26 self.LE.click_js() # 取消勾选js
27 self.LE.click_manual() # 取消勾选manual
28 self.LE.send_path('quirks/body-fills-html-quirk-float.html') # 是否进入指定路径 默认是/ 即全部路径
29 self.LE.start_test() # 点击start test 按钮
30 self.LE.click_show_test() # 点击show test按钮
[all …]
Dscroll_animations.py20 def setUp(self) -> None: argument
22 self.LE = WebView()
23 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
25 def test_scroll_animations_001(self): argument
26 self.LE.init_runner('test_scroll_animations_001') # 打开runner页面
27 self.LE.click_js() # 取消勾选js
28 self.LE.click_manual() # 取消勾选manual
29self.LE.send_path('scroll-animations/css/scroll-timeline-default-iframe.html') # 是否进入指定路径 默认是/ 即全…
30 self.LE.start_test() # 点击start test 按钮
31 self.LE.click_show_test() # 点击show test按钮
[all …]
Danimation_worklet.py19 def setUp(self) -> None: argument
20 self.LE = WebView()
21 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
23 def test_animation_worklet_001(self): argument
24 self.LE.init_runner('test_animation_worklet_001') # 打开runner页面
25 self.LE.click_js() # 取消勾选js
26 self.LE.click_manual() # 取消勾选manual
27self.LE.send_path('animation-worklet/worklet-animation-cancel.https.html') # 是否进入指定路径 默认是/ 即全部路径
28 self.LE.start_test() # 点击start test 按钮
29 self.LE.click_show_test() # 点击show test按钮
[all …]
Dfetch.py20 def setUp(self) -> None: argument
21 self.LE = WebView()
22 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
24 def test_fetch_001(self): argument
25 self.LE.init_runner('test_fetch_001') # 打开runner页面
26 self.LE.click_js() # 取消勾选js
27 self.LE.click_manual() # 取消勾选manual
28 self.LE.send_path('fetch/corb/img-html-correctly-labeled.sub.html') # 是否进入指定路径 默认是/ 即全部路径
29 self.LE.start_test() # 点击start test 按钮
30 self.LE.click_show_test() # 点击show test按钮
[all …]
Dweb_animations.py20 def setUp(self) -> None: argument
21 self.LE = WebView()
22 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
24 def test_web_animations_001(self): argument
25 self.LE.init_runner('test_web_animations_001') # 打开runner页面
26 self.LE.click_js() # 取消勾选js
27 self.LE.click_manual() # 取消勾选manual
28self.LE.send_path('web-animations/animation-model/keyframe-effects/transform-and-opacity-on-inline…
29 self.LE.start_test() # 点击start test 按钮
30 self.LE.click_show_test() # 点击show test按钮
[all …]
Dcontent_dpr.py20 def setUp(self) -> None: argument
21 self.LE = WebView()
22 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
24 def test_content_dpr_001(self): argument
25 self.LE.init_runner('test_content_dpr_001') # 打开runner页面
26 self.LE.click_js() # 取消勾选js
27 self.LE.click_manual() # 取消勾选manual
28 self.LE.send_path('content-dpr/content-dpr-various-elements.html') # 是否进入指定路径 默认是/ 即全部路径
29 self.LE.start_test() # 点击start test 按钮
30 self.LE.click_show_test() # 点击show test按钮
[all …]
DTool.py23 def __init__(self): argument
24 self.driver = None
25 self.host = "http://localhost:9515"
26 self.option_name = "androidPackage"
27 self.driver_path = 'C:\\Users\\qianwangdq\\Desktop\\chromedriver.exe'
28 def init_webview(self, test_package): argument
32 self.init_chromedriver()
35 options.add_experimental_option(name=self.option_name,
37 self.driver = webdriver.Remote(
38 command_executor=self.host,
[all …]
Dencoding.py20 def setUp(self) -> None: argument
22 self.LE = WebView()
23 self.LE.init_webview(test_package='com.example.myapplication') # 运行chromeDriver
25 def test_encoding_001(self): argument
26 self.LE.init_runner('test_encoding_001') # 打开runner页面
27 self.LE.click_js() # 取消勾选js
28 self.LE.click_manual() # 取消勾选manual
29 self.LE.send_path('encoding/eof-shift_jis.html') # 是否进入指定路径 默认是/ 即全部路径
30 self.LE.start_test() # 点击start test 按钮
31 self.LE.click_show_test() # 点击show test按钮
[all …]
/test/testfwk/xdevice/plugins/devicetest/core/
Dvariables.py75 def __init__(self, _log): argument
77 self.log = _log
78 self.step_total = 0 # tests 数
79 self.run_section = "" # RunSection.SETUP
80 self.case_result = RunResult.PASSED # 当前用例执行结果
81 self.name = '' # 类方法名,即:用例名case_id
82 self.suite_name = "" # 用例对应哪个测试套
83 self.error_msg = '' # 用例失败信息
84 self.case_screenshot_dir = None # 当前用例失败截图的图片保存路径
85 self.case_flash_error_msg = False # 记录当前y用例是否更新了errorMsg
[all …]
Dexception.py24 def __init__(self, error_msg): argument
25 super(TestAssertionError, self).__init__(error_msg)
26 self.error_msg = error_msg
28 def __str__(self): argument
29 return str(self.error_msg)
33 def __init__(self, error_msg): argument
34 super(RPCException, self).__init__(error_msg)
35 self.error_msg = error_msg
37 def __str__(self): argument
38 return str(self.error_msg)
[all …]
/test/testfwk/xdevice/src/xdevice/_core/
Dexception.py21 def __init__(self, error_msg, error_no=""): argument
22 super(ParamError, self).__init__(error_msg, error_no)
23 self.error_msg = error_msg
24 self.error_no = error_no
26 def __str__(self): argument
27 return str(self.error_msg)
31 def __init__(self, error_msg, error_no=""): argument
32 super(DeviceError, self).__init__(error_msg, error_no)
33 self.error_msg = error_msg
34 self.error_no = error_no
[all …]
Dlogger.py66 def __init__(self, thread_id): argument
68 self.thread_id = thread_id
70 def filter(self, record: LogRecord) -> bool: argument
71 return record.thread == self.thread_id
76 def __init__(self): argument
78 self.driver_thread_ids = []
80 def filter(self, record: LogRecord) -> bool: argument
81 return record.thread not in self.driver_thread_ids
83 def add_driver_thread_id(self, thread_id): argument
84 self.driver_thread_ids.append(thread_id)
[all …]
/test/testfwk/xdevice/plugins/devicetest/core/suite/
Dtest_suite.py57 def __init__(self, configs, path): argument
58 self.configs = configs
59 self.devices = []
60 self.device1 = None
61 self.device2 = None
63 self.pass_through = None
64 self.set_devices(self.configs["devices"])
65 self.path = path
66 self.log = self.configs["log"]
67 self.error_msg = ''
[all …]
/test/testfwk/xdevice/plugins/ohos/src/ohos/environment/
Ddevice.py84 def device_action(self, *args, **kwargs): argument
85 if not self.get_recover_state():
86 LOG.debug("Device {} {} is false".format(self.device_sn,
92 result = func(self, *args, **kwargs)
100 result = func(self, *args, **kwargs)
103 self.log.exception("Generate report error!", exc_info=False)
108 self.log.error("error type: {}, error: {}".format
113 HdcHelper.CONNECTOR_NAME, self.device_sn, ConfigConst.recover_state))
114 self.set_recover_state(False)
115 callback_to_outer(self, "recover failed")
[all …]
/test/testfwk/xdevice/plugins/devicetest/runner/
Dtest_runner.py54 def __init__(self): argument
55 self.run_list = None
56 self.no_run_list = None
57 self.running = None
58 self.configs = None
59 self.devices = None
60 self.log = None
61 self.start_time = None
62 self.test_results = None
63 self.upload_result_handler = None
[all …]

12345678910>>...19