android - Running synchronous tests with robotium on multiple devices -
i have 2 apps need test, 2 apps respond each other 1. app user app in doing activity, more submit orders 2. app b supplier app in recipes client orders
both apps need run on separate devices definition
my test flow follow 1. client , supplier have app open 2. client issue order 3. supplier receive order 4. supplier accept order 5. supplier fulfill order 6. client notification order fulfilled
i can program tests separately in robotium, problem need them synchronous - since entire process real-time 1 in real life
any 1 know how can that? (without creating million small robotium tests , run them 1 after other)
thanks in advance
you can make them wait element appear. can following snippets:
activity
solo.waitforactivity(solo.getcurrentactivity().tostring());
toast , more text in toast
solo.waitfortext("some text inside toast");
waiting view disappear
textview textfield = solo.gettext("my text value", true); solo.waitforcondition(new condition() { @override public boolean issatisfied() { return textfield.getvisibility() == view.invisible; } }, 1000);
fragments
solo.waitforfragmentbytag("mytag");
so have give clue order has been submitted. can elements can wait for. after waiting on whatever intended test.
Comments
Post a Comment