An executable build is a standalone version of your test that you run as a program. To be able to run this executable build in a runtime environment, the build must include the Ranorex Studio runtime library, license information, and external files.
Create an executable build
Ranorex Studio creates an executable build of your project through several actions:
- Click RUN to start a test run.
- Click Build all projects in the solution.
- Click Build the current project.
The resulting files appear in the project’s output folder (by default bin\Debug). You can change the output folder directory in Settings.
- Default output folder directory for the executable build of a project.
- The executable of the test is named after the project. In this case, this is Introduction.
- Configuration files.
- Module group and test suite files.
- Required libraries and the settings of the project.
- Optional external files that were manually included in the output folder. In this case, the Ranorex Studio Demo Application is the application under test (AUT). Without it, the test does not run correctly. You can include it in the project if it is small enough. However, you should pre-install large AUTs on the specific runtime environment.
This executable build allows you to run the test on machines that have a full version of Ranorex Studio installed. To execute tests in runtime environments, for example, machines without a Ranorex Studio installation, you need to include the Ranorex Studio runtime library and licensing information.
Include Ranorex Studio runtime library
To execute your test in a runtime environment, you must include the runtime library in the executable build as follows:
- Open the Settings window in Ranorex Studio.
- Navigate to the General tab.
- Check the Copy runtime to output checkbox and click OK.
When you next build the project, Ranorex Studio creates a Runtime folder within your output directory containing the runtime library.
Include license information
Running tests in a runtime environment requires at least a Ranorex Runtime Floating License. It is not possible to execute a test in a runtime environment with a node-locked license.
You can embed your license information directly into the build as follows:
- In Ranorex Studio, open the Settings.
- Navigate to the General tab.
- Click the Include license information option and click OK.
When you next build the project, Ranorex Studio includes the license information file in the executable build.
Include external files
You may need to include additional files, such as the AUT, data files, images, or specific libraries, in your build. For example, to include the Ranorex Studio Demo Application in the executable build, do the following:
-
Copy the RxDemoApp.exe file into your project folder.
- In the projects view, click the Refresh and the Show all files options to display the file.
-
Right-click the file and select Include in project.
The icon for the file switches from transparent to fully outlined. - Select the file in the Projects view and press F4 to open the file’s properties.
-
Set the Copy to output directory property to Always or PreserveNewest.
-
- Never: The application does not include the file.
- Always: The application copies the file each time you create an executable build.
- PreserveNewest: The application only copies the file if it changed since the last build.