TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Varin
NA
1
2k
Need C# code...using BDD, SpecFlow
Oct 14 2013 8:57 AM
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();
}
}
}
Reply
Answers (
0
)
Pdf parser Image extraction from pdf
printpreviewdialog print preview problem