???????????????????
???????????? ???????[ 2016/6/13 10:51:33 ] ??????????????? ???????
????????????????????
????????: ?????
????????: ?????????????????????
???????? ??????????"??"?????????
???????? ?????????"Dave"??????????????????50???
?????? ????"Dave"???
?????? ???????"??"????
?????? ?????????10?????????????4??"??"
?????? ?????????
??????? ???????л??10???
????????????????????
1 using System;
2 using TechTalk.SpecFlow;
3
4 namespace AcceptanceTestExample
5 {
6 [Binding]
7 public class ?????Steps
8 {
9 private AdminApi adminApi;
10 private TradingUi tradingUi;
11
12 [BeforeScenario]
13 public void ???????()
14 {
15 adminApi = new AdminApi();
16 tradingUi = new TradingUi();
17 }
18
19 [Given(@"??????????""(.*)""?????????")]
20 public void ??????????????????????(string instrument)
21 {
22 adminApi.CreateInstrument(instrument);
23 }
24
25 [Given(@"?????????""(.*)""??????????????????(.*)???")]
26 public void ???????????е??????????????????(string user?? decimal amount)
27 {
28 adminApi.CreateUser(user?? amount);
29 }
30
31 [When(@"????""(.*)""???")]
32 public void ????????(string user)
33 {
34 tradingUi.Login(user);
35 }
36
37 [When(@"???????""(.*)""????")]
38 public void ?????????????(string instrument)
39 {
40 tradingUi.SelectInstrument(instrument);
41 }
42
43 [When(@"?????????(.*)?????????????(.*)??""(.*)""")]
44 public void ?????????????????????????(decimal amount?? int quantity?? string instrument)
45 {
46 tradingUi.PlaceOrder(instrument?? quantity?? amount);
47 }
48
49 [When(@"?????????")]
50 public void ???????????()
51 {
52 tradingUi.ConfirmOrderSuccess();
53 }
54
55 [Then(@"???????л??(.*)???")]
56 public void ??????????л?????(decimal balance)
57 {
58 tradingUi.ConfirmAccountBalance(balance);
59 }
60 }
61 }
??????????????ó?????????
1 namespace AcceptanceTestExample
2 {
3 public class AdminApi
4 {
5 //??????????
6 }
7 }
8
9 namespace AcceptanceTestExample
10 {
11 public class TradingUi
12 {
13 //???Selenium.WebDriver????Web UI
14 }
15 }
???????????????????????????ó?????????????????????ó??????????????????????????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
??γ????????????????????????????????????漰??Щ???????????????????????????????????????????????????????????????е???????????????????????????????????????Щ??????????????????????Ч?????????????????????????????????????α?????????????????????????????????????????????????????????????????????????????????????????????????????????????????γ?????????????????????????????ζ?????????????????????????????????????????????????????????????????????????????????????????????????????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????