Editing tests in existing projects will only work if your test environment uses one of the supported test frameworks. If you are using different frameworks for test execution, Ranorex Webtestit will not be able to integrate.
Structure of this chapter
To get started, open the root folder of your development project in Ranorex Webtestit. In the following dialog, you need to provide some information to create a new Ranorex Webtestit configuration file. This mainly concerns a project name and the language to be used.
After adding a configuration file, you can use the Project tab to browse your files. You can add new Page Objects and Test files as you would in an empty project.
How to make existing files work with Ranorex WebtestitRanorex Webtestit relies on contextual comments in your source files to identify them as core objects. Core objects are test files or Page Object files and cause the Ranorex Webtestit UI to adapt. Existing Page Object files in your project need to be modified in order to use functionality like Drag&Drop or to add selectors using Ranorex Selocity. To make a Page Object file detectable as such, you need to add the following comment in the first line of the file:
// Ranorex Webtestit Page Object FileIn the Project tab, the file will change its icon and look like you’ve created it in Ranorex Webtestit. The editor will display the special comment in a different color and the user interface will enable you to create selectors without the need of writing code.
In test files you need to specify them by applying the following comment in the first line of the file:
// Ranorex Webtestit Test FileIf you click on a test file modified like this, Ranorex Webtestit will open the Execution tab and enable you to directly run it on configured endpoints.