Desktop User Guides > Professional > Interview scripting > Testing interview scripts
 
Testing interview scripts
Debugging scripts
For information on debugging interview scripts in UNICOM Intelligence Professional, see Debugging mrScriptBasic code.
Running interview scripts in the Browser tab
The Browser tab enables you to run an interview script in UNICOM Intelligence Professional, just as if you were running it on a Web server. This means that you can test an interview at any time, to make sure that it displays and responds as you want; you do not need to set up a test server or activate an interview project.
The Browser converts the XML that UNICOM Intelligence Professional generates from your interview script to HTML. It also enables you to answer questions in the interview by passing your answers back to the script so that it can continue.
For information about the XML tags that the Browser uses, see Player XML schema.
To run an interview using the Browser tab
Select the Browser tab, and then press F5 or click the run button This graphic is described in the surrounding text..
Displaying interviews in external browsers
You can display interviews in an external browser. The browser appears, showing the interview, and a URL like http://localhost:5080/project_name/ in the address bar.
To display the interview in multiple browsers, open another browser, and then navigate to the URL that is shown in the first browser. You can answer the questions in either browser, and then both browsers display the results. This enables you to check the question display in multiple browsers from Professional, without activating.
To display interviews in an external browser
1 Click Tools > Options.
2 In the Interview Browser section, set Use Built-in Browser to False, and then set External Browser Path to the path of the browser that you want to use.
3 If you want to step through Professional, and have the external browsers update without refreshing them manually, set External browser automatic page update to True.
4 UNICOM Intelligence Professional uses ports 5080 to 5084 for external display of interviews. To use different ports, set HTTP Ports.
See also
Testing with Auto Answer
Interview scripting