草庐IT

main_test

全部标签

android - 谷歌 Espresso java.lang.RuntimeException : Could not launch intent Intent { act=android. intent.action.MAIN

我是EspressoUI测试的新手。我在运行测试时遇到这个错误(ADTEclipseIDE)。该应用程序已经开发完成,并且在启动该应用程序时有很多请求正在进行。无法重写应用程序。但我需要找到测试此UI的方法,即使组件加载有任何延迟也是如此。java.lang.RuntimeException:CouldnotlaunchintentIntent{act=android.intent.action.MAINflg=0x14000000cmp=com.xx.android/com.yy.core.android.map.MapActivity}within45seconds.Perhaps

java - setContentView(R.layout.main);错误

packagecom.elfapp;importandroid.app.Activity;importandroid.content.Intent;importandroid.os.Bundle;importandroid.util.Log;importandroid.view.View;importandroid.view.View.OnClickListener;importandroid.widget.Button;importandroid.widget.EditText;importandroid.widget.Toast;publicclassMainActivityext

Vue系列第七篇:Element UI之el-main,el-table,el-dialog,el-pagination,el-breadcrumb等控件使用

本篇实现主页面功能,包括主页面排版布局,学生管理模块实现,后台接口实现等功能。目录1.运行效果1.1登录页面1.2主页面 1.3学生管理-信息列表1.4学生管理-信息管理 1.5学生管理-作业列表1.6学生管理- 作业管理2.前端代码2.1代码结构 2.2代码实现3.后端代码3.1代码结构3.2代码实现4.其他4.1vscode快速编写正则表达式1.运行效果1.1登录页面1.2主页面 1.3学生管理-信息列表  1.4学生管理-信息管理 1.5学生管理-作业列表1.6学生管理- 作业管理2.前端代码2.1代码结构 2.2代码实现src/api/api.js//业务服务调用接口封装imports

android espresso 测试 : empty test suite. 未找到测试

我在Windows上运行intelliJidea14.0.2android开发环境,并尝试使用espressoUI测试框架来测试我的应用程序。但是,当我按run进行androidTest配置时,我遇到以下问题:Testingstartedat12:09PM...Waitingfordevice.Targetdevice:lge-nexus_5-05b1bd8af0ddba12Uploadingfilelocalpath:C:\Users\AsiAnSeNsAtIoN\Documents\note\ECSE428\AssB_2\build\classes\main\AssB_2.apkr

android - 将 'ant clean test' 与最新的 android sdk 一起使用。 '${renderscript.opt.level}' 不是 com.android.ant.RenderScriptTask$OptLevel 的允许值

在最新的androidsdk上使用'antcleantest'出现错误:build.xml:622:执行此行时发生以下错误:build.xml:642:'${renderscript.opt.level}'不是com.android.ant.RenderScriptTask$OptLevel的允许值 最佳答案 这个怎么样?https://issues.apache.org/jira/browse/CB-974似乎是AndroidSDKAPI16的R20中的一个问题(最新的截至2012年6月28日)。我实际上没有使用RenderScr

解决异常Exception in thread “main“ java.lang.NoClassDefFoundError: org/apache/poi/ooxml/POIXMLDocumentPa

当java操作execl或word时抛出这样的异常:Exceptioninthread"main"java.lang.NoClassDefFoundError:org/apache/poi/ooxml/POIXMLDocumentPart atcom.deepoove.poi.XWPFTemplate.compile(XWPFTemplate.java:108) atcom.deepoove.poi.XWPFTemplate.compile(XWPFTemplate.java:90) atcom.deepoove.poi.XWPFTemplate.compile(XWPFTemplate.ja

android - 在 test 和 androidTest 之间共享测试类

我有一个Android应用程序项目,在AndroidStudio中工作。我的应用程序文件在my.package包中我的单元测试在my.package.unittest包中我的浓缩咖啡测试在my.package.androidtest包中在我的一个espresso测试中,我需要使用unittest包下的一个类,但我做不到。我需要使用的单元测试类位于app/src/test/java文件夹中:packagemy.package.unittest;publicclassHelperClass{...}我尝试使用它的文件位于app/src/androidTest/java文件夹中:packag

Android Test Orchestrator 不适用于 Android X

我最近将我的项目迁移到使用AndroidX,并使用以下文档为我在gradle上的espresso测试配置了测试协调器:https://developer.android.com/training/testing/junit-runner#using-android-test-orchestrator我有依赖:androidTestUtil'androidx.test:orchestrator:1.1.0-beta01'但是,我的测试都没有执行,看起来它们在运行gradle时运行以下adbshell命令时失败,即:adbshell'CLASSPATH=$(pmpathandroid.su

android - 当我使用 android.test.purchased 进行购买时,Google Play 服务停止工作

BundlebuyIntentBundle=inappService.getBuyIntent(3,this.getPackageName(),"android.test.purchased","inapp","myUserId");intresponseCode=buyIntentBundle.getInt("RESPONSE_CODE");if(responseCode==0){PendingIntentpendingIntent=buyIntentBundle.getParcelable("BUY_INTENT");this.startIntentSenderForResult(

android -/dev/log/main 未找到

我正在尝试开发一个Android应用程序,但是当我尝试连接到logcat时出现以下错误:Unabletoopenlogdevice'/dev/log/main':Nosuchfileordirectory我已经安装了一个新的SDK,重新启动了我的手机……似乎没有什么可以解决问题。谁有解决办法?三星GalaxyS(Darky'sv9.1)苹果操作系统亚行1.0.26 最佳答案 我使用过Speedmod内核;这已禁用默认日志记录。在TWEAKS菜单中重新启用它。谢谢你让我意识到这个OctavianDamiean