Mobile SDK > Testing a mobile application > Testing a disconnected application > Preparing the SampleData XML
 
Preparing the SampleData XML
After completing the ID1 case, the sample record must be updated accordingly. The following fields must be updated:
SampleData XML fields
PreviousQueue
Indicates the Queue field value (before changing).
Queue
Sets the current queue for the sample record, For more information, see Queues.
CallOutcome
Sets the CallOutcome results. For more information, see Call and contact outcome codes.
ActivityStartTime
Sets the start time when processing the sample.
UserId
Sets the interviewer ID, which is typically the logged on user name.
PreviousInterviewerId
Stores the previous UserId before using the sample.
InterviewMode
Set to Personal for mobile interviews
SampleHistory fields
Because the sample record is updated, the SampleHistory table is used to record the changes. The table includes the following fields:
StartTime
The case data start time.
Duration
The duration between case data start and finish time (in seconds).
CallOutcome
The CallOutcome value (after the change).
UserId
The interviewer ID, which is typically the logged on user.
SampleId
Stores the sample.
IdInterviewMode
Set to Personal for mobile interviews.
Example
The following example shows the Sample Record XML after the change:
<SampleRecord ID="ID1" HasCaseData="false" Unassigned="false" ReturnTime="2014-10-31T02:00:38Z">
  <SampleFields>
    <SampleField Name="UserName" DataType="Text" Value="Name1"/>
    <SampleField Name="Address" DataType="Text" Value="Street1, City1"/>
    <SampleField Name="Email" DataType="Text" Value="Name_1@xyz.org"/>
    <SampleField Name="Gender" DataType="Text" Value="Male"/>
    <SampleField Name="Age" DataType="Text" Value="25"/>
    <SampleField Name="Queue" DataType="Text" Value="COMPLETED"/>
    <SampleField Name="Active" DataType="Boolean" Value="False"/>
    <SampleField Name="Serial" DataType="Long" Value="1"/>
    <SampleField Name="ExpirationTime" DataType="Date"
                 Value="2099-12-31T23:59:59Z"/>
    <SampleField Name="SortId" DataType="Long" Value="334220"/>
    <SampleField Name="TimeZone" DataType="Long" Value="4"/>
    <SampleField Name="AssignedInterviewerId" DataType="Text" Value="user"/>
    <SampleField Name="DistributedTo" DataType="Text" Value="user"/>
    <SampleField Name="PreviousQueue" DataType="Text" Value="FRESH"/>
    <SampleField Name="InterviewMode" DataType="Text" Value="Personal"/>
    <SampleField Name="CallOutcome" DataType="Text" Value="Completed"/>
    <SampleField Name="PreviousInterviewerId" DataType="Text" Value="user"/>
    <SampleField Name="ActivityStartTime" DataType="Date" Value="2014-10-    31T02:00:15Z"/>
    <SampleField Name="UserId" DataType="Text" Value="user"/>
  </SampleFields>
  <SampleHistory StartTime="2014-10-31T02:00:15Z" Duration="23"
                 CallOutcome="Completed">
    <SampleField Name="UserId" DataType="Text" Value="admin"/>
    <SampleField Name="SampleId" DataType="Text" Value="ID1"/>
    <SampleField Name="InterviewMode" DataType="Text" Value="Personal"/>
  </SampleHistory>
</SampleRecord>
Next
Preparing the Quota XML
See also
Testing a disconnected application