Dialer SDK > Testing > Interview simulator
 
Interview simulator
The interviewer simulator component (IntvrSim.dll) is provided to support testing your dialing provider as it is called by the session engine. It is scriptable through mrScriptBasic and scripts can be run using mrScriptCl or UNICOM Intelligence Professional. The interviewer simulator component must be run on a computer with UNICOM Intelligence Interviewer installed, and an activated project setup for phone interviewing must be available.
Example test scripts for testing representative interviewer actions (TestInterviewer.mrs), supervisor actions (TestSupervisor.mrs), and failover (TestFailover.mrs) are provided. You can also add your own test scripts. The example test scripts are at:
[INSTALL_FOLDER]\IBM\SPSS\DataCollection\<version>\DDL\ThirdPartyDialer\TestTools
Note Running these test scripts does not verify that your dialing provider is correct. It is only a first step.
Attach a debugger
In order to debug your components, you will need to attach a debugger to the IIS process hosting the session engine (mrIEng.dll component). See Which IIS process is running the Web and Interview tiers for information about how to determine which IIS process is running the session engine for your debugging session.
Debugging
You may find the IVW logs helpful if your script experiences errors. See Log files, in particular “Switching Trace Logging On and Off”. Trace logs from the session engine and sample management script may provide more information that can help in tracking down errors.
Interface
This section describes the methods and properties of the interviewer simulator. Refer to the example test scripts for example usage at:
[INSTALL_FOLDER]\IBM\SPSS\DataCollection\<version>\DDL\ThirdPartyDialer\TestTools
NameSpace: SPSSMR.DataCollection.Utilities.InteviewerSimulator
The methods for InterviewerSimulator are listed in the following table and are associated with SessionEngine and dialing provider methods. The Dialing Provider column shows IDialingProvider methods unless marked with SM; they are ISampleManagementProvider methods when marked with SM.
Method
SessionEngine methods used
Dialing provider methods used
CreateInterviewerSession
None
CloseInterviewerSession
SignOff SetPerfEventsHandler
GetNewSampleRecord
SignOn Get (SM)
GetNewSampleRecord WithCriteria
Get (SM)
FUTURE
None
RunAudioOperation
RunAudioOperation
PostInterviewerEvent
Return (SM)
PostInterviewerEvent
DialCallForExtension
PostInterviewerEvent
Hangup
GetCurrentCallStatus
GetCallStatus
CreateSupervisorSession
None
ConnectSupervisorStation StartMonitoring
SignOn StartMonitoring
StopMonitoring
StopMonitoring
GetActivityReport
GetActivityReport
CloseSupervisorSession
SignOff
Properties
Agent As IAgent2
InterviewEngineUrls
SelectedInterviewEngineUrl
SessionToken
SampleId
SampleRecordXml
See also
Testing