Create a test case from within an interview

Create a test case from within an interview

You can create a new test case from the data in an interview in the debugger or Oracle Web Determinations. You can export the data directly into a new test case in the debugger, or you can export interview data to an XDS file and then import it into a new test case.

What do you want to do?

Export interview data directly into a new test case from the debugger

Export interview data to an XDS file and import into a new test case

Export interview data directly into a new test case from the debugger

To create a new test case directly from within an interview in the debugger:

  1. Open the debugger by selecting Build | Build and Debug.
  2. Start an investigation and enter the desired values. (For more information on using the debugger, see Debug a rulebase.)
  3. Click on the arrow on the right side of the Export button (located in the top right of the Debug view), and select the Export as Test Case option.
  4. Select a test script to save the new test case to, or enter the name for a new test script.
  5. Enter the name for the new test case and click OK.



  6. The new test case is created in the test script.



Export interview data to an XDS file and import into a new test case

You can export the data from an interview in the debugger or Oracle Web Determinations, and then import this as a test case into a test script.

Export the interview data from the debugger

To create and export the interview data from the debugger:

  1. Open the debugger by selecting Build | Build and Debug.
  2. Start an investigation and enter the desired values. (For more information on using the debugger, see Debug a rulebase.)
  3. Click the Export button (located in the top right of the Debug view).
  4. In the Save As dialog box, enter a file name and destination folder for the XDS file.

Export the interview data from Oracle Web Determinations

To create and export the interview data from Oracle Web Determinations: 

  1. Start Oracle Web Determinations by selecting Build | Build and Run.
  2. In the Oracle Web Determinations interview, enter the desired values. (For more information on using Oracle Web Determinations, see Test an interview or screen flow.)
  3. On the summary screen, click Save As on the horizontal menu bar.



  4. In the Save as case ID field enter a name for the test case. Click Save. The file will be saved as an XDS file in \Release\web-determinations\data\<project name>.

Import the data into a new test case

To import data from a file created in the debugger or Oracle Web Determinations: 

  1. In Oracle Policy Modeling, open your test script file.
  2. Select the test script file in the Test Cases tab in the right hand pane in Oracle Policy Modeling.
  3. Right-click and select Import Test Cases from the pop-up menu.
  4. In the Open dialog box, browse to select the XDS file/s you want to import. Click Open.
  5. New test cases will be created for each of the imported XDS files.

 

Once you have imported your input data as test cases, you can add to it, edit it and delete it.