Giter Site home page Giter Site logo

atx-test's People

Contributors

pengchenglin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

atx-test's Issues

运行的时候

C:\Python37\python.exe C:/Users/Administrator/PycharmProjects/ATX-Test/TestSuite_demo/run_cases.py
Backup TestReport dir success
Checking available USB devices connected on PC...
Start check 1 devices connected on PC:
[2019-02-13 17:29:15] uiautomator is starting ...
[2019-02-13 17:29:16] uiautomator is starting ...
[2019-02-13 17:29:17] uiautomator is starting ...
[2019-02-13 17:29:18] uiautomator is starting ...
uiautomator back to normal

There has 1 USB devices alive
B2NGAC6842303956-a0:28:ed:aa:0c:9b-Nokia_7_plus
Test data data.json generated success
Starting Run test >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Waiting for all runs done........
2019-02-13 17:29:21,499 - Nokia 7 plus - INFO - udid: B2NGAC6842303956-a0:28:ed:aa:0c:9b-Nokia_7_plus
udid: %s B2NGAC6842303956-a0:28:ed:aa:0c:9b-Nokia_7_plus
2019-02-13 17:29:21,870 - Nokia 7 plus - DEBUG - --> apk_install.setUpClass
2019-02-13 17:29:22,196 - Nokia 7 plus - DEBUG - <-- apk_install.setUpClass, Success

2019-02-13 17:29:22,196 - Nokia 7 plus - DEBUG - --> apk_install.test_01_install_apk
2019-02-13 17:29:29,390 - Nokia 7 plus - INFO - --> login_page.wait_page
2019-02-13 17:29:45,182 - Nokia 7 plus - ERROR - Exception, Not in LoginPage
2019-02-13 17:29:45,182 - Nokia 7 plus - ERROR - <-- login_page.wait_page, Exception, Error
2019-02-13 17:29:45,593 - Nokia 7 plus - ERROR - Exception, IMAGE:login_page.wait_page-20190213172945.PNG
2019-02-13 17:29:45,593 - Nokia 7 plus - ERROR - <-- apk_install.test_01_install_apk, Exception, Error

Error test_01_install_apk (test_01_install.apk_install)

2019-02-13 17:29:45,594 - Nokia 7 plus - DEBUG - --> apk_install.test_02_fail
2019-02-13 17:30:05,879 - Nokia 7 plus - ERROR - Exception, -32002 Client error: <> data: , method: None
2019-02-13 17:30:05,880 - Nokia 7 plus - ERROR - <-- apk_install.test_02_fail, Exception, Error

Error test_02_fail (test_01_install.apk_install)

2019-02-13 17:30:06,306 - Nokia 7 plus - DEBUG - --> apk_install.test_03_screenshot
2019-02-13 17:30:07,720 - Nokia 7 plus - DEBUG - <-- apk_install.test_03_screenshot, Success

Success test_03_screenshot (test_01_install.apk_install)

2019-02-13 17:30:07,720 - Nokia 7 plus - DEBUG - --> apk_install.test_04_error
2019-02-13 17:30:07,720 - Nokia 7 plus - ERROR - Exception, 手动ERROR!!!!!!!
2019-02-13 17:30:07,720 - Nokia 7 plus - ERROR - <-- apk_install.test_04_error, Exception, Error

Error test_04_error (test_01_install.apk_install)

2019-02-13 17:30:08,115 - Nokia 7 plus - DEBUG - --> apk_install.tearDownClass
2019-02-13 17:30:08,191 - Nokia 7 plus - DEBUG - <-- apk_install.tearDownClass, Success

2019-02-13 17:30:08,191 - Nokia 7 plus - DEBUG - --> TestBootStrap.setUpClass
2019-02-13 17:30:08,601 - Nokia 7 plus - DEBUG - <-- TestBootStrap.setUpClass, Success

2019-02-13 17:30:08,601 - Nokia 7 plus - DEBUG - --> TestBootStrap.test_01_login
2019-02-13 17:30:08,601 - Nokia 7 plus - INFO - --> login_page.wait_page
2019-02-13 17:30:23,844 - Nokia 7 plus - ERROR - Exception, Not in LoginPage
2019-02-13 17:30:23,844 - Nokia 7 plus - ERROR - <-- login_page.wait_page, Exception, Error
2019-02-13 17:30:24,282 - Nokia 7 plus - ERROR - Exception, IMAGE:login_page.wait_page-20190213173023.PNG
2019-02-13 17:30:24,282 - Nokia 7 plus - ERROR - <-- TestBootStrap.test_01_login, Exception, Error

Error test_01_login (test_02_bootstrap.TestBootStrap)

2019-02-13 17:30:24,283 - Nokia 7 plus - DEBUG - --> TestBootStrap.test_02_show_toast

下面不知道什么错误

--------------------- 测试结束 ---------------------
------------- 合计耗时: 0:01:28.935292 -------------
All runs done........
Traceback (most recent call last):
File "D:/ATX-Test-master/TestSuite_demo/run_cases.py", line 19, in
Drivers().run(cases)
File "D:\ATX-Test-master\Public\Drivers.py", line 142, in run
ChromeDriver.kill()
File "D:\ATX-Test-master\Public\chromedriver.py", line 84, in kill
pid = getPidByName('chromedriver.exe')
File "D:\ATX-Test-master\Public\chromedriver.py", line 30, in getPidByName
if pid.name() == Str:
File "C:\Python37\lib\site-packages\psutil_init_.py", line 609, in name
name = self._proc.name()
File "C:\Python37\lib\site-packages\psutil_pswindows.py", line 635, in wrapper
return fun(self, *args, **kwargs)
File "C:\Python37\lib\site-packages\psutil_pswindows.py", line 687, in name
return py2_strencode(os.path.basename(self.exe()))
File "C:\Python37\lib\site-packages\psutil_pswindows.py", line 635, in wrapper
return fun(self, *args, **kwargs)
File "C:\Python37\lib\site-packages\psutil_pswindows.py", line 701, in exe
return py2_strencode(convert_dos_path(cext.proc_exe(self.pid)))
OSError: [WinError 0] 操作成功完成。

Process finished with exit code 1

casestrategy报错

请问在执行 run_all_cases.py 时,报了以下错误,是不是有路径配置问题?

[I 210119 19:51:12 devices_new:145]
There has 2 USB devices alive
Traceback (most recent call last):
File "/Users/xxx/Documents/xxx/pythonWorkspaces/ATX-Test/Demo/run_all_cases.py", line 30, in
cases = cs.collect_cases(suite=True)
File "/Users/xxx/Documents/xxx/pythonWorkspaces/ATX-Test/Public/casestrategy.py", line 40, in collect_cases
self._collect_cases(cases, top_dir=test_suite)
File "/Users/xxx/Documents/xxx/pythonWorkspaces/ATX-Test/Public/casestrategy.py", line 16, in _collect_cases
suites = unittest.defaultTestLoader.discover(self.case_path, pattern=self.case_pattern, top_level_dir=top_dir)
File "/usr/local/Cellar/[email protected]/3.8.6/Frameworks/Python.framework/Versions/3.8/lib/python3.8/unittest/loader.py", line 306, in discover
os.path.dirname((the_module.file)))
File "/usr/local/Cellar/[email protected]/3.8.6/Frameworks/Python.framework/Versions/3.8/lib/python3.8/posixpath.py", line 152, in dirname
p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
['TestSuite_demo']
/Users/xxx/Documents/xxx/pythonWorkspaces/ATX-Test/Demo/TestCase

Process finished with exit code 1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.