Mobile SDK > Testing a mobile application > Testing a disconnected application > Preparing the example survey
 
Preparing the example survey
For testing purposes, the following example survey includes the following questions:
preference "Would you prefer milk or coffee?
"categorical [1..1]
{
  milk "milk",
  coffee "coffee"
};

HomeDay "When will you stay home next week?"
categorical [1..]
{
  Monday "Monday",
  Tuesday "Tuesday",
  Wednesday "Wednesday",
  Thursday "Thursday",
  Friday "Friday",
  Saturday "Saturday",
  Sunday "Sunday"
};

Age "How old are you?"
long;

Display "Thank you!"
info;
Refer to the QuotaSample.mdd file for the full example survey.
Preparing the Quota definition
The example includes two quota groups:
HomeDay: A table quota that is based on the HomeDay question.
Expressions: Creates two quota expressions that are based on Age.
Refer to the QuotaSample.mqd file for the full quota definition.
Preparing sample data
To prepare the sample, upload sample data, assign ten sample records to the test user, and assign the test project to the test user.
Next
Logging into MobileSyncWebService
See also
Testing a disconnected application