Releases: ShaftHQ/SHAFT_ENGINE
Releases · ShaftHQ/SHAFT_ENGINE
5.1.20210206
version bump - preparing for new release
4.4.20201206
4.4.20201206
4.4.20201006
Merge pull request #202 from MohabMohie/4.4.x 4.4.20201006
4.4.20200921
Merge pull request #199 from MohabMohie/4.4.x 4.4.20200921
4.4.20200830
Merge pull request #192 from MohabMohie/4.4.x 4.4.x
4.3.20200810
Issue fixes and performance enhancements
Fixed full screen bug when maximizing window during regular head execution
4.3.20200629
. Built-in Cucumber Keywords
. Issue fixes
. Reporting Enhancements
. Stabilization and code quality upgrades
4.1.20200309
Chainable Element Actions
Sikuli Actions
bug fixes
4.1.20200224
SHAFT_Engine 4.1.20200224
- [✓] Implement AI Powered Visual Validations using Applitools Eyes.
- Just add your API_KEY under src/test/properties/path.properties
applitoolsApiKey
- Then use the new Assertion/Verification and make sure to select one of the supported VisualValidationEngine techniques for Applitools Eyes; EXACT_EYES, STRICT_EYES, CONTENT_EYES, LAYOUT_EYES
- Method signature:
assertElementMatches(WebDriver driver, By elementLocator, VisualValidationEngine visualValidationEngine, AssertionType assertionType, String... customLogMessage)
- Sample Code:
private static final ThreadLocal<WebDriver> driver = new ThreadLocal<>();
driver.set(BrowserFactory.getBrowser());
BrowserActions.navigateToURL(driver.get(), "https://www.google.com/ncr", "www.google.com");
Assertions.assertElementMatches(driver.get(), By.xpath("//div[@class='RNNXgb']"), Assertions.VisualValidationEngine.STRICT_EYES, Assertions.AssertionType.POSITIVE, "NEW - Using Visual AI; Applitools Eyes");
- Just add your API_KEY under src/test/properties/path.properties
- [✓] Implement AI Powered Visual Validations using OpenCV.
- This Validation is performed locally, so there are no prerequisites to use it.
- You can use the new Assertion/Verification and make sure to select the appropriate VisualValidationEngine for OpenCV; EXACT_OPENCV
- Method signature:
assertElementMatches(WebDriver driver, By elementLocator, VisualValidationEngine visualValidationEngine, AssertionType assertionType, String... customLogMessage)
- Sample Code:
private static final ThreadLocal<WebDriver> driver = new ThreadLocal<>();
driver.set(BrowserFactory.getBrowser());
BrowserActions.navigateToURL(driver.get(), "https://www.google.com/ncr", "www.google.com");
Assertions.assertElementMatches(driver.get(), By.xpath("//div[@class='RNNXgb']"), Assertions.VisualValidationEngine.EXACT_OPENCV, Assertions.AssertionType.POSITIVE, "NEW - Using Visual AI; OpenCV");
- [✓] Implement AI Powered Visual Validations infrastructure and workflow.
- The first time you use a certain VisualValidationEngine (Eyes/OpenCV) a screenshot is taken and saved as a reference image, and the Test step is marked as PASS.
- For all following test runs the actual image is compared against the expected image using the desired VisualValidationEngine, and the Test step is marked as PASS or FAIL accordingly.
- In case you're using OpenCV, you can access your reference images from this path
src\test\resources\DynamicObjectRepository
- In case you're using Applitools Eyes, SHAFT_Engine will provide you with the link to manage your Applitools Dashboard in the report under 'Current Method Log' and in the Console while you execute your test.
- [✓] Refactor Verifications library to use the unified ValidationActions Library to maintain consistent logging and reporting.
- [✓] Updated SHAFT_Engine API documentation.
SHAFT_ENGINE-4.0.20200220-beta
Merge pull request #61 from MohabMohie/4.0.x_intelliJ 4.0.x intelli j