Giter VIP home page Giter VIP logo

Comments (6)

psyzmhy avatar psyzmhy commented on July 26, 2024

看代码感觉Cafe中遍历没有考虑到弹出框,如果系统自动退出或弹出force close之类的应该就没有办法检查了,Cafe的处理是本次测试退出。
另外遍历在level的范围内也不是完全遍历,不过已经是很好的程序了,期待继续改善。。。。

from cafe.

luxiaoyu avatar luxiaoyu commented on July 26, 2024

force close如果出现,那说明遍历测试起到预期的作用了:D
话说最近一直在弄Cafe的录制回放功能,如果有空你可以尝试改改看,效果是不是能更好~

from cafe.

bingohuang avatar bingohuang commented on July 26, 2024

非常感谢楼上几位的回答,cafe框架确实做的不错,现在对它的遍历功能比较感兴趣,录制回复功能后续肯定也会再研究研究。
再请教@luxiaoyu一个问题:cafe的遍历功能能覆盖多少比例的view和activity?能否经常发现像force close(crash)一样的情况?

from cafe.

psyzmhy avatar psyzmhy commented on July 26, 2024

谢谢xiaoyu的回复。
我最近也是在研究遍历性测试以及录制回放功能,发现有两个问题:
1.遍历性测试使用的是preorderTraversal2来循环遍历的,对吧?不过貌似他只会遍历个10几个动作就退出了?另外我看函数里有preorderTraversal,这个可以起作用么?
2.录制和回放的命令分别是什么?录制之后保存的文件(用于回放)是哪一个?

from cafe.

luxiaoyu avatar luxiaoyu commented on July 26, 2024

@psyzmhy
1.目前是使用preorderTraversal2来遍历的,不过这个函数还只是个初级版,有些地方需要完善,所以你也可以尝试用preorderTraversal,看看哪个效果比较好:)
2.录制回放的issue请移步 #11

from cafe.

henryhp avatar henryhp commented on July 26, 2024

@luxiaoyu 我这边android4.2及4.3遍历测试都报java.lang.StringIndexOutOfBoundsException: length=103; regionStart=0; regionLength=-1 at com.baidu.cafe.local.traveler.Operation.getTypeString(Operation.java:288),这是为啥呢?Cafe.apk也安装进去了!

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.