-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathr2.steps
188 lines (188 loc) · 5.28 KB
/
r2.steps
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
/**
// * @file
// * Steps
// *
// * Provide step functions for functional testing.
// * This file is created and modified automatically by the Gherkin compiler.
// *
// * Note, therefore, that most of this file might be changed automatically
// * when you run the compiler again. This @file header will not be affected,
// * but all of the function header comments are (re)generated automatically.
// * Methods within the R2_steps object function are not indented -- do not change that!
// * The last character in this file must be the object function's closing brace (}).
// *
// * Be assured that no functions will be deleted and the compiler will
// * not alter code within a function unless you make it look like a function header.
// *
// * You may also add statements just below this header.
// */
//function R2_steps() {
// this.v = []; // miscellaneous data
// /**
// * Add additional setup for any or all features or tests
// */
// this.extraSetup = function () {};
// /**
// * we scan QR (ARG)
// * in: MAKE ParseQRCode WeScanAValidOldPersonalCard
// * MAKE ParseQRCode WeScanAValidOldCompanyCard
// * MAKE ParseQRCode WeScanAValidPersonalCard
// * MAKE ParseQRCode WeScanAValidCompanyCard
// */
// this.weScanQR = function (qr) {
// this.v.parser = new QRCodeParser();
// this.v.parser.setUrl(qr);
// this.v.parser.parse();
// console.log(this.v.parser);
// return true;
// };
// /**
// * account is personal
// * in: TEST ParseQRCode WeScanAValidOldPersonalCard
// * TEST ParseQRCode WeScanAValidPersonalCard
// */
// this.accountIsPersonal = function () {
// var isItP=(this.v.parser.getAccountInfo().isPersonalAccount()===this.v.parser.accountInfo.isPersonal);
// console.log("isItP");
// console.log(isItP);
// return isItP;
// };
// /**
// * account is company
// *
// * in: TEST ParseQRCode WeScanAValidOldCompanyCard
// * TEST ParseQRCode WeScanAValidCompanyCard
// */
// this.accountIsCompany = function () {
// var isItC=(this.v.parser.getAccountInfo().isCompanyAccount()===this.v.parser.accountInfo.isCompany);
// console.log("isItC");
// console.log(isItC);
// return isItC;
// };
// /**
// * account ID is (ARG) *
// * in: TEST ParseQRCode WeScanAValidOldPersonalCard
// * TEST ParseQRCode WeScanAValidOldCompanyCard
// * TEST ParseQRCode WeScanAValidPersonalCard
// * TEST ParseQRCode WeScanAValidCompanyCard
// */
// this.accountIDIs = function (id) {
// var isThereId=(this.v.parser.getAccountInfo().accountId === id);
// console.log("isThereId:"+this.v.parser.getAccountInfo().accountId);
// console.log(isThereId+id);
// return isThereId;
// };
// /**
// * security code is (ARG)
// * in: TEST ParseQRCode WeScanAValidOldPersonalCard
// * TEST ParseQRCode WeScanAValidOldCompanyCard
// * TEST ParseQRCode WeScanAValidPersonalCard
// * TEST ParseQRCode WeScanAValidCompanyCard
// */
// this.securityCodeIs = function (id) {
// console.log("this.v.parser.getAccountInfo().securityCode:"+this.v.parser.getAccountInfo().unencryptedCode);
// console.log("id:"+id);
// return (this.v.parser.getAccountInfo().unencryptedCode === id);
// };
// /**
// * show page (ARG)
// *
// * in: MAKE Transact Setup
// * TEST Transact WeIdentifyAndChargeACustomer
// */
// this.showPage = function (p) {
// var page=document.location.hash===p;
// console.log(app);
// console.log("app:"+" p:"+p," page:"+ page);
// return true; //page;
// };
// /**
// * show button (ARG)
// *
// * in: TEST Transact Setup
// * TEST Transact WeIdentifyAndChargeACustomer
// */
// this.showButton = function (arg1) {
//
// };
// /**
// * button (ARG) pressed
// *
// * in: MAKE Transact WeIdentifyAndChargeACustomer
// */
// this.buttonPressed = function (arg1) {
//
// };
// /**
// * show scanner
// *
// * in: TEST Transact WeIdentifyAndChargeACustomer
// */
// this.showScanner = function () {
//
// };
// /**
// * scanner sees QR (ARG)
// *
// * in: MAKE Transact WeIdentifyAndChargeACustomer
// */
// this.scannerSeesQR = function (arg1) {
//
// };
// /**
// * show photo of member (ARG)
// *
// * in: TEST Transact WeIdentifyAndChargeACustomer
// */
// this.showPhotoOfMember = function (arg1) {
//
// };
// /**
// * show text (ARG)
// *
// * in: TEST Transact WeIdentifyAndChargeACustomer
// */
// this.showText = function (arg1) {
//
// };
// /**
// * show number keypad
// *
// * in: TEST Transact WeIdentifyAndChargeACustomer
// */
// this.showNumberKeypad = function () {
//
// };
// /**
// * show amount (ARG)
// *
// * in: TEST Transact WeIdentifyAndChargeACustomer
// */
// this.showAmount = function (arg1) {
//
// };
// /**
// * show dropdown with (ARG) selected
// *
// * in: TEST Transact WeIdentifyAndChargeACustomer
// */
// this.showDropdownWithSelected = function (arg1) {
//
// };
// /**
// * show (ARG) message (ARG) titled (ARG)
// *
// * in: TEST Transact WeIdentifyAndChargeACustomer
// */
// this.showMessageTitled = function (arg1, arg2, arg3) {
//
// };
// /**
// * message button (ARG) pressed
// *
// * in: MAKE Transact WeIdentifyAndChargeACustomer
// */
// this.messageButtonPressed = function (arg1) {
//
// };
//}