美文网首页
swift monkey

swift monkey

作者: 佐筱猪 | 来源:发表于2017-04-10 10:03 被阅读48次

https://testerhome.com/topics/7544
第一步加swift版本的UITest
第二步
target "supermarketExmapleUITests" do
use_frameworks!
pod 'SwiftMonkey', '~> 1.0.0'
end
第三步
override func setUp() {
super.setUp()
XCUIApplication().launch()
}

override func tearDown() {
    super.tearDown()
}

func testMonkey() {
    let application = XCUIApplication()
    _ = application.descendants(matching: .any).element(boundBy: 0).frame
    let monkey = Monkey(frame: application.frame)
    monkey.addDefaultXCTestPrivateActions()
    monkey.addXCTestTapAlertAction(interval: 100, application: application)
    monkey.monkeyAround()
}

相关文章

  • Swift Monkey整理

    Swift Monkey Test 基于框架:XCTest代码侵入:有支持语言:OC,Swift用例语言:Swif...

  • swift monkey

    https://testerhome.com/topics/7544第一步加swift版本的UITest第二步ta...

  • 高仿花田小憩OC版

    前段时候在简书看博客时,看到Monkey_ALin 分享的高仿花田小憩(Swift版),项目整体不是太复杂,并且展...

  • Android 自动化测试 - Monkey Event(事件)

    Monkey 事件简介 Monkey 通过注入事件来对手机或者模拟器进行操作,根据Monkey源码.Monkey的...

  • monkey03--monkey script

    执行Monkey脚本的命令 adb shell monkey -f Monkey ...

  • Monkey,Linux,Adb一些常用的命令

    Monkey adb shell monkey -v 10 执行monkey测试10次 adbshellmonke...

  • 用到了monkey

    monkey测试: Monkey的基本用法 基本语法如下: $ adb shell monkey [options...

  • monkey测试命令

    下面介绍一种Monkey测试方法:单一模块Monkey测试 以下这条Monkey指令为例: monkey -s 1...

  • 2018-08-16

    monkey测试 1.客户端日常monkey命令:adb shell monkey -p packagename ...

  • MonkeyTseting-压力测试(一)

    monkey 一、Monkey测试简介 monkey猴子压测,顾名思义就是像猴子一样乱点应用 Monkey测试是A...

网友评论

      本文标题:swift monkey

      本文链接:https://www.haomeiwen.com/subject/ylqsattx.html