Running tests without Ranorex Installation
Opening Note: The way of deploying tests without Ranorex Installation described below is possible but not recommended. Still this approach is documented since it allows to overcome internal policies and/or restrictions inhibiting installations on runtime environments, e.g. due to group policies within domains.
Deploy Ranorex Libraries and Assemblies
The required files for executing Ranorex tests on runtime machines are located in the "bin" folder of the Ranorex installation path. These files can be found easily on machines having a valid Ranorex Installation using the environment variable %RANOREXPATH%. Please copy the whole content of the "bin" folder (including all subdirectories) to a target folder (<TargetFolder>) on the runtime machine.
xcopy "%RANOREXPATH%\bin\*.*" <PortableMedia>
xcopy <PortableMedia> <TargetFolder>
Note: It is crucial to deploy the Ranorex Assemblies with exactly the same version that was used to compile the test executable
Deploy Ranorex License Information
In the runtime environment a valid license information needs to be available. Most likely the runtime machine will use a floating license, so the only information necessary can be provided by the license file (Ranorex3_Server.lic). This file can be copied easily from any machine having a floating license installed to the target machine and is located in the path of the environment variable %ALLUSERSPROFILE%. For more information please refer to chapter "Install Ranorex License" in the section "Silent Installation of Ranorex".
Deploy Your Ranorex Test
Note: You can directly access this folder by right-clicking the current project and choosing "Open Output Folder" in the context menu.
Next to files needed for test execution, additional files are created in the output folder during test execution (e.g. Reports, Screenshots etc.). Those files do not have to be copied. It's recommended to clear your output folder before and then trigger a new build (Build -> "Build Solution" or hot key F8).
Required files for executing Ranorex test automation:
- Executable file (*.exe)
- Test Suite File (*.rxtst)
Additionally required on the base of your project needs:
- Ranorex Module Group (*.rxtmg), only necessary if modules groups are in use
- Test Data (*.xlsx, *.xlsb, *.xls, *.csv, *), only necessary for data driven tests and if data source files were added to project
- Module Libraries (*.dll), only necessary if module libraries are linked and embedded functionality is referenced in the Test Suite
- Sub folder "RepositoryImages" including all files, if exists
Finally copy the files needed to the target machine and place them in the folder where all Ranorex Libraries and Assemblies are already located (<TargetFolder>). Of course, by copying the whole output folder ("bin\debug" by default), you will ensure you have everything possibly required for running your test.
xcopy "<RanorexProject>\bin\debug\*.*" <PortableMedia>
xcopy <PortableMedia> <TargetFolder>
Note: For executables being explicitly compiled against 64bit CPUs, place these files in the sub folder "x64" of the target folder.
- Ranorex Studio - The Layout
- Lesson 1: Getting Started
- Lesson 2: Ranorex Modules - Test Actions
- Lesson 3: Data-Driven Testing
- Lesson 4: Ranorex Test Suite
- Lesson 5: Ranorex Recorder
- Lesson 6: UI Mapping with Ranorex Repository
- Lesson 7: Code Modules
- Lesson 8: Reporting
- Lesson 9: Ranorex Spy
- Ranorex Settings
- Ranorex Remote
- User Code Library
- Selenium WebDriver integration
- Code Examples
- Data Connectors
- Instrumentation Wizard
- Technology Instrumentation
- RanoreXPath Weight Rule Library
- Ranorex UI Adapter
- Mobile Testing
- Android Testing
- iOS Testing
- Web Testing
- Source Control
- Ranorex Studio IDE
- Visual Studio Integration
- System Requirements
- 64-bit Platforms
- Remotely Working with Ranorex
- Silent Installation of Ranorex
- XCOPY Deployment
- How to instructions