如何测试一个吐司消息的外观 [英] How to test for the appearance of a Toast message

查看:186
本文介绍了如何测试一个吐司消息的外观的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请问谁知道如何测试一个吐司消息对某项活动的出现?

我用code类似于在OP上发布<一个href="http://stackoverflow.com/questions/1759626/how-do-you-test-an-android-application-across-multiple-activities">this问题的测试我的程序流从一个活动到下一个。我还希望能够测试的具体活动敬酒的消息。

解决方案
  

请问有谁知道如何测试的   在外观敬酒消息   活动?

您不能 - 对不起。通过它,我的意思是没有办法问机器人哎,是敬酒的表现?又是什么样子呢?

Would anyone know how to test for the appearance of a Toast message on an Activity?

I'm using code similar to what the OP posted on this question for testing my program flow from one activity to the next. I'd also like to be able to test for toast messages on particular activities.

解决方案

Would anyone know how to test for the appearance of a Toast message on an Activity?

You can't -- sorry. By which, I mean there is no way to ask Android "hey, is a Toast showing? and what does it look like?".

这篇关于如何测试一个吐司消息的外观的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆