adolli
adolli
toast弹出的时间就几秒,在这几秒内通过UI检视到是非常不稳定的。如果抓图然后ocr的话速度可能非常不理想,这样也不能保证稳定。 我考虑下能否通过android java api去检测到toast存在。
多谢提示,我们尽快在下个版本更新上这部分用法
大家不要紧张,目前开发任务过多,我们正在排期。
`setUpClass` will only be invoked once at the initialization stage of class `TestSuite` or `TestCase`. Here is an example of how to run cases together https://github.com/AirtestProject/my-testflow/blob/master/testflow/scripts/multitests_together.py . Please note that...
more differences about `setUpClass` and `setUp`. `setUpClass` of each TestCase or TestSuite invoke before running all testcases, while setUp is invoking just at the beginning of the TestSuite or TestCase....
1. u cannot write a testcase without a class or class-like structure. Unless u make your own execution sequence. 2. Simply use `pocounit.run(xxx)` where xxx is your testcase or testsuite....
@rvijai92 sorry for the inconvenience and late reply, i am too busy all the time.
可以的,在PocoTestCase的子类里面复写classmethod `name`即可。例如 ```py class XXX(PocoTestCase): @classmethod def name(cls): return 'test-xxx-{}'.format(datetime.datetime.now()) @classmethod def getMetaInfo(cls): return { 'deviceName': 'xxx', 'batch': 'batch-xxx', } ``` 这样就会在报告里根据你返回的name来显示。同样的还可以复写getMetaInfo来给这个测试用例提供更多运行时信息和报告信息。
ios上暂时还没有实现录屏功能。ios上录屏有点困难,我们还没有对应的库可以做到,你有办法用代码控制录屏吗?
你的mac上是不是配了什么防火墙策略?因为adb server/adb forward返回了一个空字符串响应