Skip to content

Commit

Permalink
delete http request test, the api is unsteady (microsoft#812)
Browse files Browse the repository at this point in the history
  • Loading branch information
Qi Kang authored Sep 5, 2019
1 parent ccc7266 commit 0cb4b2f
Showing 1 changed file with 6 additions and 25 deletions.
31 changes: 6 additions & 25 deletions BotProject/CSharp/Tests/StepsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -118,26 +118,7 @@ await BuildTestFlow(getFolderPath("Steps_Samples"))
}

[TestMethod]
public async Task Steps_06HttpRequest()
{
await BuildTestFlow(getFolderPath("Steps_Samples"))
.SendConversationUpdate()
.AssertReply("I can show you examples on how to use Steps. Enter the number next to the entity that you with to see in action.\n01 - Steps\n02 - EndTurn\n03 - IfCondiftion\n04 - EditArray, Foreach\n05 - EndDialog\n06 - HttpRequest\n07 - SwitchCondition\n08 - RepeatDialog\n09 - TraceAndLog\n10 - EditSteps\n11 - ReplaceDialog\n12 - EmitEvent\n")
.Send("06")
.AssertReply("Welcome! Here is a http request sample, please enter a name for you visual pet.")
.Send("TestPetName")
.AssertReply("Great! Your pet's name is TestPetName")
.AssertReply("Now please enter the id of your pet, this could help you find your pet later.")
.Send("88888")
.AssertReply("Done! You have added a pet named \"TestPetName\" with id \"88888\"")
.AssertReply("Now try to specify the id of your pet, and I will help your find it out from the store.")
.Send("88888")
.AssertReply("Great! I found your pet named \"TestPetName\"")
.StartTestAsync();
}

[TestMethod]
public async Task Steps_07SwitchCondition()
public async Task Steps_06SwitchCondition()
{
await BuildTestFlow(getFolderPath("Steps_Samples"))
.SendConversationUpdate()
Expand All @@ -151,7 +132,7 @@ await BuildTestFlow(getFolderPath("Steps_Samples"))
}

[TestMethod]
public async Task Steps_08RepeatDialog()
public async Task Steps_07RepeatDialog()
{
await BuildTestFlow(getFolderPath("Steps_Samples"))
.SendConversationUpdate()
Expand All @@ -168,7 +149,7 @@ await BuildTestFlow(getFolderPath("Steps_Samples"))
}

[TestMethod]
public async Task Steps_09TraceAndLog()
public async Task Steps_08TraceAndLog()
{
await BuildTestFlow(getFolderPath("Steps_Samples"), sendTrace: true)
.SendConversationUpdate()
Expand All @@ -186,7 +167,7 @@ await BuildTestFlow(getFolderPath("Steps_Samples"), sendTrace: true)
}

[TestMethod]
public async Task Steps_10EditSteps()
public async Task Steps_09EditSteps()
{
await BuildTestFlow(getFolderPath("Steps_Samples"))
.SendConversationUpdate()
Expand All @@ -200,7 +181,7 @@ await BuildTestFlow(getFolderPath("Steps_Samples"))
}

[TestMethod]
public async Task Steps_11ReplaceDialog()
public async Task Steps_10ReplaceDialog()
{
await BuildTestFlow(getFolderPath("Steps_Samples"))
.SendConversationUpdate()
Expand All @@ -221,7 +202,7 @@ await BuildTestFlow(getFolderPath("Steps_Samples"))
}

[TestMethod]
public async Task Steps_12EmitEvent()
public async Task Steps_11EmitEvent()
{
await BuildTestFlow(getFolderPath("Steps_Samples"))
.SendConversationUpdate()
Expand Down

0 comments on commit 0cb4b2f

Please sign in to comment.