GithubHelp home page GithubHelp logo

Comments (8)

rainy1216 avatar rainy1216 commented on August 16, 2024

但是又不知道是指那个Class

from cafe.

luxiaoyu avatar luxiaoyu commented on August 16, 2024

是不是cafe.jar没有放到libs下面

from cafe.

rainy1216 avatar rainy1216 commented on August 16, 2024

TestApiDemos运行的时候这里都是空指针

------------------ 原始邮件 ------------------
发件人: "keymath";[email protected];
发送时间: 2014年1月14日(星期二) 上午9:39
收件人: "BaiduQA/Cafe"[email protected];
抄送: "Rainy"[email protected];
主题: Re: [Cafe] Test run failed: Instrumentation run failed due to'java.lang.ClassNotFoundException' (#26)

是不是cafe.jar没有放到libs下面


Reply to this email directly or view it on GitHub.

from cafe.

luxiaoyu avatar luxiaoyu commented on August 16, 2024

求助要帖错误信息,否则别人无法帮助你

from cafe.

rainy1216 avatar rainy1216 commented on August 16, 2024

你看边看不到图片么?
// 点击HOME键
remote.pressKey(KeyEvent.KEYCODE_HOME);
// 点击锁屏键
remote.pressKey(KeyEvent.KEYCODE_POWER);
// 点击音量键
remote.pressKey(KeyEvent.KEYCODE_VOLUME_DOWN);
// 点击菜单键
remote.pressKey(KeyEvent.KEYCODE_MENU);
// 点击返回键
remote.pressKey(KeyEvent.KEYCODE_BACK);
// 点击搜索键
remote.pressKey(KeyEvent.KEYCODE_SEARCH);
// 卸载sd卡
remote.unmount();
// 安装sd卡
remote.mount();

这些都是空指针

from cafe.

luxiaoyu avatar luxiaoyu commented on August 16, 2024

哦,你这样说我就明白了,你没有安装Café.apk啊,还有跑case前需要运行café_setup.bat

谢谢
鲁晓宇

发件人: rainy1216 [mailto:[email protected]]
发送时间: 2014年1月14日 10:01
收件人: BaiduQA/Cafe
抄送: Lu,Xiaoyu(Mobile Application RD)
主题: Re: [Cafe] Test run failed: Instrumentation run failed due to 'java.lang.ClassNotFoundException' (#26)

你看边看不到图片么?
// 点击HOME键
remote.pressKey(KeyEvent.KEYCODE_HOME);
// 点击锁屏键
remote.pressKey(KeyEvent.KEYCODE_POWER);
// 点击音量键
remote.pressKey(KeyEvent.KEYCODE_VOLUME_DOWN);
// 点击菜单键
remote.pressKey(KeyEvent.KEYCODE_MENU);
// 点击返回键
remote.pressKey(KeyEvent.KEYCODE_BACK);
// 点击搜索键
remote.pressKey(KeyEvent.KEYCODE_SEARCH);
// 卸载sd卡
remote.unmount();
// 安装sd卡
remote.mount();

这些都是空指针


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-32232494.

from cafe.

VorbeiYu avatar VorbeiYu commented on August 16, 2024

你好,我也遇到这个问题,我是自己写了个空的应用,然后自己写了个很简单的testcase,就一直提示这个错误。你们说的运行apk,在手机上运行吗还是在电脑上啊

from cafe.

VorbeiYu avatar VorbeiYu commented on August 16, 2024

我自己写的helloworld的class需要打包成jar包吗

from cafe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.