0
Answer

Need C# code...using BDD, SpecFlow

Varin

Varin

11y
1.4k
1
Need C# code for below scenario. This is a SpecFlow scenario.
 

 
Scenario: Version check
Given the alteryx service is running at "http://gallery.alteryx.com;
When I invoke the GET at "api/status"
Then I see the version "binaryVersions/cloud" is "8.6.0.42414"
And I see the version "binaryVersions/serviceLayer" is "8.6.1.42414"
 
Below is the step definition, now need the solution to add C# logic in the below code
------------------------------------------------
using System;
using System.Collections.Generic;
using System.Data;
using System.IO;
using System.Net;
using System.Xml;
using NUnit.Framework;
using TechTalk.SpecFlow;
 
namespace Version_check
{
[Binding]
public class HealthCheckSteps
{
public static string TheUrl;
public string theResponse;
 

[Given(@"the alteryx service is running at ""(.*)""")]
public void GivenTheAlteryxServiceIsRunningAt(string p0)
{
ScenarioContext.Current.Pending();
}
 
[When(@"I invoke the GET at ""(.*)""")]
public void WhenIInvokeTheGETAt(string p0)
{
ScenarioContext.Current.Pending();
}
[Then(@"I see the version "binaryVersions/cloud" is ""(.*)""")]
public void ThenISeeTheVersionBinaryVersionsCloudIs_(string expectedVersion)
{
 
ScenarioContext.Current.Pending();
 
}
 
[Then(@"I see the version "binaryVersions/serviceLayer" is "(.*)\.(.*)"")]
public void ThenISeeTheVersionBinaryVersionsServiceLayerIs_(Decimal p0, Decimal p1)
{
ScenarioContext.Current.Pending();
}
}
}