TestEvolve
The TestEvolve object is available globally in your Test Evolve project and includes access to drivers and test run information.
TE is an alias for TestEvolve. For example TE.browser will behave the same way as TestEvolve.browser.
Browser
- Ruby
- JavaScript
- TypeScript
TestEvolve.browser
If you have configured test_types in config.yml to include browser
, TestEvolve.browser will return the Watir::Browser instance
that has been created with the configuration specified in browser.yml.
If you have not included browser as a test type in config.yml, TestEvolve.browser will return a TestEvolve::UninitialisedBrowser
instance and methods called on it will raise an exception as no browser has been created.
testEvolve.browser
If you have configured test_types in config.yml to include browser
, testEvolve.browser will return the Selenium::Driver instance
that has been created with the configuration specified in browser.yml.
If you have not included browser as a test type in config.yml, testEvolve.browser will return a UninitialisedBrowser
instance and methods called on it will raise an exception as no browser has been created.
testEvolve.browser
If you have configured test_types in config.yml to include browser
, testEvolve.browser will return the Selenium::Driver instance
that has been created with the configuration specified in browser.yml.
If you have not included browser as a test type in config.yml, testEvolve.browser will return a UninitialisedBrowser
instance and methods called on it will raise an exception as no browser has been created.
Further documentation on how to use the Test Evolve browser is available here.
Mobile App
- Ruby
- JavaScript
- TypeScript
TestEvolve.mobile_app
If you have configured test_types in config.yml to include mobile_app
, TestEvolve.mobile_app will return the Selenium Driver instance that has been created with the configuration specified in mobile_app.yml.
If you have not included mobile_app as a test type in config.yml, TestEvolve.browser will return a TestEvolve::UninitialisedMobileAppDriver
instance and methods called on it will raise an exception as no driver has been created.
testEvolve.mobileApp
If you have configured test_types in config.yml to include mobile_app
, testEvolve.mobileApp will return the Selenium Driver instance that has been created with the configuration specified in mobile_app.yml.
If you have not included mobile_app as a test type in config.yml, testEvolve.mobileApp will return a UninitialisedMobileAppDriver
instance and methods called on it will raise an exception as no driver has been created.
testEvolve.mobileApp
If you have configured test_types in config.yml to include mobile_app
, testEvolve.mobileApp will return the Selenium Driver instance that has been created with the configuration specified in mobile_app.yml.
If you have not included mobile_app as a test type in config.yml, testEvolve.mobileApp will return a UninitialisedMobileAppDriver
instance and methods called on it will raise an exception as no driver has been created.
Further documentation on how to use the Test Evolve mobile app driver is available here.
Desktop App
- Ruby
- JavaScript
- TypeScript
TestEvolve.desktop_app
If you have configured test_types in config.yml to include desktop_app
, TestEvolve.desktop_app will allow you to automate items on the screen based on the configuration specified in desktop_app.yml.
If you have not included desktop_app as a test type in config.yml, TestEvolve.desktop_app will return a TestEvolve::UninitialisedDesktopAppDriver
instance and methods called on it will raise an exception as no driver has been created.
Not yet implemented
Not yet implemented
Further documentation on how to use the Test Evolve desktop app driver is available here.
Environment
- Ruby
- JavaScript
- TypeScript
TestEvolve.environment
In config.yml you will have specified an environment, which relates to a section in the environments.yml. TestEvolve.environment returns the parsed configuration from the environments.yml for your specified environment.
Example usage:
prod:
url: testevolve.com
qa1:
url: qa.testevolve.com
environment: qa1
TestEvolve.environment['url']
> "qa.testevolve.com"
testEvolve.environment
In config.yml you will have specified an environment, which relates to a section in the environments.yml. testEvolve.environment returns the parsed configuration from the environments.yml for your specified environment.
Example usage:
prod:
url: testevolve.com
qa1:
url: qa.testevolve.com
environment: qa1
import { testEvolve } from "@testevolve/testevolve-spark";
testEvolve.environment['url'];
> "qa.testevolve.com"
testEvolve.environment
In config.yml you will have specified an environment, which relates to a section in the environments.yml. testEvolve.environment returns the parsed configuration from the environments.yml for your specified environment.
Example usage:
prod:
url: testevolve.com
qa1:
url: qa.testevolve.com
environment: qa1
import { testEvolve } from "@testevolve/testevolve-spark";
testEvolve.environment['url'];
> "qa.testevolve.com"
Log
Output information about your running tests to the console from anywhere in your code.
- Ruby
- JavaScript
- TypeScript
TestEvolve.log
Example usage:
TestEvolve.log.info 'This test is going very well'
TestEvolve.log.error 'This test is going very badly'
testEvolve.log
Example usage:
import { testEvolve } from "@testevolve/testevolve-spark";
testEvolve.log.info('This test is going very well');
testEvolve.log.error('This test is going very badly');
testEvolve.log
Example usage:
import { testEvolve } from "@testevolve/testevolve-spark";
testEvolve.log.info('This test is going very well');
testEvolve.log.error('This test is going very badly');
Test Run
Compiles information on the test run, updating after each scenario has completed execution.
- Ruby
- JavaScript
- TypeScript
TestEvolve.test_run
Example usage:
File.write(TE.test_run.directory + '/path/to/file', 'Important Information')
testEvolve.testRun
Example usage:
import { testEvolve } from "@testevolve/testevolve-spark";
console.log(testEvolve.testRun.directory);
testEvolve.testRun
Example usage:
import { testEvolve } from "@testevolve/testevolve-spark";
console.log(testEvolve.testRun.directory);