Closed Maheshkale447 closed 2 months ago
The recent changes enhance the functionality of the Ginger framework by introducing a new feature for automatic screenshot capture on execution failure. This includes updates to the configuration, UI components, and associated classes, ensuring that users can easily manage screenshot behavior. Overall, the modifications improve usability and maintainability of the codebase while refining layout and design elements.
File Path | Change Summary |
---|---|
Ginger/.editorconfig | Changed C# brace indentation rule from true to false . |
Ginger/Ginger/Actions/ActionEditPage.xaml | Updated layout to vertical orientation; added checkbox for auto screenshot on failure. |
Ginger/Ginger/Actions/ActionEditPage.xaml.cs | Bound new checkbox to mAction for controlling screenshot behavior. |
Ginger/GingerCoreCommon/Actions/Act.cs | Added AutoScreenShotOnFailure property and refactored SupportSimulation getter. |
Ginger/GingerCoreCommon/Actions/ActWithoutDriver.cs | Added constructor initializing AutoScreenShotOnFailure to false . |
Ginger/GingerCoreCommon/Actions/Webservices/ActSoapUI.cs | Added constructor setting AutoScreenShotOnFailure to false . |
Ginger/GingerCoreCommon/InterfacesLib/IAct.cs | Introduced AutoScreenShotOnFailure property in the IAct interface. |
Ginger/GingerCoreNET/ActionsLib/Webservices/ActWebAPIBase.cs | Added constructor; updated ActionDescription for clarity. |
Ginger/GingerCoreNET/ActionsLib/Webservices/ActWebAPIModel.cs | Added constructor; modified input value list method for initialization. |
Ginger/GingerCoreNET/ActionsLib/Webservices/ActWebAPIRest.cs | Updated ActionDescription for better readability. |
Ginger/GingerCoreNET/ActionsLib/Webservices/ActWebAPISoap.cs | Changed ActionDescription for clarity. |
Ginger/GingerCoreNET/ActionsLib/Webservices/Diameter/ActDiameter.cs | Added constructor initializing AutoScreenShotOnFailure to false . |
Ginger/GingerCoreNET/Run/GingerExecutionEngine.cs | Formatting adjustments for better readability without logical changes. |
sequenceDiagram
participant User
participant UI
participant Act
participant Screenshot
User->>UI: Initiates Action
UI->>Act: Start Execution
Act->>Act: Check for Failure
alt Failure Detected
Act->>Screenshot: Capture Screenshot
end
🐇✨
In code we leap, with changes bright,
Automatic captures, a splendid sight!
With each new checkbox, we frolic and play,
Improving our tools in a whimsical way!
Hops of joy for features added,
In the garden of code, our dreams are padded! 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
It will be by default disabled for Non Driver and Webservices action
Thank you for your contribution. Before submitting this PR, please make sure:
Summary by CodeRabbit
New Features
Bug Fixes
Documentation
Chores