Reputation: 2637
Is possible to write language agnostic Robotium tests? For example, if you use a PreferenceActivity, by definition there is no way to get an R.id reference to it.
Is there a mechanism to support this? Or maybe a way for Robotium to read from the String file?
Thank you.
Upvotes: 0
Views: 217
Reputation: 3383
You can read from the application-under-test's strings.xml file from a Robotium test by simply accessing the current activity:
String myString = getActivity().getString(R.string.my_string);
Upvotes: 2