GET DynamicTest/GetAttemptedTestData?UserCode={UserCode}&OnlineAssignTestID={OnlineAssignTestID}&IsFirst={IsFirst}&IsLast={IsLast}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
UserCode

string

Required

OnlineAssignTestID

string

Required

IsFirst

boolean

Required

IsLast

boolean

Required

Body Parameters

None.

Response Information

Resource Description

TestExistingData
NameDescriptionTypeAdditional information
OTSA

OnlineTestStudentAssignment

None.

OTSAP

Collection of OnlineTestStudentAssignmentPaper

None.

OTSAPD

Collection of OnlineTestStudentAssignmentPaperDetails

None.

Response Formats

application/json, text/json

Sample:
{
  "OTSA": {
    "OnlineStudentAssignmentId": 1,
    "TestId": 2,
    "TestCode": "sample string 3",
    "testName": "sample string 4",
    "OnlineAssignTestId": 5,
    "StudentUserCode": "sample string 6",
    "ProductCode": "sample string 7",
    "TestActualDuration": 8,
    "TestTotalMarks": 9.0,
    "TotalQuestion": 10,
    "FirstAttemptMarks": 11.0,
    "LastAttemptMarks": 12.0,
    "BestAttemptMarks": 13.0,
    "BestAttemptNumber": 14,
    "NoOfAttempt": 15
  },
  "OTSAP": [
    {
      "OnlineStudentAssignmentPaperID": "sample string 1",
      "DeviceUniqueID": "sample string 2",
      "OnlineStudentAssignmentId": 3,
      "TestPaperId": 4,
      "AttemptNumber": 5,
      "TotalMarks": 6.0,
      "MarksObtained": 7.0,
      "TotalQuestion": 8,
      "SkipQuestionCount": 9,
      "RightAnswerCount": 10,
      "WrongAnswerCount": 11,
      "AttemptedDate": "2026-07-27T15:34:33.8191856+05:30",
      "CompletedDate": "2026-07-27T15:34:33.8191856+05:30",
      "IsSolutionViewed": true,
      "IsTestSubmitted": true,
      "TestTime": 16,
      "TotalTimeConsume": 17,
      "AutoSubmit": true,
      "ForcefulSubmit": true,
      "QuestionSequence": "sample string 20"
    },
    {
      "OnlineStudentAssignmentPaperID": "sample string 1",
      "DeviceUniqueID": "sample string 2",
      "OnlineStudentAssignmentId": 3,
      "TestPaperId": 4,
      "AttemptNumber": 5,
      "TotalMarks": 6.0,
      "MarksObtained": 7.0,
      "TotalQuestion": 8,
      "SkipQuestionCount": 9,
      "RightAnswerCount": 10,
      "WrongAnswerCount": 11,
      "AttemptedDate": "2026-07-27T15:34:33.8191856+05:30",
      "CompletedDate": "2026-07-27T15:34:33.8191856+05:30",
      "IsSolutionViewed": true,
      "IsTestSubmitted": true,
      "TestTime": 16,
      "TotalTimeConsume": 17,
      "AutoSubmit": true,
      "ForcefulSubmit": true,
      "QuestionSequence": "sample string 20"
    }
  ],
  "OTSAPD": [
    {
      "OnlineStudentAssignmentPaperID": "sample string 1",
      "OnlineStudentAssignmentPaperDetailsID": "sample string 2",
      "DeviceUniqueID": "sample string 3",
      "PaperQuestionId": 4,
      "PaperId": 5,
      "PaperSectionId": 6,
      "QuestionId": 7,
      "StudentAnswer": "sample string 8",
      "AnswerSelected": "sample string 9",
      "timespent": 10,
      "IsQuestionSkipped": true,
      "AttemptedAnswer": true,
      "IsAnsweredCorrect": true,
      "QuestionMarks": 14.0,
      "QuestionMarksObtained": 15.0,
      "IsTextualSolnViewed": true,
      "IsAVSolnViewed": true,
      "IsTATSolnViewed": true,
      "IsQuestonSubmitted": true,
      "CorrectToIncorrect": 20,
      "IncorrectToCorrect": 21,
      "IncorrectToIncorrect": 22,
      "CorrectToUnanswered": 23,
      "InCorrectToUnanswered": 24,
      "MarkforReview": true,
      "AnsweredMarkedforReview": true,
      "BonusMark": 27.0
    },
    {
      "OnlineStudentAssignmentPaperID": "sample string 1",
      "OnlineStudentAssignmentPaperDetailsID": "sample string 2",
      "DeviceUniqueID": "sample string 3",
      "PaperQuestionId": 4,
      "PaperId": 5,
      "PaperSectionId": 6,
      "QuestionId": 7,
      "StudentAnswer": "sample string 8",
      "AnswerSelected": "sample string 9",
      "timespent": 10,
      "IsQuestionSkipped": true,
      "AttemptedAnswer": true,
      "IsAnsweredCorrect": true,
      "QuestionMarks": 14.0,
      "QuestionMarksObtained": 15.0,
      "IsTextualSolnViewed": true,
      "IsAVSolnViewed": true,
      "IsTATSolnViewed": true,
      "IsQuestonSubmitted": true,
      "CorrectToIncorrect": 20,
      "IncorrectToCorrect": 21,
      "IncorrectToIncorrect": 22,
      "CorrectToUnanswered": 23,
      "InCorrectToUnanswered": 24,
      "MarkforReview": true,
      "AnsweredMarkedforReview": true,
      "BonusMark": 27.0
    }
  ]
}

application/xml, text/xml

Sample:
<DynamicTest.TestExistingData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BusinessEntities">
  <OTSA>
    <BestAttemptMarks>13</BestAttemptMarks>
    <BestAttemptNumber>14</BestAttemptNumber>
    <FirstAttemptMarks>11</FirstAttemptMarks>
    <LastAttemptMarks>12</LastAttemptMarks>
    <NoOfAttempt>15</NoOfAttempt>
    <OnlineAssignTestId>5</OnlineAssignTestId>
    <OnlineStudentAssignmentId>1</OnlineStudentAssignmentId>
    <ProductCode>sample string 7</ProductCode>
    <StudentUserCode>sample string 6</StudentUserCode>
    <TestActualDuration>8</TestActualDuration>
    <TestCode>sample string 3</TestCode>
    <TestId>2</TestId>
    <TestTotalMarks>9</TestTotalMarks>
    <TotalQuestion>10</TotalQuestion>
    <testName>sample string 4</testName>
  </OTSA>
  <OTSAP>
    <DynamicTest.OnlineTestStudentAssignmentPaper>
      <AttemptNumber>5</AttemptNumber>
      <AttemptedDate>2026-07-27T15:34:33.8191856+05:30</AttemptedDate>
      <AutoSubmit>true</AutoSubmit>
      <CompletedDate>2026-07-27T15:34:33.8191856+05:30</CompletedDate>
      <DeviceUniqueID>sample string 2</DeviceUniqueID>
      <ForcefulSubmit>true</ForcefulSubmit>
      <IsSolutionViewed>true</IsSolutionViewed>
      <IsTestSubmitted>true</IsTestSubmitted>
      <MarksObtained>7</MarksObtained>
      <OnlineStudentAssignmentId>3</OnlineStudentAssignmentId>
      <OnlineStudentAssignmentPaperID>sample string 1</OnlineStudentAssignmentPaperID>
      <QuestionSequence>sample string 20</QuestionSequence>
      <RightAnswerCount>10</RightAnswerCount>
      <SkipQuestionCount>9</SkipQuestionCount>
      <TestPaperId>4</TestPaperId>
      <TestTime>16</TestTime>
      <TotalMarks>6</TotalMarks>
      <TotalQuestion>8</TotalQuestion>
      <TotalTimeConsume>17</TotalTimeConsume>
      <WrongAnswerCount>11</WrongAnswerCount>
    </DynamicTest.OnlineTestStudentAssignmentPaper>
    <DynamicTest.OnlineTestStudentAssignmentPaper>
      <AttemptNumber>5</AttemptNumber>
      <AttemptedDate>2026-07-27T15:34:33.8191856+05:30</AttemptedDate>
      <AutoSubmit>true</AutoSubmit>
      <CompletedDate>2026-07-27T15:34:33.8191856+05:30</CompletedDate>
      <DeviceUniqueID>sample string 2</DeviceUniqueID>
      <ForcefulSubmit>true</ForcefulSubmit>
      <IsSolutionViewed>true</IsSolutionViewed>
      <IsTestSubmitted>true</IsTestSubmitted>
      <MarksObtained>7</MarksObtained>
      <OnlineStudentAssignmentId>3</OnlineStudentAssignmentId>
      <OnlineStudentAssignmentPaperID>sample string 1</OnlineStudentAssignmentPaperID>
      <QuestionSequence>sample string 20</QuestionSequence>
      <RightAnswerCount>10</RightAnswerCount>
      <SkipQuestionCount>9</SkipQuestionCount>
      <TestPaperId>4</TestPaperId>
      <TestTime>16</TestTime>
      <TotalMarks>6</TotalMarks>
      <TotalQuestion>8</TotalQuestion>
      <TotalTimeConsume>17</TotalTimeConsume>
      <WrongAnswerCount>11</WrongAnswerCount>
    </DynamicTest.OnlineTestStudentAssignmentPaper>
  </OTSAP>
  <OTSAPD>
    <DynamicTest.OnlineTestStudentAssignmentPaperDetails>
      <AnswerSelected>sample string 9</AnswerSelected>
      <AnsweredMarkedforReview>true</AnsweredMarkedforReview>
      <AttemptedAnswer>true</AttemptedAnswer>
      <BonusMark>27</BonusMark>
      <CorrectToIncorrect>20</CorrectToIncorrect>
      <CorrectToUnanswered>23</CorrectToUnanswered>
      <DeviceUniqueID>sample string 3</DeviceUniqueID>
      <InCorrectToUnanswered>24</InCorrectToUnanswered>
      <IncorrectToCorrect>21</IncorrectToCorrect>
      <IncorrectToIncorrect>22</IncorrectToIncorrect>
      <IsAVSolnViewed>true</IsAVSolnViewed>
      <IsAnsweredCorrect>true</IsAnsweredCorrect>
      <IsQuestionSkipped>true</IsQuestionSkipped>
      <IsQuestonSubmitted>true</IsQuestonSubmitted>
      <IsTATSolnViewed>true</IsTATSolnViewed>
      <IsTextualSolnViewed>true</IsTextualSolnViewed>
      <MarkforReview>true</MarkforReview>
      <OnlineStudentAssignmentPaperDetailsID>sample string 2</OnlineStudentAssignmentPaperDetailsID>
      <OnlineStudentAssignmentPaperID>sample string 1</OnlineStudentAssignmentPaperID>
      <PaperId>5</PaperId>
      <PaperQuestionId>4</PaperQuestionId>
      <PaperSectionId>6</PaperSectionId>
      <QuestionId>7</QuestionId>
      <QuestionMarks>14</QuestionMarks>
      <QuestionMarksObtained>15</QuestionMarksObtained>
      <StudentAnswer>sample string 8</StudentAnswer>
      <timespent>10</timespent>
    </DynamicTest.OnlineTestStudentAssignmentPaperDetails>
    <DynamicTest.OnlineTestStudentAssignmentPaperDetails>
      <AnswerSelected>sample string 9</AnswerSelected>
      <AnsweredMarkedforReview>true</AnsweredMarkedforReview>
      <AttemptedAnswer>true</AttemptedAnswer>
      <BonusMark>27</BonusMark>
      <CorrectToIncorrect>20</CorrectToIncorrect>
      <CorrectToUnanswered>23</CorrectToUnanswered>
      <DeviceUniqueID>sample string 3</DeviceUniqueID>
      <InCorrectToUnanswered>24</InCorrectToUnanswered>
      <IncorrectToCorrect>21</IncorrectToCorrect>
      <IncorrectToIncorrect>22</IncorrectToIncorrect>
      <IsAVSolnViewed>true</IsAVSolnViewed>
      <IsAnsweredCorrect>true</IsAnsweredCorrect>
      <IsQuestionSkipped>true</IsQuestionSkipped>
      <IsQuestonSubmitted>true</IsQuestonSubmitted>
      <IsTATSolnViewed>true</IsTATSolnViewed>
      <IsTextualSolnViewed>true</IsTextualSolnViewed>
      <MarkforReview>true</MarkforReview>
      <OnlineStudentAssignmentPaperDetailsID>sample string 2</OnlineStudentAssignmentPaperDetailsID>
      <OnlineStudentAssignmentPaperID>sample string 1</OnlineStudentAssignmentPaperID>
      <PaperId>5</PaperId>
      <PaperQuestionId>4</PaperQuestionId>
      <PaperSectionId>6</PaperSectionId>
      <QuestionId>7</QuestionId>
      <QuestionMarks>14</QuestionMarks>
      <QuestionMarksObtained>15</QuestionMarksObtained>
      <StudentAnswer>sample string 8</StudentAnswer>
      <timespent>10</timespent>
    </DynamicTest.OnlineTestStudentAssignmentPaperDetails>
  </OTSAPD>
</DynamicTest.TestExistingData>