I'll try that today and let you know. On Jun 5, 2013 7:17 AM, "Kristopher Micinski" <[email protected]> wrote:
> That's not true, I routinely build in test suites that do just this. Tons > of my test scripts do things like telnet in and perform certain commands, > so it's certainly possibly (even if not clean). So while I agree it's not > as nice as instrumentation, it's certainly testable. > > That being said, I feel like you should be able to create a broadcast > intent to handle an incoming call, can you not try the code I linked to and > just change the action to suit your needs? (Presumably ACTION_ANSWER > instead of CALL.) I would be surprised if that doesn't work, but haven't > tested it. > > Kris > > > On Wed, Jun 5, 2013 at 8:54 AM, Larry Meadors <[email protected]>wrote: > >> This is not done from a test so it's not automated. I'm looking for a >> way to write an instrumentation test that runs as part of my test >> suite and will simulate an incoming call. >> >> Doing it manually via DDMS or telnet requires manual testing. >> >> I am looking for a repeatable way to do this in code so I can write a >> test to verify that my app behaves correctly without clicking through >> all the steps manually (because that's labor-intensive, error-prone, >> and costly). >> >> Larry >> >> >> >> On Wed, Jun 5, 2013 at 3:00 AM, amro alfares <[email protected]> >> wrote: >> > Hello >> > from eclipse choose window >> open perspective >> and choose DDMS . >> > the DDMS perspective open >> > now again choose window >> show view >> and choose Devices >> > the Devices window will open >> > with alist of all the emulators that are open . >> > click on the emulator that you want to test the call in . >> > now again now again choose window >> show view >> and Emulator control >> > >> > now there is a section for "Telephony Actions " >> > there you enter the Incoming number >> > then you choose if you want it as a voice (call) or as SMS >> > and there is a buttons for both call and hang for the call >> > and send for the SMS >> > >> > Hope that helps >> > Regards >> > >> > Amro alfares >> > [email protected] >> > >> > >> > >> > On Tuesday, June 4, 2013 1:20:44 AM UTC+3, Larry Meadors wrote: >> >> >> >> I have a service that reacts to incoming calls that I'm trying to test. >> >> >> >> Is there a way to simulate an incoming call from an instrumentation >> test? >> >> >> >> Larry >> >> -- >> -- >> You received this message because you are subscribed to the Google >> Groups "Android Developers" group. >> To post to this group, send email to [email protected] >> To unsubscribe from this group, send email to >> [email protected] >> For more options, visit this group at >> http://groups.google.com/group/android-developers?hl=en >> --- >> You received this message because you are subscribed to the Google Groups >> "Android Developers" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > -- > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Android Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en --- You received this message because you are subscribed to the Google Groups "Android Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.

