austgl / robotium

Automatically exported from code.google.com/p/robotium
0 stars 0 forks source link

Not able to click OK/Cancel button in Dialog box #169

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.If GPS is not there, then my application shows a dialog box saying GPS and 
Network Provider are turned off with oK and Cancel buttons.
2.
3.

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

Is it possible to test this scenario  using Robotium?.

What version of the product are you using? On what operating system?
Robotium 2.5,OS-Windows 7,Windows XP 
sdk version-4 using google api

Is it possible to automate using Robotium ?

Please provide any additional information below.
The original Source code is as below

@Override
      public void dialogOk(Hashtable information)
      {
            if (activeDialog == MESSAGE_DIALOG)
            {
                  isSettingsOpened = true;
                  Intent intent = new 
Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);
                  startActivityForResult(intent, 
REQUEST_CODE_SETTINGS);
            }
      }

Original issue reported on code.google.com by itsme.va...@gmail.com on 3 Oct 2011 at 7:06

GoogleCodeExporter commented 9 years ago
Please see the QA wiki page. 

Original comment by renasr...@gmail.com on 5 Oct 2011 at 10:55