Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/99.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iOS的KIF框架:它能模拟触摸和保持手势吗?_Ios_Cocoa Touch_Automated Tests_Integration Testing_Kif Framework - Fatal编程技术网

iOS的KIF框架:它能模拟触摸和保持手势吗?

iOS的KIF框架:它能模拟触摸和保持手势吗?,ios,cocoa-touch,automated-tests,integration-testing,kif-framework,Ios,Cocoa Touch,Automated Tests,Integration Testing,Kif Framework,我如何使用模拟视图上的触摸并按住步骤,因为您可能知道KIF不会模拟手势。模拟手势实际上只是测试iOS层的东西。建议您只需调用将在TestStep中为手势调用的方法,然后从那里开始 现在框架中内置了一些功能。您可以这样使用它: [步骤添加对象:[KIFTestStep step to long press view with accessibilitylabel:@“myView”持续时间:5]] 或 [场景添加步骤:[KIFTestStep step to long press view wit

我如何使用

模拟视图上的触摸并按住步骤,因为您可能知道KIF不会模拟手势。模拟手势实际上只是测试iOS层的东西。建议您只需调用将在TestStep中为手势调用的方法,然后从那里开始

现在框架中内置了一些功能。您可以这样使用它:

[步骤添加对象:[KIFTestStep step to long press view with accessibilitylabel:@“myView”持续时间:5]]

[场景添加步骤:[KIFTestStep step to long press view with accessibilitylabel:@“myView”持续时间:5]]


显然,第一个用于添加到
步骤
,第二个用于
场景

如何将其与KIF 3.0结合使用?