课程: Mobile Testing with Appium
今天就学习课程吧!
今天就开通帐号,24,700 门业界名师课程任您挑!
Touch actions: Theory
[Instructor] One of the big differences between mobile apps and traditional desktop apps is the input style. Desktop apps typically use a mouse and a keyboard. Whereas mobile apps are driven almost entirely by one or two fingers. What this means is that automating mobile app test scenarios might involve simulating the input of a human finger or two or three. Luckily the Appium API supports a totally general way of describing touch actions. Here's my test app again. This time, on a view which has a scrollable list. A scrollable list is a great example of a mobile app component that a user would interact with, using their finger. Lets say I wanted to automate this list of cloud types, but the particular cloud type I want to tap is not present on the screen. What would I do as a human user? Well, I'd first place one of my fingers near the lower half of the screen. Then I'd drag up, then I'd release my finger. All together the app interprets this as a scroll and will move the content so I…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。