Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/react-native/7.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 排毒测试无法运行_Ios_React Native_E2e Testing_Detox - Fatal编程技术网

Ios 排毒测试无法运行

Ios 排毒测试无法运行,ios,react-native,e2e-testing,detox,Ios,React Native,E2e Testing,Detox,我一整天都在尝试为我们的手机应用程序进行排毒测试,但一直没能做到 我使用的相关npm版本: “排毒”:“^17.14.6”, “笑话”:“^26.6.3”, “小丑马戏团”:“^26.6.3”, “jest cli”:“^26.6.3”, rc.json { “testRunner”:“玩笑”, “runnerConfig”:“e2e/config.json”, “配置”:{ “ios.sim.debug”:{ “binaryPath”:“ios/build/build/Products/De

我一整天都在尝试为我们的手机应用程序进行排毒测试,但一直没能做到

我使用的相关npm版本:

“排毒”:“^17.14.6”,
“笑话”:“^26.6.3”,
“小丑马戏团”:“^26.6.3”,
“jest cli”:“^26.6.3”,
rc.json

{
“testRunner”:“玩笑”,
“runnerConfig”:“e2e/config.json”,
“配置”:{
“ios.sim.debug”:{
“binaryPath”:“ios/build/build/Products/Debug iphonesimulator/Test.app”,
“构建”:“xcodebuild-workspace ios/Test.xcworkspace-scheme Test-configuration Debug-sdk iphonesimulator-derivedDataPath ios/build”,
“类型”:“ios.simulator”,
“设备”:{
“类型”:“iPhone 11 Pro”
}
}
}
}
test.e2e.js

description('概述',()=>{
beforeach(异步()=>{
等待设备。重新加载ReactNative();
});
它('应该打开概览选项卡',异步()=>{
wait expect(元素(by.id('overviewTab')).tobevicible();
});
});
它在超时时出错:

概述
✕ 应打开概览选项卡(120006毫秒)
● 概述›应打开概述选项卡
抛出:“钩子超时超过120000毫秒。
如果这是一个长期运行的测试,请使用jest.setTimeout(newTimeout)增加超时值。“
1 |描述('概述',()=>{
>2 |每个之前(异步()=>{
|   ^
3 |等待设备。重新加载ReactNative();
4 |   });
5 |
在test.e2e.js:2:3中
这导致了

解毒[12636]信息:[actions.js]同步WXRunLoopIdlingResource:React本机线程正忙。 解毒[12636]信息:[actions.js]同步调度队列:com.apple.main-thread
还有一个关于调用firebase日志的日志,但没有实现

当我同时使用
--loglevel trace
时,我会不断得到这个日志:

解毒[12636]信息:[actions.js]同步WXRunLoopIdlingResource:React本机线程正忙。 解毒[12636]信息:[actions.js]同步调度队列:com.apple.main-thread 解毒[12636]跟踪:[AsyncWebSocket.js/WEBSOCKET_SEND]{“类型”:“当前状态”,“参数”:{},“消息ID”:15} 解毒[12636]跟踪:[解毒服务器.js/MESSAGE]角色=测试人员操作=当前状态(会话ID=d7428263-4169-e8b4-756d-cc5b3c3d0f73) 解毒[12636]跟踪:[解毒服务器.js/MESSAGE]角色=受试者操作=当前状态结果(会话ID=d7428263-4169-e8b4-756d-cc5b3c3d0f73) 解毒[12636]跟踪:[AsyncWebSocket.js/WEBSOCKET\u MESSAGE]{“type”:“currentStatusResult”,“params”:{“state”:“busy”,“resources”:[{“name”:“wxRunLoopIdlingSource”,“info”:{“runLoop”:“{wakeup port=0x5a17,stopped=false,ignoreWakeUps=true,\n当前模式=(无),\n常见模式={type=可变集,计数=1,\nentries=>\n\t2:{contents=\”KCFRUnlopDefaultMode\“}\n}\n\n常见模式项={type=mutable set,count=4,\nentries=>\n\t0:{signaled=No,valid=Yes,order=0,context={version=0,info=0x60000322ab60,callout=\n\t2:{signaled=No,valid=Yes,order=0,context={version=0,info=0x60000320e470,callout=\uuu nsthreadperform(0x7fff208581ee)}\n\t3:{signaled=Yes,valid=Yes,order=0,context={version=0,info=0x114fc0000,callout=\uzn3wtf7runloop11performworkpv(0x7fff3220270)}\n\t4:{valid=Yes,firing=No,interval=0,relation=0,tolerance=0,next fire date=630235923(486.399006@357970975424457),callout=ZZN3WTF7RunLoop9TimerBase5startENS_7;secondseben3$18_uuu调用CFRunLoopTimerPv(0x7fff3220bb0/0x7fff3220bb0)(/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore),context=}\n}\n\n模式={type=可变集,计数=2,\n系列=>\n\t0:{name=kCFRunLoopCommonModes,port set=0xc307,queue=0x600001313a80,source=0x60000112c00(未触发),timer port=0xc503,\n\tsources0=(null),\n\tsources1=(null),\n\tobservers=(null),\n\ttimers=(null),\n\t当前6302354437(3574576475625)/软截止时间:1.84463866e+10秒(@-1)/硬截止时间:1.84463866e+10秒(@-1)\n},\n\n\t2:{name=KCFRunlopDefaultMode,端口集=0x13a0f,队列=0x600001e3e800,源=0x600001e3db00(未触发),计时器端口=0x13c27,\n\tsources0={type=mutable set,count=0,\nentries=>\n}\n\tsources1={type=mutable set,count=0,\nentries=>\n\n\tServers=(\n\){valid=Yes,activities=0xe7,repeats=Yes,order=0,callout=\u runLoopObserverWithBlockContext(0x7fff2038c504),context=}\“\n),\ttimers={type=mutable small,count=1,values=(\n\t0:{valid=Yes,firing=No,interval=0,tolerance=0,next fire date=630235923(486.398864@357970975424457),callout=\uzzn3wtf7runloop9timerbase5startens\u7secondseben3$\u18\uuuu invokeEP16\uuuu CFRunLoopTimerPv(0x7fff3220bb0/0x7fff3220bb0)(/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore),context=}\n)}\n当前6302354437(357484576488240)/软截止时间:486.398936秒(@357970975424457)/hard-deadline in:486.398936秒(@357970975424457)\n}、\n}\n}\n}、“prettyPrint”:“React Native thread is busy.”、{“name”:“Dispatch Queue”、“info”:{“Queue”:“prettyPrint”:“com.apple.main thread”}、“messageId”:15}、{
因此,我将继续检查这可能来自何处。我从源代码的一开始就尝试添加日志,但似乎没有任何结果。

运气好吗?我的日志似乎也在每个之前的第一个
处超时。
@TaylorA.Leach不,我没有设法找到问题…我确实认为尽管包ager需要运行。我也有同样的问题。找到解决方案了吗?