Skip to content

Commit

Permalink
Auto capture screen-shots on failure Fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
prashelke committed Sep 24, 2024
1 parent 0b462fd commit 213d4b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
3 changes: 1 addition & 2 deletions Ginger/GingerCoreCommon/Actions/Act.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public bool SupportSimulation
/// Gets a value indicating whether automatic screenshot capture is enabled on failure.
/// </summary>
private bool mAutoScreenShotOnFailure = true;
[IsSerializedForLocalRepository]
[IsSerializedForLocalRepository(DefaultValue:true)]
public bool AutoScreenShotOnFailure
{
get {
Expand All @@ -207,7 +207,6 @@ public bool AutoScreenShotOnFailure
}
}
}

public virtual eLocateBy LocateBy
{
get
Expand Down
5 changes: 5 additions & 0 deletions Ginger/GingerCoreCommon/Repository/RepositoryItemBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@ public bool CreateBackup(bool isLocalBackup = false)

return true;
}
catch (Exception ex)
{
Reporter.ToLog(eLogLevel.DEBUG, "Exception while creating backup", ex);
return false;
}
finally
{
mBackupInProgress = false;
Expand Down

0 comments on commit 213d4b2

Please sign in to comment.