This is a task completed for a recruitment process at one of the companies; therefore, due to the context, it will soon be removed and is not intended for presentation purposes.
CypressB--------ce is an automation demo testing project for the B--------ce Futures platform, utilizing the Cypress framework with Cucumber and TypeScript integration for creating end-to-end (E2E) tests.
- Node.js (latest LTS version recommended)
- npm (usually installed with Node.js)
- Clone the repository:
git clone [REPOSITORY_URL]
- Navigate to the project directory:
cd cypressbinance
- Install dependencies:
npm install
The project is configured to test B--------ce . Main settings are in the cypress.config.ts file:
- Base URL: https://testnet.b--------cefuture.com/
- Viewport resolution: 1440x900
- Spec pattern:
cypress/e2e/**/*.feature
To run the Cypress tests, you need to set the following environment variables:
EMAIL: The email address used to log into the application.PASSWORD: The password used to log into the application.
You can set the environment variables directly in the cypress.json file:
{
"env": {
"EMAIL": "your-email@example.com",
"PASSWORD": "your-secure-password"
}
}To run tests in a visual environment, use the following command:
npx cypress open
To run tests in a console, use the following command(example with tags):
npx cypress run --env TAGS='@BuyLongOnMarket'
cypress/e2e/: Directory containing feature files with Cucumber testscypress/support/: Directory with helper files, e.g., Cucumber step definitions, commandstsconfig.json: TypeScript configurationcypress.config.ts: Main Cypress configuration file
- Cypress 13.13.1
- TypeScript 5.5.4
- cypress-cucumber-preprocessor 4.3.1
- for better codestyle quality you should use eslint-plugin-cypress
Marcin Boryczko
ISC