问题标签 [uitest]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
67 浏览

testing - PhantomJS 在 Gemini 测试中停止工作

当我使用Gemini 测试运行 UI 自动化时,我遇到了与此处讨论的完全相同的错误。当测试数量超过 100 时,错误开始发生。真的很感谢任何修复此问题的指针吗?

0 投票
2 回答
303 浏览

ios - iOS UITest:如何在 iOS 上的 UITest 中读取应用设置

您好,在 UITest 中有什么方法可以通过 xCode8 读取应用程序当前设置吗?我想运行应用程序并验证其默认设置。

谢谢JJ

0 投票
1 回答
517 浏览

xamarin.ios - 无法在 Xamarin Studio 上为 IOS 运行简单的演示 UITest

我正在尝试在 iOS 平台上运行 UITest 的演示。即使构建项目没有问题,我也无法运行 UI 测试。

这是错误信息:

0 投票
1 回答
734 浏览

xamarin - Facing "Stalled error " on Xamarin test cloud when Xamarin.ios Uitest ran from Xamarin Studio

I am facing "Stalled error" when running UITest on Xamarin test cloud from mac machine - Xamarin studio. UITest is written for Xamarin.ios application, which is just having code (the default code) AppLaunches test and code is app.Screenshot("First screen"). My BeforeEachTest looks like as below

app = Configureapp.ios.PreferIdeSetting().StartApp();

Inside xamarin studio, unit test window, I have linked the ios app to the UITest project.

My project is in configuration debug|iPhone.

I have followed steps as, in appdelegate file of ios project, I have added Xamarin.Calabash.Start(), and also added package Xamarin.testcloud.agent in ios project.

My app size is 32.88 mb

Please suggest the solution.

0 投票
2 回答
2713 浏览

ios - Xcode 8.1 dyld:库未加载:@rpath/XCTest.framework/XCTest 错误

所以,这是错误,我记录了我的 UI 脚本完成,但是当我重播 UI 脚本时出现错误。控制台显示:

“dyld:库未加载:@rpath/XCTest.framework/XCTest 引用自:/var/containers/Bundle/Application/6D093D58-4246-40F6-A1E5-9B51018453E5/UITest7UITests-Runner.app/XCTRunner 原因:找不到合适的图像. 确实发现: /private/var/containers/Bundle/Application/6D093D58-4246-40F6-A1E5-9B51018453E5/UITest7UITests-Runner.app/Frameworks/XCTest.framework/XCTest: 代码签名阻止 mmap() of '/private/ var/containers/Bundle/Application/6D093D58-4246-40F6-A1E5-9B51018453E5/UITest7UITests-Runner.app/Frameworks/XCTest.framework/XCTest' /private/var/containers/Bundle/Application/6D093D58-4246-40F6-A1E5 -9B51018453E5/UITest7UITests-Runner.app/Frameworks/XCTest.framework/XCTest:'/private/var/containers/Bundle/Application/6D093D58-4246-40F6-A1E5-9B51018453E5/UITest7UITests-Runner 的代码签名阻止 mmap()。应用程序/框架/XCTest.framework/XCTest'"

有同样的问题:Xcode 6.1 dyld: Library not loaded: @rpath/XCTest.framework/XCTest error ; 但我的错误无法解决,消息显示:

“ld: framework not found XCTest clang: error: linker command failed with exit code 1 (use -v to see invocation)” 但在这条路上他告诉我真的可以找到名为 XCTest.framework 的框架

在此处输入图像描述

那我该怎么办,非常感谢!

0 投票
1 回答
1166 浏览

ios - iOS - 如何在 XCUITest for Objective C 上实现点击按钮

我想知道如何在Objective C的UI测试上的按钮上实现点击事件。示例代码片段是可观的。我在 Swift 上找到了一些示例。任何人都可以帮助和指导目标 c。

我想要在目标 c 上进行类似的实现。

0 投票
1 回答
472 浏览

c# - UITest 失败:“SetUp:System.InvalidOperationException”

自从上次使用 Xcode 8.2 在稳定频道上更新 xamarin 以来,我无法再在我的 xamarin 项目中使用 UITest。

每次,当我启动测试时,我都会遇到错误:“SetUp:System.InvalidOperationException:Sequence contains no matching element”。我的测试系列很长一段时间都没有变化,并且之前运行良好......

所以我现在不知道如何纠正这个问题......

堆栈跟踪:在 System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] 谓词)[0x00065] 在 /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root/mono-x86 /mcs/class/referencesource/System.Core/System/Linq/Enumerable.cs:965 在 Xamarin.UITest.iOS.Instruments.GetAutomationTemplatePath () [0x00031] 在:0 在 Xamarin.UITest.iOS.Instruments.StartInstrumentsInternal(系统.String targetApplication, Xamarin.UITest.iOS.iOSRunType runType, System.String deviceId, System.String runLoopPath, Xamarin.UITest.Configuration.AppDataMode appDataMode, System.Predicate`1[T] dropLine) [0x00006] in :0 在 Xamarin .UITest.iOS.Instruments.StartInstruments (System.String targetApplication, Xamarin.UITest.iOS.iOSRunType runType, System.String deviceId, Xamarin.UITest.Configuration.AppDataMode appDataMode) [0x00012] 在:0 在 Xamarin.UITest.iOS。 iOS 应用程序启动器。RunAppInEmulatorInternal(System.String 应用程序,Xamarin.UITest.iOS.Instruments 仪器,Xamarin.UITest.Shared.Http.HttpClient httpClient,System.Uri deviceUri,Xamarin.UITest.Shared.Artifacts.ArtifactFolder artifactFolder,Xamarin.UITest.Configuration.AppDataMode appDataMode, System.String deviceIdentifier) [0x00095] 在:0 在 Xamarin.UITest.iOS.iOSAppLauncher.RunAppInEmulator(Xamarin.UITest.Shared.iOS.AppBundle appBundle,Xamarin.UITest.iOS.Instruments 仪器,Xamarin.UITest.Shared。 Http.HttpClient httpClient、System.Uri deviceUri、Xamarin.UITest.Shared.Artifacts.ArtifactFolder artifactFolder、Xamarin.UITest.Configuration.AppDataMode appDataMode、System.String deviceIdentifier) [0x00099] 在 Xamarin.UITest.iOS.iOSAppLauncher 的 0 中。 LaunchApp (Xamarin.UITest.Configuration.IiOSAppConfiguration appConfiguration, Xamarin.UITest.Shared.Http.HttpClient httpClient, Xamarin.UITest.TestCloud.TestCloudiOSAppConfiguration testCloudAppConfiguration, Xamarin.UITest.Shared.Http.HttpClient testCloudWsClient) [0x000e4] 在:0 在 Xamarin.UITest.iOS.iOSApp..ctor (Xamarin.UITest.Configuration .IiOSAppConfiguration appConfiguration) [0x002db] 在:0 在 Xamarin.UITest.Configuration.iOSAppConfigurator.StartApp (Xamarin.UITest.Configuration.AppDataMode appDataMode) [0x00017] 在:0 在 Ac.Test.TestV35.BeforeEachTest () [0x00012] 在/Users/ShaprAdmin/Documents/ac/Ac.Test/TestV35.cs:17 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception& ) 在 System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] 参数,System.Globalization.CultureInfo 文化)[0x00038] 在 /private/tmp/source-mono-4.6.0/bockbuild-mono-4.6.0-branch/profiles/mono-mac-xamarin/build-root /mono-x86/mcs/class/corlib/System.Reflection/MonoMethod.cs:305

谢谢!

0 投票
1 回答
1814 浏览

ios - XCode 中禁用的 UITests

我的 UITest 在 XCode 的测试窗格中突然变灰。(见下图。)因此,当我选择“产品”->“测试”时,它们不会运行。仅运行单元测试(未显示为灰色。)

尽管它们是灰色的,但我可以 ctrl 单击 UITests 中的每个行项目并成功运行它。

知道是什么配置导致它变灰吗?我怎样才能扭转它?

在此处输入图像描述

0 投票
0 回答
309 浏览

ios - 使用 Jenkins 的 UITest 因错误 Domain=com.apple.platform.iphoneos Code=-1 “找不到已安装的应用程序”而失败

当我用 Jenkins 进行 UI 测试时,它失败了,错误 Domain=com.apple.platform.iphoneos Code=-1 "Could not locate installed application"。

详细日志是:

但是当我直接用Xcode做ui测试时,一切正常。

任何人都可以帮助我吗?

0 投票
0 回答
117 浏览

android - 我无法在我的应用程序上使用 espresso 进行地点选择器测试

我的应用程序有一个按钮,该按钮调用一个地方选择器,用户在其中选择他的本地,但我无法测试我的应用程序的这一部分,当地图出现时,浓缩咖啡记录器没有得到点击。