Monkey

Monkey Talk IDE doesn't record actions

时光怂恿深爱的人放手 提交于 2019-11-30 09:51:53
问题 I'm trying to use Monkey Talk for automation test. I installed it successfully. I run the sample app on Eclipse Juno then create a new Monkey script and record actions. The problem is Monkey IDE doesn't record my actions on device or emulator . I tried both of them but not lucky. How to fix? Eclipse Juno, Ubuntu OS. I followed this tutorial video. Screenshot when connected to my device via device ip address. 回答1: You should make sure the monkey talk android agent is added to your libs folder,

Java描述设计模式(09):装饰模式

二次信任 提交于 2019-11-30 03:36:30
本文源码: GitHub·点这里 || GitEE·点这里 一、生活场景 1、场景描述 孙悟空有七十二般变化,他的每一种变化都给他带来一种附加的本领。他变成鱼儿时,就可以到水里游泳;他变成鸟儿时,就可以在天上飞行。 2、场景图解 3、代码实现 public class C01_InScene { public static void main(String[] args) { TheGreatestSage greatestSage = new Monkey(); TheGreatestSage fish = new Fish(greatestSage); fish.shapeDesc(); // 这里虽然是鱼形态,但是本体是悟空,所以可以直接变化 TheGreatestSage bird = new Bird(fish); bird.shapeDesc(); } } // 顶级接口 interface TheGreatestSage { // 定义一个描述形态的方法 void shapeDesc (); } // 悟空本尊 class Monkey implements TheGreatestSage{ @Override public void shapeDesc() { System.out.println("Monkey.move()"); } } // 包装一层变化的描述