Testing with Python, Perl, Windows or Linux scripts
In HCL OneTest™ Embedded for Eclipse IDE, you can import and execute PTU and OTD test scripts but also other scripts such as Batch (Windows only), Shell (Linux only), Perl or Python.
Before you begin
To be able to run Python (.py files) scripts, you must install the PyDev plugin in Eclipse and configure Python Interpreter preferences. You can download the plug-in from this page https://www.python.org/downloads/.
About this task
This task applies to users who want to test with .bat files (Windows only), .pl files (Perl), .py files (Python), and .sh (Shell for Linux only). You must import the script files in a project to execute them.
Procedure
- To import a test script file, proceed as follows: select and choose to select the files. You can import these files in any folder at any file structure level.
- To configure Python, Perl, Windows or Linux script files, see Configuring Python, Perl, Windows or Linux scripts.
-
To execute the test script file, use one of the following methods:
- To open the reports, select the report file corresponding to your last execution, right-click and select .