Replies: 1 comment 2 replies
-
I am having this error here and I am not sure what is causing it. I updated gauge to v1.6.9 from 1.6.8 then I couldnt run my project anymore: gauge run --tags "02_DashboardFeatures" -v
failed to initialize suite datastore. Error: Object reference not set to an instance of an object. Here are my hooks: using static Gauge.CSharp.Lib.ExecutionContext;
using Gauge.CSharp.Lib.Attribute;
using WebtrackTests.Drivers;
namespace WebtrackTests.GaugeSetupTeardown
{
public class SetupTeardownHooks
{
private readonly WebtrackWebDriver _driver = new();
private readonly StepDetails _context = new();
[BeforeScenario("01_LoginFeatures")]
public void BeforeLoginFeatureScenario()
{
var waitingTime = 30;
_driver.AddDependencyServices();
_driver.InitializeDriver(waitingTime);
}
[BeforeScenario("02_DashboardFeatures")]
public void BeforeDashboardFeaturesScenario()
{
var waitingTime = 60;
_driver.AddDependencyServices();
_driver.InitializeDriver(waitingTime);
}
[BeforeStep("02_DashboardFeatures")]
public void BeforeDashboardFeaturesStep()
{
var som = _context.Text;
Console.WriteLine(som);
// if (!context.CurrentStep.Text.Equals("Navigate To Dashboard Interface."))
// {
// _driver.WaitForPageToFinishLoading();
// }
}
[AfterScenario]
public void AfterAllScenarios()
{
_driver.DriverCleanup();
_driver.DependencyServicesCleanup();
}
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way I can skip either a concept, scenario or step using the hooks?
Beta Was this translation helpful? Give feedback.
All reactions