getActivity hangs



getActivity hangs 
 2 people starred this issue and may be notified of changes.Back to list
Status:  Invalid
Owner: ----
Closed:  Oct 2011


Sign in to add a comment
 
Reported by  slott.ha...@gmail.comOct 12, 2011
What steps will reproduce the problem?
1.Two test methods
2.When second test is issued the getActivity in the setUp method hangs. 
3.

What is the expected output? What do you see instead?

Expected to get the activity and run the test.


What version of the product are you using? On what operating system?
Robotium 2.5

Please provide any additional information below.


Oct 12, 2011
#1 slott.ha...@gmail.com
I have found a solution to my problem however this might still be an actual issue for you guys to look into. The app that I am testing requires me to login and thus the activity that I have marked as my start activity might redirect me to another activity and I recon that is why it hangs as it gets confused that it is not getting the activity it expects.

Changing my start activity solved my problem.
Oct 12, 2011
Project Member #2 renasr...@gmail.com
In cases like this I would recommend you to use the constructor in which you only give the instrumentation object. You first set up solo and then call getActvitiy(). 
Status: Invalid 
Nov 17, 2011
#3 Marcus.W...@gmail.com
Same problem.
What constructor are you referring to?
SoloWrapper only has one constructor.
Nov 17, 2011
Project Member #4 renasr...@gmail.com
There are to constructors. You also have Solo solo = new Solo(getInstrumentation());
getActivity hangs 
 2 people starred this issue and may be notified of changes.Back to list
Status:  Invalid
Owner: ----
Closed:  Oct 2011


Sign in to add a comment
 
Reported by  slott.ha...@gmail.comOct 12, 2011
What steps will reproduce the problem?
1.Two test methods
2.When second test is issued the getActivity in the setUp method hangs. 
3.

What is the expected output? What do you see instead?

Expected to get the activity and run the test.


What version of the product are you using? On what operating system?
Robotium 2.5

Please provide any additional information below.


Oct 12, 2011
#1 slott.ha...@gmail.com
I have found a solution to my problem however this might still be an actual issue for you guys to look into. The app that I am testing requires me to login and thus the activity that I have marked as my start activity might redirect me to another activity and I recon that is why it hangs as it gets confused that it is not getting the activity it expects.

Changing my start activity solved my problem.
Oct 12, 2011
Project Member #2 renasr...@gmail.com
In cases like this I would recommend you to use the constructor in which you only give the instrumentation object. You first set up solo and then call getActvitiy(). 
Status: Invalid 
Nov 17, 2011
#3 Marcus.W...@gmail.com
Same problem.
What constructor are you referring to?
SoloWrapper only has one constructor.
Nov 17, 2011
Project Member #4 renasr...@gmail.com
There are to constructors. You also have Solo solo = new Solo(getInstrumentation());
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值