Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space FUNCTDEV and version SVC2020.2

...

A sample Calculator.idl file for the following exercise is included in the <INSTALL>/eclipse/plugins/com.parasoft.ptest.libs.web_<VERSION>/root/build/examples/CORBA directory. In order to use IDLJ, make sure you have J2SDK installed and set the PATH variable so you can access the J2SDK’s executables from any directory.

...

  1. Open a command prompt and navigate to the <INSTALL>/eclipse/plugins/com.parasoft.ptest.libs.web_<VERSION>/root/build/examples/CORBA directory that contains the  Calculator.idl file.

  2. Run the following command to automatically generate packages with correct paths (Windows example):

    Code Block
    languagetext
    idlj –pkgTranslate Persistent examples.CORBA –fall Calculator.idl
  3. Run the following command to compile the java files: 

    Code Block
    javac ../examples/CORBA/*.java.

...

  1. Create an external tool by right clicking on the test suite and select Add Test> Standard Test> New Tool> External Tool.
  2. Select the External tool node and change its name to CORBA Client.
  3. Click on the Browse button and select the path to the CORBA client executable.
  4. If CORBA client takes in parameters, add each argument buy by clicking on the ADD button. A new line will get generated, allowing users to input a flag and argument associated with the executable.
  5. Double-click on the line generated to enter flag and argument. A new dialog box will pop up; change the name and argument accordingly.
  6. If you wish to use a parameterized value, select Parameterized in the Value drop-down menu and select variable name in the Variable drop-down menu then click OK.
  7. In the right GUI panel select the Keep output check box to keep the returned values after each test run.
  8. Right-click the External tool node and select Add Return Value Output> Existing Output> Edit to show the returned values after execution of the test.
  9. Run the test, if the test succeeds return values should appear in the right GUI panel.
  10. If the test failed, returning a Null Pointer exception on the edit screen; check the CORBA server and make sure the server is listening on the designated port and that the service is up and running.