CRISP is an open-source Chrome extension which helps to select web elements on the page, automatically populate its selectors, assign configured actions and generate ready test code based on the customized patterns. It can speed up the process of test development by replacing manual time-consuming operations with automated features.
CRISP configured to use WebdriverIO Cucumber Boilerplate project by default.
- Follow the quick start guide to setup the WebdriverIO Cucumber Boilerplate project.
- Install and use CRISP to generate test steps.
- Add generated test steps to new scenario in WebdriverIO Cucumber Boilerplate project.
- Run the test.
- Node version 12 or higher
- Download the latest stable release here or clone the git repo:
$ git clone https://github.com/exadel-inc/crisp.git
- Navigate to the root folder and run the command to install the dependencies
$ npm install
- Run the command to build the artifacts
$ npm run build
- Launch Chrome browser and open the Extension Management page by navigating to
chrome://extensions
- Enable Developer Mode by clicking the toggle switch next to Developer mode.
- Click the Load unpacked button and select the
dist
directory from CRISP files.
To start using CRISP:
- Launch Chrome browser.
- Open Developer tools:
- Click “Customize and control Google Chrome” (3-dots icon) at the status bar -> Select “More Tools” -> select “Developer Tools”;
- Or press Ctrl+Shift+I;
- Or press F12 key.
- Open “Elements” tab.
- Open "CRISP" sub-tab on the same level with the "Styles" sub-tab.
- Click [+] icon to open “Add element” screen.
- Launch the “Inspect” tool and select the necessary element at the page.
(As a result, CRISP will populate found locators of the element into the related fields “ID”, “CSS”, “xPath”). - Select the necessary test “Actions\Verifications” for this element.
(e.g. “click
” or “expect element is displayed
”) - Click [Save] button.
- Open “Test Actions\Verifications” tab in the bottom.
- Click “Generate for page” button and see results.
- Copy & Paste the generated test steps into new scenario in WebdriverIO Cucumber Boilerplate project and run it
- Use to generate test steps sequentially for different elements and create comprehensive E2E scenarios.
- Create new pages to store elements.
- Add many elements at once based on a common attribute.
- Customize and define your own steps and patterns in the “Settings” -> “Framework”.
For more details please refer to the CRISP manual.
There are two kinds of entryfiles that create bundles.
- All ts-files in the root of the
./app/scripts
directory - All css-,scss- and less-files in the root of the
./app/styles
directory
- UI/UX redesign
- Highlight elements
- Verify locators of elements
- User actions history
- Presets for actions/verifications
- User-friendly merge conflict resolution during Import/Pull/Push