Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Need C# code for below scenario. This is a SpecFlow scenario.

Then I see the version “binaryVersions/cloud” is “8.6.0.42414”
And I see the version “binaryVersions/serviceLayer” is “8.6.1.42414”

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();
}
}
}
Posted
Updated 13-Oct-13 17:37pm
v2
Comments
Mehdi Gholam 13-Oct-13 4:17am    
... and what does this have to do with json?
enhzflep 13-Oct-13 5:53am    
or c++?
[no name] 14-Oct-13 0:50am    
Or Q&A?
Richard MacCutchan 14-Oct-13 3:25am    
Well you have updated your post but it still means nothing.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900