├── LICENSE ├── README.md └── test ├── 51cto-study-len.side ├── 51cto-study-log.side ├── baidu-ddt.side ├── baidu-search-var.side ├── baidu-search.side ├── baidu-store.side ├── calculator.side ├── factorial.side ├── flow.side ├── hello-world.side ├── hosted-redmine.side ├── locator.side ├── mobile.side ├── pop-window.side ├── study-len-ddt.side ├── sum.side └── tools.side /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2016 王顶 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # seIDE 2 | 用selenium IDE 录制的各种网站的自动化测试脚本,用于教学案例。 3 | -------------------------------------------------------------------------------- /test/51cto-study-len.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "36a29063-0cb9-47a1-9396-b84259c013b2", 3 | "version": "2.0", 4 | "name": "51cto", 5 | "url": "https://edu.51cto.com/user/", 6 | "tests": [{ 7 | "id": "52ca7734-3b86-4fef-9a03-024e3d27139f", 8 | "name": "study-length", 9 | "commands": [{ 10 | "id": "e5a1b641-68e4-488f-b557-7b10ae608c9b", 11 | "comment": "", 12 | "command": "executeScript", 13 | "target": "return 0", 14 | "targets": [], 15 | "value": "totalLen" 16 | }, { 17 | "id": "299aaf05-e27c-4ef0-9b78-82db8a70710b", 18 | "comment": "", 19 | "command": "open", 20 | "target": "user_id-12013438.html", 21 | "targets": [], 22 | "value": "申 童" 23 | }, { 24 | "id": "225b085b-28c9-4c3f-a4da-ec12d239996d", 25 | "comment": "", 26 | "command": "storeText", 27 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 28 | "targets": [], 29 | "value": "len" 30 | }, { 31 | "id": "2072210b-370d-4fc0-919e-ed4973bbfd70", 32 | "comment": "", 33 | "command": "executeScript", 34 | "target": "return Number(${len}) + Number(${totalLen})", 35 | "targets": [], 36 | "value": "totalLen" 37 | }, { 38 | "id": "3a7cf7ce-b6f5-4da5-a13d-71326188d028", 39 | "comment": "", 40 | "command": "open", 41 | "target": "user_id-12013565.html", 42 | "targets": [], 43 | "value": "杜承彧" 44 | }, { 45 | "id": "979ec7f5-54a0-4144-9ba0-e12bb595de9b", 46 | "comment": "", 47 | "command": "storeText", 48 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 49 | "targets": [], 50 | "value": "len" 51 | }, { 52 | "id": "bad8cbaf-d1a4-4cde-bf11-6ec117156cfb", 53 | "comment": "", 54 | "command": "executeScript", 55 | "target": "return Number(${len}) + Number(${totalLen})", 56 | "targets": [], 57 | "value": "totalLen" 58 | }, { 59 | "id": "fbe253d2-f8cf-4da1-94fa-395e60191301", 60 | "comment": "", 61 | "command": "open", 62 | "target": "user_id-12014332.html", 63 | "targets": [], 64 | "value": "高梦瑶" 65 | }, { 66 | "id": "ad6abcd7-fdb4-427f-b027-96b1a3229e73", 67 | "comment": "", 68 | "command": "storeText", 69 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 70 | "targets": [], 71 | "value": "len" 72 | }, { 73 | "id": "abdca5db-6597-4781-9235-49aa0a60771d", 74 | "comment": "", 75 | "command": "executeScript", 76 | "target": "return Number(${len}) + Number(${totalLen})", 77 | "targets": [], 78 | "value": "totalLen" 79 | }, { 80 | "id": "b8337761-fd72-4bd6-875f-e144585c0334", 81 | "comment": "", 82 | "command": "open", 83 | "target": "user_id-12019997.html", 84 | "targets": [], 85 | "value": "辛 悦" 86 | }, { 87 | "id": "e8d18677-8458-4382-8c6b-45f048876b7d", 88 | "comment": "", 89 | "command": "storeText", 90 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 91 | "targets": [], 92 | "value": "len" 93 | }, { 94 | "id": "7625e2e8-6527-4e19-999d-e66bb8dc7ffa", 95 | "comment": "", 96 | "command": "executeScript", 97 | "target": "return Number(${len}) + Number(${totalLen})", 98 | "targets": [], 99 | "value": "totalLen" 100 | }, { 101 | "id": "58d3875b-6edb-4eff-86c9-90e4b4a189d3", 102 | "comment": "", 103 | "command": "open", 104 | "target": "user_id-12014343.html", 105 | "targets": [], 106 | "value": "张梦云" 107 | }, { 108 | "id": "de353297-546e-42e8-bdbf-f2cef812fc5f", 109 | "comment": "", 110 | "command": "storeText", 111 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 112 | "targets": [], 113 | "value": "len" 114 | }, { 115 | "id": "85a807ad-f123-4c69-865e-7fd91bf90bb3", 116 | "comment": "", 117 | "command": "executeScript", 118 | "target": "return Number(${len}) + Number(${totalLen})", 119 | "targets": [], 120 | "value": "totalLen" 121 | }, { 122 | "id": "aa53a902-4a34-4bb7-b450-2da460177077", 123 | "comment": "", 124 | "command": "open", 125 | "target": "user_id-12014246.html", 126 | "targets": [], 127 | "value": "赵萌萌" 128 | }, { 129 | "id": "0132b25e-bed0-4694-81d1-bac0dd498922", 130 | "comment": "", 131 | "command": "storeText", 132 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 133 | "targets": [], 134 | "value": "len" 135 | }, { 136 | "id": "a1620603-1441-446c-acab-deb28278a413", 137 | "comment": "", 138 | "command": "executeScript", 139 | "target": "return Number(${len}) + Number(${totalLen})", 140 | "targets": [], 141 | "value": "totalLen" 142 | }, { 143 | "id": "d2154429-1409-4c9f-8da7-600bcbaf2bc8", 144 | "comment": "", 145 | "command": "open", 146 | "target": "user_id-12015479.html", 147 | "targets": [], 148 | "value": "杜仁双" 149 | }, { 150 | "id": "898e913b-924e-4589-8918-ffa0f37df3e3", 151 | "comment": "", 152 | "command": "storeText", 153 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 154 | "targets": [], 155 | "value": "len" 156 | }, { 157 | "id": "a44fe370-8437-442e-b21b-c0abdd152680", 158 | "comment": "", 159 | "command": "executeScript", 160 | "target": "return Number(${len}) + Number(${totalLen})", 161 | "targets": [], 162 | "value": "totalLen" 163 | }, { 164 | "id": "f3f10e65-880f-4a8e-99f3-7de04aae551c", 165 | "comment": "", 166 | "command": "open", 167 | "target": "user_id-12017467.html", 168 | "targets": [], 169 | "value": "刘金梦" 170 | }, { 171 | "id": "57b9f103-2c5a-42fd-ad67-e959ae423171", 172 | "comment": "", 173 | "command": "storeText", 174 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 175 | "targets": [], 176 | "value": "len" 177 | }, { 178 | "id": "6c983f1e-13b0-4014-9735-54657a64bc6d", 179 | "comment": "", 180 | "command": "executeScript", 181 | "target": "return Number(${len}) + Number(${totalLen})", 182 | "targets": [], 183 | "value": "totalLen" 184 | }, { 185 | "id": "f9d1d773-dc68-4d2e-ae67-0302a071191a", 186 | "comment": "", 187 | "command": "open", 188 | "target": "user_id-12021004.html", 189 | "targets": [], 190 | "value": "申惠心" 191 | }, { 192 | "id": "52f2e522-dca2-43bb-b6d8-8222c4ec7670", 193 | "comment": "", 194 | "command": "storeText", 195 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 196 | "targets": [], 197 | "value": "len" 198 | }, { 199 | "id": "8cb21d4a-fa33-4e5b-a78b-f422768b861c", 200 | "comment": "", 201 | "command": "executeScript", 202 | "target": "return Number(${len}) + Number(${totalLen})", 203 | "targets": [], 204 | "value": "totalLen" 205 | }, { 206 | "id": "e231648a-9934-4ac1-aa3a-a5452d27c78e", 207 | "comment": "", 208 | "command": "open", 209 | "target": "user_id-12016847.html", 210 | "targets": [], 211 | "value": "王 岚" 212 | }, { 213 | "id": "c778d368-53c4-4c6e-ba85-4eb66693b529", 214 | "comment": "", 215 | "command": "storeText", 216 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 217 | "targets": [], 218 | "value": "len" 219 | }, { 220 | "id": "2b995f6c-949d-4857-a27a-d31017e71a24", 221 | "comment": "", 222 | "command": "executeScript", 223 | "target": "return Number(${len}) + Number(${totalLen})", 224 | "targets": [], 225 | "value": "totalLen" 226 | }, { 227 | "id": "e51880a8-e98d-46c2-8f04-bb1c4f53c536", 228 | "comment": "", 229 | "command": "open", 230 | "target": "user_id-12017915.html", 231 | "targets": [], 232 | "value": "于立娜" 233 | }, { 234 | "id": "1bdd4f60-c46f-4e26-82fb-5d8b0ab92a65", 235 | "comment": "", 236 | "command": "storeText", 237 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 238 | "targets": [], 239 | "value": "len" 240 | }, { 241 | "id": "6c370a00-a9bf-4469-bdb6-d2071d08d7ea", 242 | "comment": "", 243 | "command": "executeScript", 244 | "target": "return Number(${len}) + Number(${totalLen})", 245 | "targets": [], 246 | "value": "totalLen" 247 | }, { 248 | "id": "6a1c51c5-6fc0-405f-bb12-149879bf9b74", 249 | "comment": "", 250 | "command": "open", 251 | "target": "user_id-12018267.html", 252 | "targets": [], 253 | "value": "高 杨" 254 | }, { 255 | "id": "3e285fc4-70ad-4bb6-85e4-3decdd960943", 256 | "comment": "", 257 | "command": "storeText", 258 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 259 | "targets": [], 260 | "value": "len" 261 | }, { 262 | "id": "b949565b-7489-4cc1-8675-3c5c5ebb97cc", 263 | "comment": "", 264 | "command": "executeScript", 265 | "target": "return Number(${len}) + Number(${totalLen})", 266 | "targets": [], 267 | "value": "totalLen" 268 | }, { 269 | "id": "d76c9b11-1073-49d6-a1c5-82eb5543c379", 270 | "comment": "", 271 | "command": "open", 272 | "target": "user_id-12012840.html", 273 | "targets": [], 274 | "value": "程红悦" 275 | }, { 276 | "id": "f17be834-9538-4eaa-b74d-0e109e08e093", 277 | "comment": "", 278 | "command": "storeText", 279 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 280 | "targets": [], 281 | "value": "len" 282 | }, { 283 | "id": "c13f29b9-49e7-4919-b9b7-74b4f9af4eee", 284 | "comment": "", 285 | "command": "executeScript", 286 | "target": "return Number(${len}) + Number(${totalLen})", 287 | "targets": [], 288 | "value": "totalLen" 289 | }, { 290 | "id": "5552573b-7166-408f-8244-c70d288631f4", 291 | "comment": "", 292 | "command": "open", 293 | "target": "user_id-12019636.html", 294 | "targets": [], 295 | "value": "杜巧玉" 296 | }, { 297 | "id": "808f9350-8eb3-4bb4-a9fa-2d67f73d9705", 298 | "comment": "", 299 | "command": "storeText", 300 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 301 | "targets": [], 302 | "value": "len" 303 | }, { 304 | "id": "19aad589-9ea8-488a-b6d7-36a8f826ed14", 305 | "comment": "", 306 | "command": "executeScript", 307 | "target": "return Number(${len}) + Number(${totalLen})", 308 | "targets": [], 309 | "value": "totalLen" 310 | }, { 311 | "id": "e64e56d9-4210-454e-95cc-8552b380a7de", 312 | "comment": "", 313 | "command": "open", 314 | "target": "user_id-12012463.html", 315 | "targets": [], 316 | "value": "曹凯旋" 317 | }, { 318 | "id": "b130a9cc-4e5a-43bd-afd2-26c5e9547d25", 319 | "comment": "", 320 | "command": "storeText", 321 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 322 | "targets": [], 323 | "value": "len" 324 | }, { 325 | "id": "460ea12a-a570-41de-b2e2-b2a2f816fc07", 326 | "comment": "", 327 | "command": "executeScript", 328 | "target": "return Number(${len}) + Number(${totalLen})", 329 | "targets": [], 330 | "value": "totalLen" 331 | }, { 332 | "id": "3ad220f5-fa29-493e-9171-fe1456a1205c", 333 | "comment": "", 334 | "command": "open", 335 | "target": "user_id-12022278.html", 336 | "targets": [], 337 | "value": "强子辉" 338 | }, { 339 | "id": "be991aa0-b6c7-493b-9693-2726df2439ef", 340 | "comment": "", 341 | "command": "storeText", 342 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 343 | "targets": [], 344 | "value": "len" 345 | }, { 346 | "id": "994049fe-2150-4dcc-9f4f-7c69de90a71c", 347 | "comment": "", 348 | "command": "executeScript", 349 | "target": "return Number(${len}) + Number(${totalLen})", 350 | "targets": [], 351 | "value": "totalLen" 352 | }, { 353 | "id": "ef92bd81-dd6d-4e26-b605-b18b232abda6", 354 | "comment": "", 355 | "command": "open", 356 | "target": "user_id-12022422.html", 357 | "targets": [], 358 | "value": "刘世杰" 359 | }, { 360 | "id": "c760736c-5ad2-4630-91b3-892a458d5179", 361 | "comment": "", 362 | "command": "storeText", 363 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 364 | "targets": [], 365 | "value": "len" 366 | }, { 367 | "id": "3e69f3eb-0783-46bc-b4d1-16f6484ed94d", 368 | "comment": "", 369 | "command": "executeScript", 370 | "target": "return Number(${len}) + Number(${totalLen})", 371 | "targets": [], 372 | "value": "totalLen" 373 | }, { 374 | "id": "eb72637d-d1d8-45de-a011-c0c301408c3e", 375 | "comment": "", 376 | "command": "open", 377 | "target": "user_id-12017090.html", 378 | "targets": [], 379 | "value": "周 凯" 380 | }, { 381 | "id": "046cc801-507d-4c0b-92a1-31dc27f40ffc", 382 | "comment": "", 383 | "command": "storeText", 384 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 385 | "targets": [], 386 | "value": "len" 387 | }, { 388 | "id": "b4914400-fcc1-474a-b763-9e28b5c83849", 389 | "comment": "", 390 | "command": "executeScript", 391 | "target": "return Number(${len}) + Number(${totalLen})", 392 | "targets": [], 393 | "value": "totalLen" 394 | }, { 395 | "id": "b7fa830c-ecdf-42a6-b04e-72676221219f", 396 | "comment": "", 397 | "command": "open", 398 | "target": "user_id-12024390.html", 399 | "targets": [], 400 | "value": "李 辉" 401 | }, { 402 | "id": "4a8d45d9-cb49-47d8-b706-11b112b1ab15", 403 | "comment": "", 404 | "command": "storeText", 405 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 406 | "targets": [], 407 | "value": "len" 408 | }, { 409 | "id": "7d2a4eec-fa09-4aa0-8650-f2d361352dd8", 410 | "comment": "", 411 | "command": "executeScript", 412 | "target": "return Number(${len}) + Number(${totalLen})", 413 | "targets": [], 414 | "value": "totalLen" 415 | }, { 416 | "id": "f5c7831d-6207-4f06-8bc7-22caac2e150d", 417 | "comment": "", 418 | "command": "open", 419 | "target": "user_id-12022565.html", 420 | "targets": [], 421 | "value": "仇 旭" 422 | }, { 423 | "id": "d9ba4672-31aa-4510-9ea1-bc4e50e407b2", 424 | "comment": "", 425 | "command": "storeText", 426 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 427 | "targets": [], 428 | "value": "len" 429 | }, { 430 | "id": "dc2ecfa0-111b-49a3-a05e-a5bdc888e320", 431 | "comment": "", 432 | "command": "executeScript", 433 | "target": "return Number(${len}) + Number(${totalLen})", 434 | "targets": [], 435 | "value": "totalLen" 436 | }, { 437 | "id": "ed5b17f8-d5d6-4353-803b-12d07d81484d", 438 | "comment": "", 439 | "command": "open", 440 | "target": "user_id-12030031.html", 441 | "targets": [], 442 | "value": "张皎月" 443 | }, { 444 | "id": "26c2c5b5-6108-4809-9bab-c11455d6c6db", 445 | "comment": "", 446 | "command": "storeText", 447 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 448 | "targets": [], 449 | "value": "len" 450 | }, { 451 | "id": "1a481a3e-94ea-4122-a10a-8981244f3218", 452 | "comment": "", 453 | "command": "executeScript", 454 | "target": "return Number(${len}) + Number(${totalLen})", 455 | "targets": [], 456 | "value": "totalLen" 457 | }, { 458 | "id": "cb7dea6a-1534-4f57-94c2-5c91a4f2f9dc", 459 | "comment": "", 460 | "command": "open", 461 | "target": "user_id-12019737.html", 462 | "targets": [], 463 | "value": "王晓宁" 464 | }, { 465 | "id": "e46774e8-aa6b-4cc3-9411-174111ceb810", 466 | "comment": "", 467 | "command": "storeText", 468 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 469 | "targets": [], 470 | "value": "len" 471 | }, { 472 | "id": "735d6ab9-fb33-4d39-827d-1df764cbe22e", 473 | "comment": "", 474 | "command": "executeScript", 475 | "target": "return Number(${len}) + Number(${totalLen})", 476 | "targets": [], 477 | "value": "totalLen" 478 | }, { 479 | "id": "8f2c17bd-97c4-40e1-a5a5-cd69bbdcdc3f", 480 | "comment": "", 481 | "command": "open", 482 | "target": "user_id-12022513.html", 483 | "targets": [], 484 | "value": "葛 兰" 485 | }, { 486 | "id": "8e3e6d0c-8445-4702-a0cb-3fe30a6f2428", 487 | "comment": "", 488 | "command": "storeText", 489 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 490 | "targets": [], 491 | "value": "len" 492 | }, { 493 | "id": "0b80b119-fd25-44cb-98e3-b69adf5ff0c1", 494 | "comment": "", 495 | "command": "executeScript", 496 | "target": "return Number(${len}) + Number(${totalLen})", 497 | "targets": [], 498 | "value": "totalLen" 499 | }, { 500 | "id": "65fdbfa0-8b01-4341-bc70-84a380a77098", 501 | "comment": "", 502 | "command": "open", 503 | "target": "user_id-12023842.html", 504 | "targets": [], 505 | "value": "赵晶晶" 506 | }, { 507 | "id": "521df66c-f350-4550-9c2d-1b53f91ba022", 508 | "comment": "", 509 | "command": "storeText", 510 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 511 | "targets": [], 512 | "value": "len" 513 | }, { 514 | "id": "afe1dba1-9cda-4691-b718-7138807875fd", 515 | "comment": "", 516 | "command": "executeScript", 517 | "target": "return Number(${len}) + Number(${totalLen})", 518 | "targets": [], 519 | "value": "totalLen" 520 | }, { 521 | "id": "55c6319c-1c06-475b-92d5-8ec877c6f941", 522 | "comment": "", 523 | "command": "open", 524 | "target": "user_id-11449294.html", 525 | "targets": [], 526 | "value": "李志伟" 527 | }, { 528 | "id": "448efaa2-612b-411f-bf4f-c415095b7857", 529 | "comment": "", 530 | "command": "storeText", 531 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 532 | "targets": [], 533 | "value": "len" 534 | }, { 535 | "id": "22931751-c445-4417-b441-25b2c906e138", 536 | "comment": "", 537 | "command": "executeScript", 538 | "target": "return Number(${len}) + Number(${totalLen})", 539 | "targets": [], 540 | "value": "totalLen" 541 | }, { 542 | "id": "994b0f3b-048b-45c7-b343-afa1cbbcd50e", 543 | "comment": "", 544 | "command": "open", 545 | "target": "user_id-12111398.html", 546 | "targets": [], 547 | "value": "郭 娜" 548 | }, { 549 | "id": "b8113e64-7409-4f42-85a9-cc4bfb4be6e7", 550 | "comment": "", 551 | "command": "storeText", 552 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 553 | "targets": [], 554 | "value": "len" 555 | }, { 556 | "id": "42636fdb-a0ef-4050-8431-04a69454f9c0", 557 | "comment": "", 558 | "command": "executeScript", 559 | "target": "return Number(${len}) + Number(${totalLen})", 560 | "targets": [], 561 | "value": "totalLen" 562 | }, { 563 | "id": "2f597114-fb98-4f65-a5b0-45e41a9ba988", 564 | "comment": "", 565 | "command": "echo", 566 | "target": "总学习时长:${totalLen}", 567 | "targets": [], 568 | "value": "" 569 | }, { 570 | "id": "c6f1db3c-f2cd-4731-a293-6484d49e739a", 571 | "comment": "", 572 | "command": "executeScript", 573 | "target": "return ${totalLen}/27", 574 | "targets": [], 575 | "value": "totalLen" 576 | }, { 577 | "id": "fb96bd57-3b4d-45ae-94f4-d7e9440f1619", 578 | "comment": "", 579 | "command": "echo", 580 | "target": "平均学习时长:${totalLen}", 581 | "targets": [], 582 | "value": "" 583 | }] 584 | }], 585 | "suites": [{ 586 | "id": "1ed61daa-0cce-42ab-a6b7-d9717c050f64", 587 | "name": "Default Suite", 588 | "persistSession": false, 589 | "parallel": false, 590 | "timeout": 300, 591 | "tests": ["52ca7734-3b86-4fef-9a03-024e3d27139f"] 592 | }], 593 | "urls": ["https://edu.51cto.com/user/"], 594 | "plugins": [] 595 | } -------------------------------------------------------------------------------- /test/51cto-study-log.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "c776a120-f34c-4f4f-b49c-00b9f1b48026", 3 | "version": "2.0", 4 | "name": "51cto", 5 | "url": "https://edu.51cto.com/user/", 6 | "tests": [{ 7 | "id": "2149f299-66c5-4184-bf3d-cbabfdebb532", 8 | "name": "study-log", 9 | "commands": [{ 10 | "id": "d947ac4e-5021-46c7-8cee-47b66d503a09", 11 | "comment": "51CTO学院网站上,学生学习记录查看", 12 | "command": "", 13 | "target": "", 14 | "targets": [], 15 | "value": "" 16 | }, { 17 | "id": "df3ccb12-8f5a-42df-88e5-5e2e69408c1c", 18 | "comment": "", 19 | "command": "open", 20 | "target": "user_id-12013438.html", 21 | "targets": [], 22 | "value": "申童" 23 | }, { 24 | "id": "122e3c50-a5c3-490f-9f49-bf91f97354d8", 25 | "comment": "", 26 | "command": "open", 27 | "target": "user_id-12013565.html", 28 | "targets": [], 29 | "value": "杜承彧" 30 | }, { 31 | "id": "594a603f-9337-4ccb-8cc0-4b3add8959a1", 32 | "comment": "", 33 | "command": "open", 34 | "target": "user_id-12014332.html", 35 | "targets": [], 36 | "value": "高梦瑶" 37 | }, { 38 | "id": "dda6d53b-bace-4841-8038-372037cfb034", 39 | "comment": "", 40 | "command": "open", 41 | "target": "user_id-12019997.html", 42 | "targets": [], 43 | "value": "辛 悦" 44 | }, { 45 | "id": "a7e274c0-be6a-45a8-b137-082db00f0189", 46 | "comment": "", 47 | "command": "open", 48 | "target": "user_id-12014343.html", 49 | "targets": [], 50 | "value": "张梦云" 51 | }, { 52 | "id": "4e35f058-0966-4cc9-8736-f80ceba7c1ef", 53 | "comment": "", 54 | "command": "open", 55 | "target": "user_id-12014246.html", 56 | "targets": [], 57 | "value": "赵萌萌" 58 | }, { 59 | "id": "5f196703-5efa-4f99-9fcd-7032eb280bf6", 60 | "comment": "", 61 | "command": "open", 62 | "target": "user_id-12015479.html", 63 | "targets": [], 64 | "value": "杜仁双" 65 | }, { 66 | "id": "a986e91b-32ae-4d1a-9794-3d41163865c2", 67 | "comment": "", 68 | "command": "open", 69 | "target": "user_id-12017467.html", 70 | "targets": [], 71 | "value": "刘金梦" 72 | }, { 73 | "id": "084d41b8-2453-4291-a55e-c4ca6556c361", 74 | "comment": "", 75 | "command": "open", 76 | "target": "user_id-12021004.html", 77 | "targets": [], 78 | "value": "申惠心" 79 | }, { 80 | "id": "9bdd7422-48db-47c8-b13c-f952f8965d93", 81 | "comment": "", 82 | "command": "open", 83 | "target": "user_id-12016847.html", 84 | "targets": [], 85 | "value": "王 岚" 86 | }, { 87 | "id": "2cf6a5b0-ca0d-4b13-80af-9e08f5add39f", 88 | "comment": "", 89 | "command": "open", 90 | "target": "user_id-12017915.html", 91 | "targets": [], 92 | "value": "于立娜" 93 | }, { 94 | "id": "be8b4c69-349f-454a-9bfb-b457bbc24a21", 95 | "comment": "", 96 | "command": "open", 97 | "target": "user_id-12018267.html", 98 | "targets": [], 99 | "value": "高 杨" 100 | }, { 101 | "id": "381a8c96-4965-4019-9b6d-edfe237467a6", 102 | "comment": "", 103 | "command": "open", 104 | "target": "user_id-12012840.html", 105 | "targets": [], 106 | "value": "程红悦" 107 | }, { 108 | "id": "698cb786-31b4-43e6-88fb-9f439f2521f3", 109 | "comment": "", 110 | "command": "open", 111 | "target": "user_id-12019636.html", 112 | "targets": [], 113 | "value": "杜巧玉" 114 | }, { 115 | "id": "d0588f19-fe48-4cb3-8b15-1f531b95dce4", 116 | "comment": "", 117 | "command": "open", 118 | "target": "user_id-12012463.html", 119 | "targets": [], 120 | "value": "曹凯旋" 121 | }, { 122 | "id": "c1666cc2-d90c-428b-b984-030ee0f88fbb", 123 | "comment": "", 124 | "command": "open", 125 | "target": "user_id-12022278.html", 126 | "targets": [], 127 | "value": "强子辉" 128 | }, { 129 | "id": "318e9c86-dbd4-4be8-bb5b-4c4700aa9d54", 130 | "comment": "", 131 | "command": "open", 132 | "target": "user_id-12022422.html", 133 | "targets": [], 134 | "value": "刘世杰" 135 | }, { 136 | "id": "420f47b5-bb7b-4ef3-ba7a-ab3763a0e784", 137 | "comment": "", 138 | "command": "open", 139 | "target": "user_id-12017090.html", 140 | "targets": [], 141 | "value": "周 凯" 142 | }, { 143 | "id": "cbeebe6a-880e-40af-97a4-c11c1fe0f619", 144 | "comment": "", 145 | "command": "open", 146 | "target": "user_id-12024390.html", 147 | "targets": [], 148 | "value": "李 辉" 149 | }, { 150 | "id": "2ec232d8-7cad-4bdb-9208-239a39e01867", 151 | "comment": "", 152 | "command": "open", 153 | "target": "user_id-12023776.html", 154 | "targets": [], 155 | "value": "张孟颖" 156 | }, { 157 | "id": "1b519e80-e743-4204-8720-9f0886481769", 158 | "comment": "", 159 | "command": "open", 160 | "target": "user_id-12022565.html", 161 | "targets": [], 162 | "value": "仇 旭" 163 | }, { 164 | "id": "79219d73-5b23-446b-bedb-1e936dec8e90", 165 | "comment": "", 166 | "command": "open", 167 | "target": "user_id-12030031.html", 168 | "targets": [], 169 | "value": "张皎月" 170 | }, { 171 | "id": "e15efd89-dfb7-4998-bc11-10a7d2364daf", 172 | "comment": "", 173 | "command": "open", 174 | "target": "user_id-12019737.html", 175 | "targets": [], 176 | "value": "王晓宁" 177 | }, { 178 | "id": "3546d407-c997-4940-8d85-c51314541f35", 179 | "comment": "", 180 | "command": "open", 181 | "target": "user_id-12022513.html", 182 | "targets": [], 183 | "value": "葛 兰" 184 | }, { 185 | "id": "a83a2d29-441a-4140-b169-07bdd5728013", 186 | "comment": "", 187 | "command": "open", 188 | "target": "user_id-12023842.html", 189 | "targets": [], 190 | "value": "赵晶晶" 191 | }, { 192 | "id": "3b78d4e2-540c-4fc7-99d6-5dc7f6cb5111", 193 | "comment": "", 194 | "command": "open", 195 | "target": "user_id-11449294.html", 196 | "targets": [], 197 | "value": "李志伟" 198 | }, { 199 | "id": "dbc4993c-405f-43ce-812c-81fb21dad2ad", 200 | "comment": "", 201 | "command": "open", 202 | "target": "user_id-12111398.html", 203 | "targets": [], 204 | "value": "郭 娜" 205 | }, { 206 | "id": "b15eb7e6-f385-4da8-b8b1-6711f53e3748", 207 | "comment": "", 208 | "command": "open", 209 | "target": "user_id-12203395.html", 210 | "targets": [], 211 | "value": "刘秀梅" 212 | }] 213 | }], 214 | "suites": [{ 215 | "id": "f12d03bc-6a34-43cf-a8c7-cfe6ac97bd7a", 216 | "name": "Default Suite", 217 | "persistSession": false, 218 | "parallel": false, 219 | "timeout": 300, 220 | "tests": ["2149f299-66c5-4184-bf3d-cbabfdebb532"] 221 | }], 222 | "urls": ["https://edu.51cto.com/user/"], 223 | "plugins": [] 224 | } 225 | -------------------------------------------------------------------------------- /test/baidu-ddt.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "1ae6035e-f540-40fa-84a1-20020904e77a", 3 | "version": "2.0", 4 | "name": "baidu", 5 | "url": "https://www.baidu.com", 6 | "tests": [{ 7 | "id": "707ff728-9e51-4c6b-81e6-5be066c1b5a6", 8 | "name": "baidu", 9 | "commands": [{ 10 | "id": "03bf546f-463b-4043-b0ae-2e1da438a2e0", 11 | "comment": "", 12 | "command": "executeScript", 13 | "target": "return [\"Selenium IDE 51CTO\", \"Selenium IDE WEB 自动化测试入门 51CTO\", \"信息科学基础 51CTO\", \"在线思维导图进阶 51CTO\"]", 14 | "targets": [], 15 | "value": "kws" 16 | }, { 17 | "id": "43e6e5d3-d334-42b3-acea-a2b2a16bf183", 18 | "comment": "", 19 | "command": "forEach", 20 | "target": "kws", 21 | "targets": [], 22 | "value": "kw" 23 | }, { 24 | "id": "85ec84bb-1a6e-49d7-9e1a-3405ff117620", 25 | "comment": "", 26 | "command": "open", 27 | "target": "/", 28 | "targets": [], 29 | "value": "" 30 | }, { 31 | "id": "3729af83-b6d8-4809-b810-e7006015769c", 32 | "comment": "", 33 | "command": "type", 34 | "target": "id=kw", 35 | "targets": [ 36 | ["id=kw", "id"], 37 | ["name=wd", "name"], 38 | ["css=#kw", "css:finder"], 39 | ["xpath=//input[@id='kw']", "xpath:attributes"], 40 | ["xpath=//form[@id='form']/span/input", "xpath:idRelative"], 41 | ["xpath=//span/input", "xpath:position"] 42 | ], 43 | "value": "${kw}" 44 | }, { 45 | "id": "d6412356-9760-47de-9f6e-9d87f98715ba", 46 | "comment": "", 47 | "command": "click", 48 | "target": "id=su", 49 | "targets": [ 50 | ["id=su", "id"], 51 | ["css=#su", "css:finder"], 52 | ["xpath=//input[@id='su']", "xpath:attributes"], 53 | ["xpath=//form[@id='form']/span[2]/input", "xpath:idRelative"], 54 | ["xpath=//span[2]/input", "xpath:position"] 55 | ], 56 | "value": "" 57 | }, { 58 | "id": "0d1c6586-de67-4429-8484-80a6afbc502f", 59 | "comment": "", 60 | "command": "waitForElementPresent", 61 | "target": "xpath=//span[contains(.,'百度为您找到相关结果约')]", 62 | "targets": [], 63 | "value": "30000" 64 | }, { 65 | "id": "c61813e5-7982-4459-8f17-7abfd6321c4a", 66 | "comment": "", 67 | "command": "storeText", 68 | "target": "css=.nums_text", 69 | "targets": [ 70 | ["css=.nums_text", "css:finder"], 71 | ["xpath=//div[@id='container']/div[2]/div/div[2]/span", "xpath:idRelative"], 72 | ["xpath=//div[2]/span", "xpath:position"], 73 | ["xpath=//span[contains(.,'百度为您找到相关结果约883,000个')]", "xpath:innerText"] 74 | ], 75 | "value": "num" 76 | }, { 77 | "id": "a04f2f2f-b08b-4776-9105-3d276c29ff7a", 78 | "comment": "", 79 | "command": "executeScript", 80 | "target": "return ${num}.match(/(\\d)+/g).join(',')", 81 | "targets": [], 82 | "value": "num" 83 | }, { 84 | "id": "85bed2c0-7de9-4b8b-9167-a88fc67c6622", 85 | "comment": "", 86 | "command": "echo", 87 | "target": "| ${kw} | ${num} |", 88 | "targets": [], 89 | "value": "" 90 | }, { 91 | "id": "2960c56d-9c4e-4c8e-a6be-ecffd6637958", 92 | "comment": "", 93 | "command": "verifyTitle", 94 | "target": "${kw}_百度搜索", 95 | "targets": [], 96 | "value": "" 97 | }, { 98 | "id": "605bee61-1d00-4f80-93be-5e7046397452", 99 | "comment": "", 100 | "command": "end", 101 | "target": "", 102 | "targets": [], 103 | "value": "" 104 | }] 105 | }, { 106 | "id": "9149b2ed-47a2-4c2b-a1b4-b4a9ccd43383", 107 | "name": "regex", 108 | "commands": [{ 109 | "id": "4fc92ad2-ef01-45a6-b3ec-5eaf219c4e84", 110 | "comment": "", 111 | "command": "store", 112 | "target": "百度为您找到相关结果约883,000个", 113 | "targets": [], 114 | "value": "msg" 115 | }, { 116 | "id": "f2da90d8-e117-45fa-9355-b885df48ff58", 117 | "comment": "", 118 | "command": "executeScript", 119 | "target": "return ${msg}.match(/(\\d)+/g).join(',')", 120 | "targets": [], 121 | "value": "num" 122 | }, { 123 | "id": "305d6550-4a1b-46ca-a828-68e4e8401f35", 124 | "comment": "", 125 | "command": "echo", 126 | "target": "${num}", 127 | "targets": [], 128 | "value": "" 129 | }] 130 | }], 131 | "suites": [{ 132 | "id": "62cf7539-bc32-4821-beb0-e5dc6fd0ce2b", 133 | "name": "Default Suite", 134 | "persistSession": false, 135 | "parallel": false, 136 | "timeout": 300, 137 | "tests": ["707ff728-9e51-4c6b-81e6-5be066c1b5a6"] 138 | }], 139 | "urls": ["https://www.baidu.com/"], 140 | "plugins": [] 141 | } -------------------------------------------------------------------------------- /test/baidu-search-var.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "161181c5-e8a0-4f6a-81f5-d177e97fbdd8", 3 | "version": "2.0", 4 | "name": "baidu", 5 | "url": "https://www.baidu.com", 6 | "tests": [{ 7 | "id": "db160a9b-da9c-4bc4-82b3-f714ade41944", 8 | "name": "search-var", 9 | "commands": [{ 10 | "id": "07e3c2e2-69a4-47c4-8d54-075fc170f25f", 11 | "comment": "", 12 | "command": "open", 13 | "target": "/", 14 | "targets": [], 15 | "value": "" 16 | }, { 17 | "id": "8ad16b68-8dd5-4eca-87a1-6ec9eecf556e", 18 | "comment": "", 19 | "command": "click", 20 | "target": "id=kw", 21 | "targets": [ 22 | ["id=kw", "id"], 23 | ["name=wd", "name"], 24 | ["css=#kw", "css:finder"], 25 | ["xpath=//input[@id='kw']", "xpath:attributes"], 26 | ["xpath=//form[@id='form']/span/input", "xpath:idRelative"], 27 | ["xpath=//span/input", "xpath:position"] 28 | ], 29 | "value": "" 30 | }, { 31 | "id": "b77543ac-4c83-4f5a-a693-77c240c4a198", 32 | "comment": "", 33 | "command": "storeTitle", 34 | "target": "", 35 | "targets": [], 36 | "value": "ttl" 37 | }, { 38 | "id": "5fa10031-878c-41f4-82fc-86026902b879", 39 | "comment": "", 40 | "command": "echo", 41 | "target": "${ttl}", 42 | "targets": [], 43 | "value": "" 44 | }, { 45 | "id": "79fa7deb-f7df-439e-8895-445a5db13a25", 46 | "comment": "", 47 | "command": "type", 48 | "target": "id=kw", 49 | "targets": [ 50 | ["id=kw", "id"], 51 | ["name=wd", "name"], 52 | ["css=#kw", "css:finder"], 53 | ["xpath=//input[@id='kw']", "xpath:attributes"], 54 | ["xpath=//form[@id='form']/span/input", "xpath:idRelative"], 55 | ["xpath=//span/input", "xpath:position"] 56 | ], 57 | "value": "${ttl}" 58 | }, { 59 | "id": "386f9148-68ab-480d-85b7-9b1611176ee3", 60 | "comment": "", 61 | "command": "click", 62 | "target": "id=su", 63 | "targets": [ 64 | ["id=su", "id"], 65 | ["css=#su", "css:finder"], 66 | ["xpath=//input[@id='su']", "xpath:attributes"], 67 | ["xpath=//form[@id='form']/span[2]/input", "xpath:idRelative"], 68 | ["xpath=//span[2]/input", "xpath:position"] 69 | ], 70 | "value": "" 71 | }] 72 | }], 73 | "suites": [{ 74 | "id": "f29cf601-95f0-4b99-8a62-ef3a54d96768", 75 | "name": "Default Suite", 76 | "persistSession": false, 77 | "parallel": false, 78 | "timeout": 300, 79 | "tests": ["db160a9b-da9c-4bc4-82b3-f714ade41944"] 80 | }], 81 | "urls": ["https://www.baidu.com/"], 82 | "plugins": [] 83 | } -------------------------------------------------------------------------------- /test/baidu-search.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "18fe06b2-ded0-4e33-acd3-072d127a7bbf", 3 | "version": "2.0", 4 | "name": "baidu", 5 | "url": "https://www.baidu.com", 6 | "tests": [{ 7 | "id": "ba0d7ceb-2842-4afb-bdd4-8324b2ae98a0", 8 | "name": "search", 9 | "commands": [{ 10 | "id": "a24321e4-9436-4113-8985-83b8ccf586b8", 11 | "comment": "打开百度首页", 12 | "command": "", 13 | "target": "", 14 | "targets": [], 15 | "value": "" 16 | }, { 17 | "id": "bd7fffdc-64b4-486a-a0a4-e1a8d13843da", 18 | "comment": "", 19 | "command": "open", 20 | "target": "/", 21 | "targets": [], 22 | "value": "" 23 | }, { 24 | "id": "bedcab34-828e-4c3c-9166-7b7c51ae768c", 25 | "comment": "执行搜索并验证结果", 26 | "command": "", 27 | "target": "", 28 | "targets": [], 29 | "value": "" 30 | }, { 31 | "id": "780082de-1ed6-4122-bd7a-ce6a07f8f47b", 32 | "comment": "", 33 | "command": "click", 34 | "target": "id=kw", 35 | "targets": [ 36 | ["id=kw", "id"], 37 | ["name=wd", "name"], 38 | ["css=#kw", "css:finder"], 39 | ["xpath=//input[@id='kw']", "xpath:attributes"], 40 | ["xpath=//form[@id='form']/span/input", "xpath:idRelative"], 41 | ["xpath=//span/input", "xpath:position"] 42 | ], 43 | "value": "" 44 | }, { 45 | "id": "820ba272-fbd7-4e46-8200-45e40dc8e467", 46 | "comment": "", 47 | "command": "type", 48 | "target": "id=kw", 49 | "targets": [ 50 | ["id=kw", "id"], 51 | ["name=wd", "name"], 52 | ["css=#kw", "css:finder"], 53 | ["xpath=//input[@id='kw']", "xpath:attributes"], 54 | ["xpath=//form[@id='form']/span/input", "xpath:idRelative"], 55 | ["xpath=//span/input", "xpath:position"] 56 | ], 57 | "value": "selenium" 58 | }, { 59 | "id": "fdde4e07-50dd-430a-be91-0e3ea586d43f", 60 | "comment": "", 61 | "command": "click", 62 | "target": "id=su", 63 | "targets": [ 64 | ["id=su", "id"], 65 | ["css=#su", "css:finder"], 66 | ["xpath=//input[@id='su']", "xpath:attributes"], 67 | ["xpath=//form[@id='form']/span[2]/input", "xpath:idRelative"], 68 | ["xpath=//span[2]/input", "xpath:position"] 69 | ], 70 | "value": "" 71 | }, { 72 | "id": "b060aa89-83e5-4548-87c6-2fe41708abbf", 73 | "comment": "", 74 | "command": "waitForElementPresent", 75 | "target": "xpath=//span[contains(.,'百度为您找到相关结果约')]", 76 | "targets": [], 77 | "value": "30000" 78 | }, { 79 | "id": "777221bf-709a-4e39-97b3-6c6b9a1c730a", 80 | "comment": "", 81 | "command": "verifyElementPresent", 82 | "target": "xpath=//span[contains(.,'百度为您找到相关结果约')]", 83 | "targets": [], 84 | "value": "" 85 | }, { 86 | "id": "96111ec9-e735-4ecf-bccf-0de9f04f686a", 87 | "comment": "", 88 | "command": "", 89 | "target": "", 90 | "targets": [], 91 | "value": "" 92 | }] 93 | }], 94 | "suites": [{ 95 | "id": "62d4eecc-c947-4bf4-b0bd-388aca1c5f68", 96 | "name": "Default Suite", 97 | "persistSession": false, 98 | "parallel": false, 99 | "timeout": 300, 100 | "tests": ["ba0d7ceb-2842-4afb-bdd4-8324b2ae98a0"] 101 | }], 102 | "urls": ["https://www.baidu.com/"], 103 | "plugins": [] 104 | } -------------------------------------------------------------------------------- /test/baidu-store.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "18fe06b2-ded0-4e33-acd3-072d127a7bbf", 3 | "version": "2.0", 4 | "name": "baidu", 5 | "url": "https://www.baidu.com", 6 | "tests": [{ 7 | "id": "5042ca0a-99c9-4dc5-80e9-b98f16e78a9f", 8 | "name": "store", 9 | "commands": [{ 10 | "id": "80b1ffcc-d3b4-4b0b-abd8-087e3d6112eb", 11 | "comment": "【echo 百度网站首页信息获取】", 12 | "command": "", 13 | "target": "", 14 | "targets": [], 15 | "value": "" 16 | }, { 17 | "id": "4fdce324-45af-4185-bf5c-7a1949932c4e", 18 | "comment": "一、打开百度首页并验证", 19 | "command": "", 20 | "target": "", 21 | "targets": [], 22 | "value": "" 23 | }, { 24 | "id": "d7c2d069-43df-42ac-b885-8da292b9e31a", 25 | "comment": "", 26 | "command": "open", 27 | "target": "/", 28 | "targets": [], 29 | "value": "" 30 | }, { 31 | "id": "0902e5a8-c876-454b-8fd0-f4ee1827a2eb", 32 | "comment": "", 33 | "command": "assertTitle", 34 | "target": "百度一下,你就知道", 35 | "targets": [], 36 | "value": "" 37 | }, { 38 | "id": "6a2133a5-5078-48a2-8b8c-cf36a1544b0b", 39 | "comment": "二、获取首页信息", 40 | "command": "", 41 | "target": "", 42 | "targets": [], 43 | "value": "" 44 | }, { 45 | "id": "a5cd1160-002b-4034-9c59-f6f8f53898c0", 46 | "comment": "", 47 | "command": "storeTitle", 48 | "target": "", 49 | "targets": [], 50 | "value": "bdTitle" 51 | }, { 52 | "id": "38c3eac6-04d6-4fce-ac86-70d289fe4072", 53 | "comment": "", 54 | "command": "storeText", 55 | "target": "xpath=//body", 56 | "targets": [], 57 | "value": "bdText" 58 | }, { 59 | "id": "471e2f80-87b3-4395-9d43-c748e7d5db23", 60 | "comment": "三、打印变量信息", 61 | "command": "", 62 | "target": "", 63 | "targets": [], 64 | "value": "" 65 | }, { 66 | "id": "db7ef40b-f2f3-4552-84f6-5648f5c621b4", 67 | "comment": "", 68 | "command": "echo", 69 | "target": "${bdTitle}", 70 | "targets": [], 71 | "value": "" 72 | }, { 73 | "id": "6592f688-fdcf-4174-8364-fe069fe788c4", 74 | "comment": "", 75 | "command": "echo", 76 | "target": "${bdText}", 77 | "targets": [], 78 | "value": "" 79 | }] 80 | }], 81 | "suites": [{ 82 | "id": "62d4eecc-c947-4bf4-b0bd-388aca1c5f68", 83 | "name": "Default Suite", 84 | "persistSession": false, 85 | "parallel": false, 86 | "timeout": 300, 87 | "tests": [] 88 | }], 89 | "urls": ["https://www.baidu.com/"], 90 | "plugins": [] 91 | } -------------------------------------------------------------------------------- /test/calculator.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "5b9e3c9f-0460-49b9-8dfe-8aaba67c8679", 3 | "version": "2.0", 4 | "name": "calculator", 5 | "url": "http://www.zxjsq.net/", 6 | "tests": [{ 7 | "id": "7d2ec2aa-63ca-409e-8c1e-8302dc3d1d9a", 8 | "name": "add", 9 | "commands": [{ 10 | "id": "871fd4d9-c8c5-4594-a68e-0c5bc335bc51", 11 | "comment": "打开在线计算器网站并验证", 12 | "command": "", 13 | "target": "", 14 | "targets": [], 15 | "value": "" 16 | }, { 17 | "id": "f32cd1d0-1d2f-47c7-9f74-940b296c2496", 18 | "comment": "", 19 | "command": "open", 20 | "target": "/", 21 | "targets": [], 22 | "value": "" 23 | }, { 24 | "id": "0e1cbb56-ec06-40e6-bf70-f3b6db4e1037", 25 | "comment": "测试并验证 1+1=2", 26 | "command": "", 27 | "target": "", 28 | "targets": [], 29 | "value": "" 30 | }, { 31 | "id": "ef9716af-dcd3-46ca-b95e-1e06547f32b9", 32 | "comment": "", 33 | "command": "click", 34 | "target": "id=simple1", 35 | "targets": [], 36 | "value": "" 37 | }, { 38 | "id": "fcba3cfe-9d4d-4c25-bc97-fe3c85e6052d", 39 | "comment": "", 40 | "command": "click", 41 | "target": "id=simpleAdd", 42 | "targets": [], 43 | "value": "" 44 | }, { 45 | "id": "30c3e9ce-f674-4010-ae4c-0c531a7b750b", 46 | "comment": "", 47 | "command": "click", 48 | "target": "id=simple1", 49 | "targets": [], 50 | "value": "" 51 | }, { 52 | "id": "8ebb9c6b-245a-4334-8b44-28bd1897c012", 53 | "comment": "", 54 | "command": "click", 55 | "target": "id=simpleEqual", 56 | "targets": [], 57 | "value": "" 58 | }, { 59 | "id": "eafadd2d-4b1f-4ae2-adaa-0d1295e5208b", 60 | "comment": "", 61 | "command": "verifyValue", 62 | "target": "id=resultIpt", 63 | "targets": [], 64 | "value": "2" 65 | }] 66 | }], 67 | "suites": [{ 68 | "id": "b9c4c616-91e8-400e-b13c-79f8ba8ac3af", 69 | "name": "Default Suite", 70 | "persistSession": false, 71 | "parallel": false, 72 | "timeout": 300, 73 | "tests": ["7d2ec2aa-63ca-409e-8c1e-8302dc3d1d9a"] 74 | }], 75 | "urls": ["http://www.zxjsq.net/"], 76 | "plugins": [] 77 | } -------------------------------------------------------------------------------- /test/factorial.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "17a90a98-b2ed-4ba4-939f-645ec76fd9f6", 3 | "version": "2.0", 4 | "name": "factorial", 5 | "url": "https://www.baidu.com", 6 | "tests": [{ 7 | "id": "9c6ca857-158e-44fe-b753-fce9b5614680", 8 | "name": "factorial", 9 | "commands": [{ 10 | "id": "a338eb66-12e1-4def-addd-41e73949a8c3", 11 | "comment": "", 12 | "command": "executeScript", 13 | "target": "return 5", 14 | "targets": [], 15 | "value": "n" 16 | }, { 17 | "id": "13b8b09d-058a-4196-afda-c599b8dbe0e9", 18 | "comment": "", 19 | "command": "executeScript", 20 | "target": "return 1", 21 | "targets": [], 22 | "value": "result" 23 | }, { 24 | "id": "f41363c9-67cb-4c76-8852-9e9351014d1c", 25 | "comment": "", 26 | "command": "while", 27 | "target": "${n} > 0", 28 | "targets": [], 29 | "value": "" 30 | }, { 31 | "id": "64b4a0e6-ca7f-4c9e-be52-20d661f75d45", 32 | "comment": "", 33 | "command": "executeScript", 34 | "target": "return ${result} * ${n}", 35 | "targets": [], 36 | "value": "result" 37 | }, { 38 | "id": "d8668940-2d05-48b6-a07b-7518aeb6ded7", 39 | "comment": "", 40 | "command": "executeScript", 41 | "target": "return ${n} - 1", 42 | "targets": [], 43 | "value": "n" 44 | }, { 45 | "id": "da78765b-c716-4ab6-baa6-f95789f6070f", 46 | "comment": "", 47 | "command": "end", 48 | "target": "", 49 | "targets": [], 50 | "value": "" 51 | }, { 52 | "id": "540dfede-4dc7-49fb-bf35-5d5ee2863afb", 53 | "comment": "", 54 | "command": "echo", 55 | "target": "5! = ${result}", 56 | "targets": [], 57 | "value": "" 58 | }] 59 | }], 60 | "suites": [{ 61 | "id": "3844d0d3-006c-474c-9178-2825b71391a8", 62 | "name": "Default Suite", 63 | "persistSession": false, 64 | "parallel": false, 65 | "timeout": 300, 66 | "tests": ["9c6ca857-158e-44fe-b753-fce9b5614680"] 67 | }], 68 | "urls": ["https://www.baidu.com/"], 69 | "plugins": [] 70 | } -------------------------------------------------------------------------------- /test/flow.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "943ac74b-0cff-4c39-a49d-21bd3d6c7989", 3 | "version": "2.0", 4 | "name": "flow", 5 | "url": "https://www.baidu.com", 6 | "tests": [{ 7 | "id": "63677d7b-5261-49b5-9e96-8b6e58d9711b", 8 | "name": "1-judge", 9 | "commands": [{ 10 | "id": "cb7f95a5-789d-44ba-9263-bddca519c771", 11 | "comment": "", 12 | "command": "store", 13 | "target": "25", 14 | "targets": [], 15 | "value": "age" 16 | }, { 17 | "id": "58a50c0d-8296-475c-8960-bff54449dc52", 18 | "comment": "", 19 | "command": "if", 20 | "target": "${age} > 20", 21 | "targets": [], 22 | "value": "" 23 | }, { 24 | "id": "fb88e2dd-d4dc-4c73-baca-e0febaf016c2", 25 | "comment": "", 26 | "command": "echo", 27 | "target": "你是个男人", 28 | "targets": [], 29 | "value": "" 30 | }, { 31 | "id": "2c77ad4d-0675-4fac-ba3a-3519ab5e0923", 32 | "comment": "", 33 | "command": "else", 34 | "target": "", 35 | "targets": [], 36 | "value": "" 37 | }, { 38 | "id": "d3f382f4-4dfe-440b-b3c0-82553f4f3007", 39 | "comment": "", 40 | "command": "echo", 41 | "target": "你是个男孩", 42 | "targets": [], 43 | "value": "" 44 | }, { 45 | "id": "d7d0b091-bc2b-4ecc-9987-6f56ae3037db", 46 | "comment": "", 47 | "command": "end", 48 | "target": "", 49 | "targets": [], 50 | "value": "" 51 | }] 52 | }, { 53 | "id": "a6e3d9b7-a808-43eb-8188-7264fc06b3bf", 54 | "name": "2-loop", 55 | "commands": [{ 56 | "id": "6172dec8-1ac0-4026-8541-288c9a06867a", 57 | "comment": "", 58 | "command": "executeScript", 59 | "target": "return 0;", 60 | "targets": [], 61 | "value": "n" 62 | }, { 63 | "id": "b188a6e1-4951-452e-8a53-39cd54c30274", 64 | "comment": "", 65 | "command": "times", 66 | "target": "10", 67 | "targets": [], 68 | "value": "" 69 | }, { 70 | "id": "7ef41673-bb7f-46dd-a1bc-ea6ff72ea737", 71 | "comment": "", 72 | "command": "echo", 73 | "target": "${n}", 74 | "targets": [], 75 | "value": "" 76 | }, { 77 | "id": "03fc33d1-1470-4d0f-97d8-8deb9c6eab40", 78 | "comment": "", 79 | "command": "executeScript", 80 | "target": "return ${n}+1;", 81 | "targets": [], 82 | "value": "n" 83 | }, { 84 | "id": "8eeac685-de57-453f-8629-5f0be903e36c", 85 | "comment": "", 86 | "command": "end", 87 | "target": "", 88 | "targets": [], 89 | "value": "" 90 | }] 91 | }], 92 | "suites": [{ 93 | "id": "ed5a041f-9462-4c9b-ae41-2f23a5b4f9e2", 94 | "name": "Default Suite", 95 | "persistSession": false, 96 | "parallel": false, 97 | "timeout": 300, 98 | "tests": ["63677d7b-5261-49b5-9e96-8b6e58d9711b"] 99 | }], 100 | "urls": ["https://www.baidu.com/"], 101 | "plugins": [] 102 | } -------------------------------------------------------------------------------- /test/hello-world.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "f4cc55a9-d283-4e43-ad96-7aa72f112fe9", 3 | "version": "2.0", 4 | "name": "hello-world", 5 | "url": "http://www.baidu.com", 6 | "tests": [{ 7 | "id": "3c79fe33-a651-433a-af63-f70b3a70cddf", 8 | "name": "const", 9 | "commands": [{ 10 | "id": "93995222-37cb-4aef-b828-14a1534082be", 11 | "comment": "", 12 | "command": "echo", 13 | "target": "hello world", 14 | "targets": [], 15 | "value": "" 16 | }] 17 | }, { 18 | "id": "e08bd588-29ca-4ceb-97e1-175206fc9f6d", 19 | "name": "variable", 20 | "commands": [{ 21 | "id": "34ad2045-a758-4bfa-be68-953073355836", 22 | "comment": "", 23 | "command": "store", 24 | "target": "hello selenium ide", 25 | "targets": [], 26 | "value": "msg" 27 | }, { 28 | "id": "6a30df9a-7644-456a-bbfe-55f1957295d6", 29 | "comment": "", 30 | "command": "echo", 31 | "target": "${msg}", 32 | "targets": [], 33 | "value": "" 34 | }] 35 | }], 36 | "suites": [{ 37 | "id": "f18b836e-20bb-4c8f-a351-9f8f01894000", 38 | "name": "Default Suite", 39 | "persistSession": false, 40 | "parallel": false, 41 | "timeout": 300, 42 | "tests": ["3c79fe33-a651-433a-af63-f70b3a70cddf"] 43 | }], 44 | "urls": ["http://www.baidu.com/"], 45 | "plugins": [] 46 | } 47 | -------------------------------------------------------------------------------- /test/hosted-redmine.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "f4967773-6677-4c9e-9c0d-6ab0482a27fd", 3 | "version": "2.0", 4 | "name": "hostedredmine", 5 | "url": "http://www.hostedredmine.com/", 6 | "tests": [{ 7 | "id": "592f8af1-d439-4436-b8bc-20e2a35517f3", 8 | "name": "1-login", 9 | "commands": [{ 10 | "id": "5a8ce3a5-2106-4bf3-995b-280bb12b88da", 11 | "comment": "一、打开 hostedredmine 网站首页", 12 | "command": "", 13 | "target": "", 14 | "targets": [], 15 | "value": "" 16 | }, { 17 | "id": "5a4940a8-783c-4ca4-9e1e-8be24098b004", 18 | "comment": "", 19 | "command": "open", 20 | "target": "/login", 21 | "targets": [], 22 | "value": "" 23 | }, { 24 | "id": "0566e32f-9e70-4fc8-97e4-2a47fc6c94b9", 25 | "comment": "二、登录并验证登录状态", 26 | "command": "", 27 | "target": "", 28 | "targets": [], 29 | "value": "" 30 | }, { 31 | "id": "a0a85dfe-b93f-401a-9fcd-58053b4ee7e1", 32 | "comment": "", 33 | "command": "type", 34 | "target": "id=username", 35 | "targets": [], 36 | "value": "test_2016_1" 37 | }, { 38 | "id": "30290e71-3141-4293-954d-49a0d341f03b", 39 | "comment": "", 40 | "command": "type", 41 | "target": "id=password", 42 | "targets": [], 43 | "value": "Passw0rd!" 44 | }, { 45 | "id": "c0837f76-6d4d-4b96-ac10-c91477fdc6ff", 46 | "comment": "", 47 | "command": "click", 48 | "target": "name=login", 49 | "targets": [], 50 | "value": "" 51 | }, { 52 | "id": "28c4b351-bfef-49c7-8cd1-f7260eabc838", 53 | "comment": "", 54 | "command": "waitForElementPresent", 55 | "target": "id=loggedas", 56 | "targets": [], 57 | "value": "2000" 58 | }, { 59 | "id": "71fc2ef4-0300-488b-871f-d26f607a8cf2", 60 | "comment": "", 61 | "command": "assertTitle", 62 | "target": "我的工作台 - Online Project Management :: Free Redmine Hosting", 63 | "targets": [], 64 | "value": "" 65 | }, { 66 | "id": "d2fcdc9f-5b8b-470e-9edd-5d79d3e7add6", 67 | "comment": "", 68 | "command": "verifyText", 69 | "target": "id=loggedas", 70 | "targets": [], 71 | "value": "登录为 test_2016_1" 72 | }] 73 | }, { 74 | "id": "cca80872-ecf3-43b9-94ce-506e4c0a8d67", 75 | "name": "3-logout", 76 | "commands": [{ 77 | "id": "fa49e777-eba7-4d8f-8c9e-c95d3edc1643", 78 | "comment": "", 79 | "command": "open", 80 | "target": "projects/auto_test_demo?jump=welcome", 81 | "targets": [], 82 | "value": "" 83 | }, { 84 | "id": "733b25fd-abd9-4b02-9bdd-a2a2e008378c", 85 | "comment": "退出登录 hostedredmine", 86 | "command": "", 87 | "target": "", 88 | "targets": [], 89 | "value": "" 90 | }, { 91 | "id": "b6d0cb51-b68e-40c3-9b70-dc808f5e3ab5", 92 | "comment": "", 93 | "command": "click", 94 | "target": "linkText=退出", 95 | "targets": [], 96 | "value": "" 97 | }, { 98 | "id": "6df599ac-9e4c-4c8b-9487-96ac73f86fcc", 99 | "comment": "", 100 | "command": "assertTitle", 101 | "target": "Online Project Management :: Free Redmine Hosting", 102 | "targets": [], 103 | "value": "" 104 | }, { 105 | "id": "b0202df3-2f69-47ff-97ce-51a00e429e11", 106 | "comment": "", 107 | "command": "verifyText", 108 | "target": "css=h1", 109 | "targets": [], 110 | "value": "Online Project Management :: Free Redmine Hosting" 111 | }] 112 | }, { 113 | "id": "a9432607-6a47-4f0d-9711-237b0b4bc663", 114 | "name": "2-issue", 115 | "commands": [{ 116 | "id": "f70575fb-d65d-433e-9615-f0e6509b8777", 117 | "comment": "", 118 | "command": "open", 119 | "target": "projects/auto_test_demo?jump=welcome", 120 | "targets": [], 121 | "value": "" 122 | }, { 123 | "id": "c0407f27-7c55-4e44-9305-6487f92ff7dc", 124 | "comment": "一、新建问题", 125 | "command": "", 126 | "target": "", 127 | "targets": [], 128 | "value": "" 129 | }, { 130 | "id": "d8b92ff9-af53-482f-9fd7-778563a07999", 131 | "comment": "", 132 | "command": "click", 133 | "target": "linkText=问题", 134 | "targets": [ 135 | ["linkText=问题", "linkText"], 136 | ["css=.issues:nth-child(1)", "css:finder"], 137 | ["xpath=(//a[contains(text(),'问题')])[3]", "xpath:link"], 138 | ["xpath=//div[@id='main-menu']/ul/li[4]/a", "xpath:idRelative"], 139 | ["xpath=(//a[contains(@href, '/projects/auto_test_demo/issues')])[2]", "xpath:href"], 140 | ["xpath=//div[2]/ul/li[4]/a", "xpath:position"] 141 | ], 142 | "value": "" 143 | }, { 144 | "id": "a7790fd0-38a8-47ff-a074-fd5943c4ecd5", 145 | "comment": "", 146 | "command": "click", 147 | "target": "linkText=新建问题", 148 | "targets": [ 149 | ["linkText=新建问题", "linkText"], 150 | ["css=.icon-add", "css:finder"], 151 | ["xpath=(//a[contains(text(),'新建问题')])[3]", "xpath:link"], 152 | ["xpath=//div[@id='content']/div/a", "xpath:idRelative"], 153 | ["xpath=(//a[contains(@href, '/projects/auto_test_demo/issues/new')])[2]", "xpath:href"], 154 | ["xpath=//div[2]/div/a", "xpath:position"] 155 | ], 156 | "value": "" 157 | }, { 158 | "id": "3bbe4f75-dd15-428b-8b50-62647e0683a9", 159 | "comment": "", 160 | "command": "click", 161 | "target": "id=issue_subject", 162 | "targets": [ 163 | ["id=issue_subject", "id"], 164 | ["name=issue[subject]", "name"], 165 | ["css=#issue_subject", "css:finder"], 166 | ["xpath=//input[@id='issue_subject']", "xpath:attributes"], 167 | ["xpath=//div[@id='all_attributes']/p[3]/input", "xpath:idRelative"], 168 | ["xpath=//p[3]/input", "xpath:position"] 169 | ], 170 | "value": "" 171 | }, { 172 | "id": "1a5ebf3e-b7b1-4625-961e-da249ffb5aa0", 173 | "comment": "", 174 | "command": "type", 175 | "target": "id=issue_subject", 176 | "targets": [ 177 | ["id=issue_subject", "id"], 178 | ["name=issue[subject]", "name"], 179 | ["css=#issue_subject", "css:finder"], 180 | ["xpath=//input[@id='issue_subject']", "xpath:attributes"], 181 | ["xpath=//div[@id='all_attributes']/p[3]/input", "xpath:idRelative"], 182 | ["xpath=//p[3]/input", "xpath:position"] 183 | ], 184 | "value": "test" 185 | }, { 186 | "id": "6ee48d62-c8ba-4b4c-8d86-bf80b7a22902", 187 | "comment": "", 188 | "command": "click", 189 | "target": "id=issue_description", 190 | "targets": [ 191 | ["id=issue_description", "id"], 192 | ["name=issue[description]", "name"], 193 | ["css=#issue_description", "css:finder"], 194 | ["xpath=//textarea[@id='issue_description']", "xpath:attributes"], 195 | ["xpath=//span[@id='issue_description_and_toolbar']/div[2]/textarea", "xpath:idRelative"], 196 | ["xpath=//textarea", "xpath:position"] 197 | ], 198 | "value": "" 199 | }, { 200 | "id": "6e950b5a-d01a-49eb-bbe0-f47b82c3bd8e", 201 | "comment": "", 202 | "command": "type", 203 | "target": "id=issue_description", 204 | "targets": [ 205 | ["id=issue_description", "id"], 206 | ["name=issue[description]", "name"], 207 | ["css=#issue_description", "css:finder"], 208 | ["xpath=//textarea[@id='issue_description']", "xpath:attributes"], 209 | ["xpath=//span[@id='issue_description_and_toolbar']/div[2]/textarea", "xpath:idRelative"], 210 | ["xpath=//textarea", "xpath:position"] 211 | ], 212 | "value": "test" 213 | }, { 214 | "id": "181d5fd8-2127-4992-95c8-3b5109b5dfe0", 215 | "comment": "", 216 | "command": "click", 217 | "target": "id=issue_assigned_to_id", 218 | "targets": [ 219 | ["id=issue_assigned_to_id", "id"], 220 | ["name=issue[assigned_to_id]", "name"], 221 | ["css=#issue_assigned_to_id", "css:finder"], 222 | ["xpath=//select[@id='issue_assigned_to_id']", "xpath:attributes"], 223 | ["xpath=//div[@id='attributes']/div/div/p[3]/select", "xpath:idRelative"], 224 | ["xpath=//p[3]/select", "xpath:position"] 225 | ], 226 | "value": "" 227 | }, { 228 | "id": "1c35a8bf-df90-4d43-b3da-06ff062bf91e", 229 | "comment": "", 230 | "command": "select", 231 | "target": "id=issue_assigned_to_id", 232 | "targets": [], 233 | "value": "label=<< 我 >>" 234 | }, { 235 | "id": "e4920185-3891-4e10-8c5f-5442f45f0d96", 236 | "comment": "", 237 | "command": "click", 238 | "target": "css=#issue_assigned_to_id > option:nth-child(2)", 239 | "targets": [ 240 | ["css=#issue_assigned_to_id > option:nth-child(2)", "css:finder"], 241 | ["xpath=//option[@value='55933']", "xpath:attributes"], 242 | ["xpath=//select[@id='issue_assigned_to_id']/option[2]", "xpath:idRelative"], 243 | ["xpath=//p[3]/select/option[2]", "xpath:position"], 244 | ["xpath=//option[contains(.,'<< 我 >>')]", "xpath:innerText"] 245 | ], 246 | "value": "" 247 | }, { 248 | "id": "285435bc-e128-4c58-95ad-dedea923b39d", 249 | "comment": "", 250 | "command": "click", 251 | "target": "name=commit", 252 | "targets": [ 253 | ["name=commit", "name"], 254 | ["css=#issue-form > input:nth-child(4)", "css:finder"], 255 | ["xpath=//input[@name='commit']", "xpath:attributes"], 256 | ["xpath=//form[@id='issue-form']/input[3]", "xpath:idRelative"], 257 | ["xpath=//div[2]/form/input[3]", "xpath:position"] 258 | ], 259 | "value": "" 260 | }, { 261 | "id": "792965d1-8cb5-4c6f-9fd0-69adb73dfe48", 262 | "comment": "二、编辑问题", 263 | "command": "", 264 | "target": "", 265 | "targets": [], 266 | "value": "" 267 | }, { 268 | "id": "3756b31f-e5d4-4dc2-8a27-ee240629978d", 269 | "comment": "", 270 | "command": "click", 271 | "target": "linkText=编辑", 272 | "targets": [ 273 | ["linkText=编辑", "linkText"], 274 | ["css=.contextual:nth-child(2) > .icon-edit", "css:finder"], 275 | ["xpath=//a[contains(text(),'编辑')]", "xpath:link"], 276 | ["xpath=//a[@onclick='showAndScrollTo(\"update\", \"issue_notes\"); return false;']", "xpath:attributes"], 277 | ["xpath=//div[@id='content']/div[2]/a", "xpath:idRelative"], 278 | ["xpath=//a[contains(@href, '/issues/823699/edit')]", "xpath:href"], 279 | ["xpath=//div[2]/div[2]/a", "xpath:position"], 280 | ["xpath=//a[contains(.,'编辑')]", "xpath:innerText"] 281 | ], 282 | "value": "" 283 | }, { 284 | "id": "d8d0be30-c3f4-4d7c-98c7-e5f84a8c7df7", 285 | "comment": "", 286 | "command": "click", 287 | "target": "id=issue_status_id", 288 | "targets": [ 289 | ["id=issue_status_id", "id"], 290 | ["name=issue[status_id]", "name"], 291 | ["css=#issue_status_id", "css:finder"], 292 | ["xpath=//select[@id='issue_status_id']", "xpath:attributes"], 293 | ["xpath=//div[@id='attributes']/div/div/p/select", "xpath:idRelative"], 294 | ["xpath=//div/div/p/select", "xpath:position"], 295 | ["xpath=//select[contains(.,'New\nAssigned\nIn Progress\nResolved\nApproved\nClosed\nRejected\nBlocked')]", "xpath:innerText"] 296 | ], 297 | "value": "" 298 | }, { 299 | "id": "d4b97cdf-e0e5-4d17-8000-3d0189e7d726", 300 | "comment": "", 301 | "command": "select", 302 | "target": "id=issue_status_id", 303 | "targets": [], 304 | "value": "label=Closed" 305 | }, { 306 | "id": "7a7bac03-535c-4f0e-820c-21f5a54459a5", 307 | "comment": "", 308 | "command": "click", 309 | "target": "css=#issue_status_id > option:nth-child(6)", 310 | "targets": [ 311 | ["css=#issue_status_id > option:nth-child(6)", "css:finder"], 312 | ["xpath=//option[@value='5']", "xpath:attributes"], 313 | ["xpath=//select[@id='issue_status_id']/option[6]", "xpath:idRelative"], 314 | ["xpath=//div/div/p/select/option[6]", "xpath:position"], 315 | ["xpath=//option[contains(.,'Closed')]", "xpath:innerText"] 316 | ], 317 | "value": "" 318 | }, { 319 | "id": "57533781-4df3-43ef-8f1d-258c3154a607", 320 | "comment": "", 321 | "command": "click", 322 | "target": "id=issue_done_ratio", 323 | "targets": [ 324 | ["id=issue_done_ratio", "id"], 325 | ["name=issue[done_ratio]", "name"], 326 | ["css=#issue_done_ratio", "css:finder"], 327 | ["xpath=//select[@id='issue_done_ratio']", "xpath:attributes"], 328 | ["xpath=//div[@id='attributes']/div/div[2]/p[5]/select", "xpath:idRelative"], 329 | ["xpath=//p[5]/select", "xpath:position"], 330 | ["xpath=//select[contains(.,'0 %\n10 %\n20 %\n30 %\n40 %\n50 %\n60 %\n70 %\n80 %\n90 %\n100 %')]", "xpath:innerText"] 331 | ], 332 | "value": "" 333 | }, { 334 | "id": "8d6b43a6-077e-4f7c-9e81-6a84d886fab6", 335 | "comment": "", 336 | "command": "select", 337 | "target": "id=issue_done_ratio", 338 | "targets": [], 339 | "value": "label=100 %" 340 | }, { 341 | "id": "a96d8d57-ad26-4426-b5a6-dddff2159678", 342 | "comment": "", 343 | "command": "click", 344 | "target": "css=#issue_done_ratio > option:nth-child(11)", 345 | "targets": [ 346 | ["css=#issue_done_ratio > option:nth-child(11)", "css:finder"], 347 | ["xpath=//option[@value='100']", "xpath:attributes"], 348 | ["xpath=//select[@id='issue_done_ratio']/option[11]", "xpath:idRelative"], 349 | ["xpath=//p[5]/select/option[11]", "xpath:position"], 350 | ["xpath=//option[contains(.,'100 %')]", "xpath:innerText"] 351 | ], 352 | "value": "" 353 | }, { 354 | "id": "1921750e-f265-48b4-94dd-73fd1ffd7265", 355 | "comment": "", 356 | "command": "click", 357 | "target": "id=issue_notes", 358 | "targets": [ 359 | ["id=issue_notes", "id"], 360 | ["name=issue[notes]", "name"], 361 | ["css=#issue_notes", "css:finder"], 362 | ["xpath=//textarea[@id='issue_notes']", "xpath:attributes"], 363 | ["xpath=//form[@id='issue-form']/div/fieldset[3]/div[2]/textarea", "xpath:idRelative"], 364 | ["xpath=//fieldset[3]/div[2]/textarea", "xpath:position"] 365 | ], 366 | "value": "" 367 | }, { 368 | "id": "fce2f776-d01b-4921-9d5d-ed6736aec8a1", 369 | "comment": "", 370 | "command": "click", 371 | "target": "xpath=(//input[@name='commit'])[2]", 372 | "targets": [ 373 | ["css=input:nth-child(7)", "css:finder"], 374 | ["xpath=(//input[@name='commit'])[2]", "xpath:attributes"], 375 | ["xpath=//form[@id='issue-form']/input[6]", "xpath:idRelative"], 376 | ["xpath=//input[6]", "xpath:position"] 377 | ], 378 | "value": "" 379 | }, { 380 | "id": "cba47417-43ab-4e7c-bd5c-0bea477d2f28", 381 | "comment": "三、删除问题", 382 | "command": "", 383 | "target": "", 384 | "targets": [], 385 | "value": "" 386 | }, { 387 | "id": "a5b925e0-0e45-4a8c-a6c3-4366751e10f1", 388 | "comment": "", 389 | "command": "click", 390 | "target": "linkText=删除", 391 | "targets": [ 392 | ["linkText=删除", "linkText"], 393 | ["css=.contextual:nth-child(1) > .icon-del", "css:finder"], 394 | ["xpath=//a[contains(text(),'删除')]", "xpath:link"], 395 | ["xpath=//div[@id='content']/div/a[5]", "xpath:idRelative"], 396 | ["xpath=(//a[contains(@href, '/issues/827492')])[4]", "xpath:href"], 397 | ["xpath=//a[5]", "xpath:position"], 398 | ["xpath=//a[contains(.,'删除')]", "xpath:innerText"] 399 | ], 400 | "value": "" 401 | }, { 402 | "id": "5a94de00-a376-4c71-b3fe-3a90b1a1bf05", 403 | "comment": "", 404 | "command": "assertConfirmation", 405 | "target": "您确定要删除选中的问题吗?", 406 | "targets": [], 407 | "value": "" 408 | }, { 409 | "id": "7d48d228-d0c0-406c-921a-883196737e5c", 410 | "comment": "", 411 | "command": "webdriverChooseOkOnVisibleConfirmation", 412 | "target": "", 413 | "targets": [], 414 | "value": "" 415 | }] 416 | }], 417 | "suites": [{ 418 | "id": "cfc84f7d-5753-4f08-8add-edcf4a8a9519", 419 | "name": "Default Suite", 420 | "persistSession": false, 421 | "parallel": false, 422 | "timeout": 300, 423 | "tests": ["592f8af1-d439-4436-b8bc-20e2a35517f3", "a9432607-6a47-4f0d-9711-237b0b4bc663", "cca80872-ecf3-43b9-94ce-506e4c0a8d67"] 424 | }], 425 | "urls": ["http://www.hostedredmine.com/"], 426 | "plugins": [] 427 | } -------------------------------------------------------------------------------- /test/locator.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "8a73a9fd-57ad-48b2-ba7c-678bd273445f", 3 | "version": "2.0", 4 | "name": "locator", 5 | "url": "https://sample.wangding.co/", 6 | "tests": [{ 7 | "id": "4dd8b3e7-285b-4520-b185-9a03ca44f81f", 8 | "name": "1-id", 9 | "commands": [{ 10 | "id": "77bd741e-190a-4e20-b286-e533ebc863e2", 11 | "comment": "", 12 | "command": "open", 13 | "target": "selenium/locator.html", 14 | "targets": [], 15 | "value": "" 16 | }, { 17 | "id": "6f2267a0-3be1-4d83-a85b-cf091684daf0", 18 | "comment": "", 19 | "command": "type", 20 | "target": "id=username", 21 | "targets": [], 22 | "value": "wangding" 23 | }] 24 | }, { 25 | "id": "31cd2afd-1c9c-4b91-be4a-4547778f5326", 26 | "name": "2-name", 27 | "commands": [{ 28 | "id": "6b5f9409-91f6-4c04-b31b-196b908b0e41", 29 | "comment": "", 30 | "command": "open", 31 | "target": "selenium/locator.html", 32 | "targets": [], 33 | "value": "" 34 | }, { 35 | "id": "29905f51-8972-4acf-b729-e7e3807a9e18", 36 | "comment": "", 37 | "command": "type", 38 | "target": "name=username", 39 | "targets": [], 40 | "value": "louying" 41 | }] 42 | }, { 43 | "id": "0fb6203f-324e-49bd-87c5-1897fac84a2f", 44 | "name": "3-linkText", 45 | "commands": [{ 46 | "id": "5c2921c1-7bb9-4901-9088-be5fc0224787", 47 | "comment": "", 48 | "command": "open", 49 | "target": "selenium/locator.html", 50 | "targets": [], 51 | "value": "" 52 | }, { 53 | "id": "dbfbc0e9-346a-4f9f-bf94-030ef02d9cc4", 54 | "comment": "", 55 | "command": "click", 56 | "target": "linkText=alert 页面", 57 | "targets": [], 58 | "value": "" 59 | }] 60 | }, { 61 | "id": "cb1269bd-c8c2-459b-807b-14fd80c44635", 62 | "name": "4-css", 63 | "commands": [{ 64 | "id": "b63293d9-747f-4086-9027-2e93486bd736", 65 | "comment": "", 66 | "command": "open", 67 | "target": "selenium/locator.html", 68 | "targets": [], 69 | "value": "" 70 | }, { 71 | "id": "e3e24afb-754b-4799-9ce0-916063ec179b", 72 | "comment": "", 73 | "command": "", 74 | "target": "", 75 | "targets": [], 76 | "value": "" 77 | }, { 78 | "id": "b1724515-48dc-457e-a8e4-b0741ba72b32", 79 | "comment": "", 80 | "command": "type", 81 | "target": "css=input[name=\"username\"]", 82 | "targets": [], 83 | "value": "wangding" 84 | }, { 85 | "id": "41b4e0eb-0826-49d0-8dff-401218163309", 86 | "comment": "", 87 | "command": "type", 88 | "target": "css=.required", 89 | "targets": [], 90 | "value": "123" 91 | }] 92 | }, { 93 | "id": "51a6318d-9a09-499f-9b7d-29b8c1e58384", 94 | "name": "5-xpath", 95 | "commands": [{ 96 | "id": "85301e3e-7f53-46d6-9393-cc3d45a8b035", 97 | "comment": "", 98 | "command": "open", 99 | "target": "selenium/locator.html", 100 | "targets": [], 101 | "value": "" 102 | }, { 103 | "id": "e13ff957-9944-4f2c-a479-10fec9e16555", 104 | "comment": "", 105 | "command": "type", 106 | "target": "xpath=//form/input[@id=\"username\"]", 107 | "targets": [], 108 | "value": "wangding" 109 | }] 110 | }], 111 | "suites": [{ 112 | "id": "db1e17eb-e6a1-4c55-bd9c-f99bff349f37", 113 | "name": "Default Suite", 114 | "persistSession": false, 115 | "parallel": false, 116 | "timeout": 300, 117 | "tests": ["4dd8b3e7-285b-4520-b185-9a03ca44f81f"] 118 | }], 119 | "urls": ["http://sample.wangding.co/", "https://sample.wangding.co/"], 120 | "plugins": [] 121 | } 122 | -------------------------------------------------------------------------------- /test/mobile.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "1e3268c0-456b-45b0-bb61-7ca5cc282e98", 3 | "version": "2.0", 4 | "name": "mobile", 5 | "url": "https://haoma.baidu.com", 6 | "tests": [{ 7 | "id": "e3feccd4-03d2-4f93-b7bc-224e138750b1", 8 | "name": "location-query", 9 | "commands": [{ 10 | "id": "0f438afc-dd4f-404b-b49d-0fc2a9b0d664", 11 | "comment": "", 12 | "command": "open", 13 | "target": "/query", 14 | "targets": [], 15 | "value": "" 16 | }, { 17 | "id": "7a9a0138-9e9b-43a4-9b59-a5814865702f", 18 | "comment": "", 19 | "command": "type", 20 | "target": "id=id_phone", 21 | "targets": [ 22 | ["id=id_phone", "id"], 23 | ["name=phone", "name"], 24 | ["css=#id_phone", "css:finder"], 25 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 26 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 27 | ["xpath=//div/input", "xpath:position"] 28 | ], 29 | "value": "13582027613" 30 | }, { 31 | "id": "7caf326c-bd83-489c-854d-46f84aee01ef", 32 | "comment": "", 33 | "command": "click", 34 | "target": "css=.submit", 35 | "targets": [ 36 | ["css=.submit", "css:finder"], 37 | ["xpath=//input[@value='查询']", "xpath:attributes"], 38 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 39 | ["xpath=//input[3]", "xpath:position"] 40 | ], 41 | "value": "" 42 | }, { 43 | "id": "ffd5ba7d-8a39-4c9e-9d23-53464e08a2fb", 44 | "comment": "", 45 | "command": "assertText", 46 | "target": "css=h2", 47 | "targets": [ 48 | ["css=h2", "css:finder"], 49 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 50 | ["xpath=//h2", "xpath:position"], 51 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 52 | ], 53 | "value": "河北石家庄移动" 54 | }, { 55 | "id": "36a1d7da-f940-43f3-8bc2-c6a8abd1c206", 56 | "comment": "", 57 | "command": "click", 58 | "target": "linkText=重新查询", 59 | "targets": [ 60 | ["linkText=重新查询", "linkText"], 61 | ["css=.requery", "css:finder"], 62 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 63 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 64 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 65 | ["xpath=//div[2]/a", "xpath:position"], 66 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 67 | ], 68 | "value": "" 69 | }, { 70 | "id": "183e3cc5-cab8-4fdc-9579-a7e5cab5ab61", 71 | "comment": "", 72 | "command": "type", 73 | "target": "id=id_phone", 74 | "targets": [ 75 | ["id=id_phone", "id"], 76 | ["name=phone", "name"], 77 | ["css=#id_phone", "css:finder"], 78 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 79 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 80 | ["xpath=//div/input", "xpath:position"] 81 | ], 82 | "value": "13401001111" 83 | }, { 84 | "id": "a9e7e59d-527c-4442-a015-4ad6bd2a00a3", 85 | "comment": "", 86 | "command": "click", 87 | "target": "css=.submit", 88 | "targets": [ 89 | ["css=.submit", "css:finder"], 90 | ["xpath=//input[@value='查询']", "xpath:attributes"], 91 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 92 | ["xpath=//input[3]", "xpath:position"] 93 | ], 94 | "value": "" 95 | }, { 96 | "id": "29750f02-6c50-44ca-8fdd-c62cdcc2b835", 97 | "comment": "", 98 | "command": "assertText", 99 | "target": "css=h2", 100 | "targets": [ 101 | ["css=h2", "css:finder"], 102 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 103 | ["xpath=//h2", "xpath:position"], 104 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 105 | ], 106 | "value": "北京移动" 107 | }, { 108 | "id": "d3b241d2-070d-48a7-b6d8-de8030537b36", 109 | "comment": "", 110 | "command": "click", 111 | "target": "linkText=重新查询", 112 | "targets": [ 113 | ["linkText=重新查询", "linkText"], 114 | ["css=.requery", "css:finder"], 115 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 116 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 117 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 118 | ["xpath=//div[2]/a", "xpath:position"], 119 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 120 | ], 121 | "value": "" 122 | }, { 123 | "id": "3ec33ada-298f-4b2f-9e03-4ba09b061d85", 124 | "comment": "", 125 | "command": "type", 126 | "target": "id=id_phone", 127 | "targets": [ 128 | ["id=id_phone", "id"], 129 | ["name=phone", "name"], 130 | ["css=#id_phone", "css:finder"], 131 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 132 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 133 | ["xpath=//div/input", "xpath:position"] 134 | ], 135 | "value": "13001001111" 136 | }, { 137 | "id": "ecc943c1-1457-4531-a895-0387dccbb01f", 138 | "comment": "", 139 | "command": "click", 140 | "target": "css=.submit", 141 | "targets": [ 142 | ["css=.submit", "css:finder"], 143 | ["xpath=//input[@value='查询']", "xpath:attributes"], 144 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 145 | ["xpath=//input[3]", "xpath:position"] 146 | ], 147 | "value": "" 148 | }, { 149 | "id": "a7925468-d25d-45f1-a172-0346061cd3c7", 150 | "comment": "", 151 | "command": "assertText", 152 | "target": "css=h2", 153 | "targets": [ 154 | ["css=h2", "css:finder"], 155 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 156 | ["xpath=//h2", "xpath:position"], 157 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 158 | ], 159 | "value": "北京联通" 160 | }, { 161 | "id": "6c0e8ad3-e845-4a3a-ae63-78d2a9ba4770", 162 | "comment": "", 163 | "command": "click", 164 | "target": "linkText=重新查询", 165 | "targets": [ 166 | ["linkText=重新查询", "linkText"], 167 | ["css=.requery", "css:finder"], 168 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 169 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 170 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 171 | ["xpath=//div[2]/a", "xpath:position"], 172 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 173 | ], 174 | "value": "" 175 | }, { 176 | "id": "8d497b85-fde4-4110-b6d5-0555ddb411d4", 177 | "comment": "", 178 | "command": "type", 179 | "target": "id=id_phone", 180 | "targets": [ 181 | ["id=id_phone", "id"], 182 | ["name=phone", "name"], 183 | ["css=#id_phone", "css:finder"], 184 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 185 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 186 | ["xpath=//div/input", "xpath:position"] 187 | ], 188 | "value": "15301001111" 189 | }, { 190 | "id": "88710c77-5994-4b12-b88b-f6e1c839faa6", 191 | "comment": "", 192 | "command": "click", 193 | "target": "css=.submit", 194 | "targets": [ 195 | ["css=.submit", "css:finder"], 196 | ["xpath=//input[@value='查询']", "xpath:attributes"], 197 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 198 | ["xpath=//input[3]", "xpath:position"] 199 | ], 200 | "value": "" 201 | }, { 202 | "id": "0bf1a500-40a3-4fb5-a659-7ca31f6a856f", 203 | "comment": "", 204 | "command": "assertText", 205 | "target": "css=h2", 206 | "targets": [ 207 | ["css=h2", "css:finder"], 208 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 209 | ["xpath=//h2", "xpath:position"], 210 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 211 | ], 212 | "value": "北京电信" 213 | }, { 214 | "id": "0862ebcb-1100-4f60-8da7-d11686eb1437", 215 | "comment": "", 216 | "command": "click", 217 | "target": "linkText=重新查询", 218 | "targets": [ 219 | ["linkText=重新查询", "linkText"], 220 | ["css=.requery", "css:finder"], 221 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 222 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 223 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 224 | ["xpath=//div[2]/a", "xpath:position"], 225 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 226 | ], 227 | "value": "" 228 | }, { 229 | "id": "483a44cf-819b-4e61-bd4b-0ff13c124cf9", 230 | "comment": "", 231 | "command": "type", 232 | "target": "id=id_phone", 233 | "targets": [ 234 | ["id=id_phone", "id"], 235 | ["name=phone", "name"], 236 | ["css=#id_phone", "css:finder"], 237 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 238 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 239 | ["xpath=//div/input", "xpath:position"] 240 | ], 241 | "value": "13820861111" 242 | }, { 243 | "id": "ff6ea3d1-c2aa-4b8f-b9c0-bccb8d3aa408", 244 | "comment": "", 245 | "command": "click", 246 | "target": "css=.submit", 247 | "targets": [ 248 | ["css=.submit", "css:finder"], 249 | ["xpath=//input[@value='查询']", "xpath:attributes"], 250 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 251 | ["xpath=//input[3]", "xpath:position"] 252 | ], 253 | "value": "" 254 | }, { 255 | "id": "251bce66-904c-4bad-80e4-6fb96be4d6a8", 256 | "comment": "", 257 | "command": "assertText", 258 | "target": "css=h2", 259 | "targets": [ 260 | ["css=h2", "css:finder"], 261 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 262 | ["xpath=//h2", "xpath:position"], 263 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 264 | ], 265 | "value": "天津移动" 266 | }, { 267 | "id": "23fa11f9-4278-48d9-acfe-5fa4d2586a84", 268 | "comment": "", 269 | "command": "click", 270 | "target": "linkText=重新查询", 271 | "targets": [ 272 | ["linkText=重新查询", "linkText"], 273 | ["css=.requery", "css:finder"], 274 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 275 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 276 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 277 | ["xpath=//div[2]/a", "xpath:position"], 278 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 279 | ], 280 | "value": "" 281 | }, { 282 | "id": "75554511-cc0a-4833-9151-81baf00f9908", 283 | "comment": "", 284 | "command": "type", 285 | "target": "id=id_phone", 286 | "targets": [ 287 | ["id=id_phone", "id"], 288 | ["name=phone", "name"], 289 | ["css=#id_phone", "css:finder"], 290 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 291 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 292 | ["xpath=//div/input", "xpath:position"] 293 | ], 294 | "value": "13163021111" 295 | }, { 296 | "id": "57a3c978-8dc5-47a6-b162-be8c2e5df80c", 297 | "comment": "", 298 | "command": "click", 299 | "target": "css=.submit", 300 | "targets": [ 301 | ["css=.submit", "css:finder"], 302 | ["xpath=//input[@value='查询']", "xpath:attributes"], 303 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 304 | ["xpath=//input[3]", "xpath:position"] 305 | ], 306 | "value": "" 307 | }, { 308 | "id": "9eb0ef07-0c1f-4e36-84b9-807a5f80d57d", 309 | "comment": "", 310 | "command": "assertText", 311 | "target": "css=h2", 312 | "targets": [ 313 | ["css=h2", "css:finder"], 314 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 315 | ["xpath=//h2", "xpath:position"], 316 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 317 | ], 318 | "value": "天津联通" 319 | }, { 320 | "id": "e8d428f4-a8a0-4b7c-84d3-6279570c8285", 321 | "comment": "", 322 | "command": "click", 323 | "target": "linkText=重新查询", 324 | "targets": [ 325 | ["linkText=重新查询", "linkText"], 326 | ["css=.requery", "css:finder"], 327 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 328 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 329 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 330 | ["xpath=//div[2]/a", "xpath:position"], 331 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 332 | ], 333 | "value": "" 334 | }, { 335 | "id": "66634861-3a59-4433-8974-547c0965c53c", 336 | "comment": "", 337 | "command": "type", 338 | "target": "id=id_phone", 339 | "targets": [ 340 | ["id=id_phone", "id"], 341 | ["name=phone", "name"], 342 | ["css=#id_phone", "css:finder"], 343 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 344 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 345 | ["xpath=//div/input", "xpath:position"] 346 | ], 347 | "value": "13388091111" 348 | }, { 349 | "id": "dc47e366-ec8b-4164-975e-bf631b6b0345", 350 | "comment": "", 351 | "command": "click", 352 | "target": "css=.submit", 353 | "targets": [ 354 | ["css=.submit", "css:finder"], 355 | ["xpath=//input[@value='查询']", "xpath:attributes"], 356 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 357 | ["xpath=//input[3]", "xpath:position"] 358 | ], 359 | "value": "" 360 | }, { 361 | "id": "20ab9471-7536-4061-abf6-aab95a12168b", 362 | "comment": "", 363 | "command": "assertText", 364 | "target": "css=h2", 365 | "targets": [ 366 | ["css=h2", "css:finder"], 367 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 368 | ["xpath=//h2", "xpath:position"], 369 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 370 | ], 371 | "value": "零距离水站(芥园道店)" 372 | }, { 373 | "id": "6c7e281c-326c-4577-b580-8a98d76d4f3f", 374 | "comment": "", 375 | "command": "click", 376 | "target": "linkText=重新查询", 377 | "targets": [ 378 | ["linkText=重新查询", "linkText"], 379 | ["css=.requery", "css:finder"], 380 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 381 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 382 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 383 | ["xpath=//div[2]/a", "xpath:position"], 384 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 385 | ], 386 | "value": "" 387 | }, { 388 | "id": "1db201b5-e4c2-44fb-9535-e3a618e143bc", 389 | "comment": "", 390 | "command": "type", 391 | "target": "id=id_phone", 392 | "targets": [ 393 | ["id=id_phone", "id"], 394 | ["name=phone", "name"], 395 | ["css=#id_phone", "css:finder"], 396 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 397 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 398 | ["xpath=//div/input", "xpath:position"] 399 | ], 400 | "value": "13681881111" 401 | }, { 402 | "id": "ccd67fe0-dc2b-409f-b3a4-c627cb9e89c8", 403 | "comment": "", 404 | "command": "click", 405 | "target": "css=.submit", 406 | "targets": [ 407 | ["css=.submit", "css:finder"], 408 | ["xpath=//input[@value='查询']", "xpath:attributes"], 409 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 410 | ["xpath=//input[3]", "xpath:position"] 411 | ], 412 | "value": "" 413 | }, { 414 | "id": "07f414fd-05bf-432b-879a-073f32062b2b", 415 | "comment": "", 416 | "command": "assertText", 417 | "target": "css=h2", 418 | "targets": [ 419 | ["css=h2", "css:finder"], 420 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 421 | ["xpath=//h2", "xpath:position"], 422 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 423 | ], 424 | "value": "上海移动" 425 | }, { 426 | "id": "533a5d88-27c7-48c8-81b6-04b06649d767", 427 | "comment": "", 428 | "command": "click", 429 | "target": "linkText=重新查询", 430 | "targets": [ 431 | ["linkText=重新查询", "linkText"], 432 | ["css=.requery", "css:finder"], 433 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 434 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 435 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 436 | ["xpath=//div[2]/a", "xpath:position"], 437 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 438 | ], 439 | "value": "" 440 | }, { 441 | "id": "e94f7cad-5a52-4a0d-9739-fe3e0336badf", 442 | "comment": "", 443 | "command": "type", 444 | "target": "id=id_phone", 445 | "targets": [ 446 | ["id=id_phone", "id"], 447 | ["name=phone", "name"], 448 | ["css=#id_phone", "css:finder"], 449 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 450 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 451 | ["xpath=//div/input", "xpath:position"] 452 | ], 453 | "value": "18621921111" 454 | }, { 455 | "id": "45fc2d8f-c1dc-4a91-93a0-701e79ce910c", 456 | "comment": "", 457 | "command": "click", 458 | "target": "css=.submit", 459 | "targets": [ 460 | ["css=.submit", "css:finder"], 461 | ["xpath=//input[@value='查询']", "xpath:attributes"], 462 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 463 | ["xpath=//input[3]", "xpath:position"] 464 | ], 465 | "value": "" 466 | }, { 467 | "id": "e6cc84c7-543e-450c-9879-a296da185794", 468 | "comment": "", 469 | "command": "assertText", 470 | "target": "css=h2", 471 | "targets": [ 472 | ["css=h2", "css:finder"], 473 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 474 | ["xpath=//h2", "xpath:position"], 475 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 476 | ], 477 | "value": "上海联通" 478 | }, { 479 | "id": "0f81bd26-2e50-4983-83c8-885f9e2a916a", 480 | "comment": "", 481 | "command": "click", 482 | "target": "linkText=重新查询", 483 | "targets": [ 484 | ["linkText=重新查询", "linkText"], 485 | ["css=.requery", "css:finder"], 486 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 487 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 488 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 489 | ["xpath=//div[2]/a", "xpath:position"], 490 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 491 | ], 492 | "value": "" 493 | }, { 494 | "id": "b6439098-f7ff-4ca3-b433-c180eeadbb48", 495 | "comment": "", 496 | "command": "type", 497 | "target": "id=id_phone", 498 | "targets": [ 499 | ["id=id_phone", "id"], 500 | ["name=phone", "name"], 501 | ["css=#id_phone", "css:finder"], 502 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 503 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 504 | ["xpath=//div/input", "xpath:position"] 505 | ], 506 | "value": "18017001111" 507 | }, { 508 | "id": "dab4d725-a094-4b4a-9221-988999f5beb3", 509 | "comment": "", 510 | "command": "click", 511 | "target": "css=.submit", 512 | "targets": [ 513 | ["css=.submit", "css:finder"], 514 | ["xpath=//input[@value='查询']", "xpath:attributes"], 515 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 516 | ["xpath=//input[3]", "xpath:position"] 517 | ], 518 | "value": "" 519 | }, { 520 | "id": "9481b951-d0e6-4b28-a23f-6121138fd68e", 521 | "comment": "", 522 | "command": "assertText", 523 | "target": "css=h2", 524 | "targets": [ 525 | ["css=h2", "css:finder"], 526 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 527 | ["xpath=//h2", "xpath:position"], 528 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 529 | ], 530 | "value": "上海电信" 531 | }, { 532 | "id": "2e789e9e-6a03-4117-ae83-0d3db9fdd662", 533 | "comment": "", 534 | "command": "click", 535 | "target": "linkText=重新查询", 536 | "targets": [ 537 | ["linkText=重新查询", "linkText"], 538 | ["css=.requery", "css:finder"], 539 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 540 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 541 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 542 | ["xpath=//div[2]/a", "xpath:position"], 543 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 544 | ], 545 | "value": "" 546 | }, { 547 | "id": "9d8e9561-9e1b-42d3-83cc-b526bb0f0b20", 548 | "comment": "", 549 | "command": "type", 550 | "target": "id=id_phone", 551 | "targets": [ 552 | ["id=id_phone", "id"], 553 | ["name=phone", "name"], 554 | ["css=#id_phone", "css:finder"], 555 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 556 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 557 | ["xpath=//div/input", "xpath:position"] 558 | ], 559 | "value": "13983861111" 560 | }, { 561 | "id": "1edeb00b-39b0-4232-a96e-912bb71e889d", 562 | "comment": "", 563 | "command": "click", 564 | "target": "css=.submit", 565 | "targets": [ 566 | ["css=.submit", "css:finder"], 567 | ["xpath=//input[@value='查询']", "xpath:attributes"], 568 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 569 | ["xpath=//input[3]", "xpath:position"] 570 | ], 571 | "value": "" 572 | }, { 573 | "id": "4c06f472-cd75-4da0-b621-12b43a751d1d", 574 | "comment": "", 575 | "command": "assertText", 576 | "target": "css=h2", 577 | "targets": [ 578 | ["css=h2", "css:finder"], 579 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 580 | ["xpath=//h2", "xpath:position"], 581 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 582 | ], 583 | "value": "重庆移动" 584 | }, { 585 | "id": "74c2cef5-6fbd-4388-8a31-837b0f867656", 586 | "comment": "", 587 | "command": "click", 588 | "target": "linkText=重新查询", 589 | "targets": [ 590 | ["linkText=重新查询", "linkText"], 591 | ["css=.requery", "css:finder"], 592 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 593 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 594 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 595 | ["xpath=//div[2]/a", "xpath:position"], 596 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 597 | ], 598 | "value": "" 599 | }, { 600 | "id": "1a2d672f-5db4-46d1-954f-875e6c7b121f", 601 | "comment": "", 602 | "command": "type", 603 | "target": "id=id_phone", 604 | "targets": [ 605 | ["id=id_phone", "id"], 606 | ["name=phone", "name"], 607 | ["css=#id_phone", "css:finder"], 608 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 609 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 610 | ["xpath=//div/input", "xpath:position"] 611 | ], 612 | "value": "13271851111" 613 | }, { 614 | "id": "5a0d5d76-254f-435d-b339-41f81f612c23", 615 | "comment": "", 616 | "command": "click", 617 | "target": "css=.submit", 618 | "targets": [ 619 | ["css=.submit", "css:finder"], 620 | ["xpath=//input[@value='查询']", "xpath:attributes"], 621 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 622 | ["xpath=//input[3]", "xpath:position"] 623 | ], 624 | "value": "" 625 | }, { 626 | "id": "1c4e1bc0-112a-4dba-985e-ae788c78a94d", 627 | "comment": "", 628 | "command": "assertText", 629 | "target": "css=h2", 630 | "targets": [ 631 | ["css=h2", "css:finder"], 632 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 633 | ["xpath=//h2", "xpath:position"], 634 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 635 | ], 636 | "value": "重庆联通" 637 | }, { 638 | "id": "10b439fd-52fe-47c5-a148-a5938ed14d8a", 639 | "comment": "", 640 | "command": "click", 641 | "target": "linkText=重新查询", 642 | "targets": [ 643 | ["linkText=重新查询", "linkText"], 644 | ["css=.requery", "css:finder"], 645 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 646 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 647 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 648 | ["xpath=//div[2]/a", "xpath:position"], 649 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 650 | ], 651 | "value": "" 652 | }, { 653 | "id": "e8e232f1-7ec5-4530-911c-470b4919b212", 654 | "comment": "", 655 | "command": "type", 656 | "target": "id=id_phone", 657 | "targets": [ 658 | ["id=id_phone", "id"], 659 | ["name=phone", "name"], 660 | ["css=#id_phone", "css:finder"], 661 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 662 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 663 | ["xpath=//div/input", "xpath:position"] 664 | ], 665 | "value": "15340551111" 666 | }, { 667 | "id": "cbb21ad3-f99f-4483-a88b-6fa07e721a62", 668 | "comment": "", 669 | "command": "click", 670 | "target": "css=.submit", 671 | "targets": [ 672 | ["css=.submit", "css:finder"], 673 | ["xpath=//input[@value='查询']", "xpath:attributes"], 674 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 675 | ["xpath=//input[3]", "xpath:position"] 676 | ], 677 | "value": "" 678 | }, { 679 | "id": "f1399a87-a6a0-4d27-a7c3-0674ea6d12d1", 680 | "comment": "", 681 | "command": "assertText", 682 | "target": "css=h2", 683 | "targets": [ 684 | ["css=h2", "css:finder"], 685 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 686 | ["xpath=//h2", "xpath:position"], 687 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 688 | ], 689 | "value": "重庆电信" 690 | }, { 691 | "id": "b1da8aa6-ced2-44c4-8631-9aaffee7b3a6", 692 | "comment": "", 693 | "command": "click", 694 | "target": "linkText=重新查询", 695 | "targets": [ 696 | ["linkText=重新查询", "linkText"], 697 | ["css=.requery", "css:finder"], 698 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 699 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 700 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 701 | ["xpath=//div[2]/a", "xpath:position"], 702 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 703 | ], 704 | "value": "" 705 | }, { 706 | "id": "fddf194e-c4ca-4ce2-a013-01b1e416a94b", 707 | "comment": "", 708 | "command": "type", 709 | "target": "id=id_phone", 710 | "targets": [ 711 | ["id=id_phone", "id"], 712 | ["name=phone", "name"], 713 | ["css=#id_phone", "css:finder"], 714 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 715 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 716 | ["xpath=//div/input", "xpath:position"] 717 | ], 718 | "value": "15733101111" 719 | }, { 720 | "id": "c0ae2c56-7de9-4dc6-a0db-8ad821f14b34", 721 | "comment": "", 722 | "command": "click", 723 | "target": "css=.submit", 724 | "targets": [ 725 | ["css=.submit", "css:finder"], 726 | ["xpath=//input[@value='查询']", "xpath:attributes"], 727 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 728 | ["xpath=//input[3]", "xpath:position"] 729 | ], 730 | "value": "" 731 | }, { 732 | "id": "5fbe689c-337a-474c-aaf6-a256981634a4", 733 | "comment": "", 734 | "command": "assertText", 735 | "target": "css=h2", 736 | "targets": [ 737 | ["css=h2", "css:finder"], 738 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 739 | ["xpath=//h2", "xpath:position"], 740 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 741 | ], 742 | "value": "河北石家庄移动" 743 | }, { 744 | "id": "64001bcc-0524-463a-b021-e8c8b79cb6b9", 745 | "comment": "", 746 | "command": "click", 747 | "target": "linkText=重新查询", 748 | "targets": [ 749 | ["linkText=重新查询", "linkText"], 750 | ["css=.requery", "css:finder"], 751 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 752 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 753 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 754 | ["xpath=//div[2]/a", "xpath:position"], 755 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 756 | ], 757 | "value": "" 758 | }, { 759 | "id": "b13fba49-4d36-4e0e-8659-665e01300c17", 760 | "comment": "", 761 | "command": "type", 762 | "target": "id=id_phone", 763 | "targets": [ 764 | ["id=id_phone", "id"], 765 | ["name=phone", "name"], 766 | ["css=#id_phone", "css:finder"], 767 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 768 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 769 | ["xpath=//div/input", "xpath:position"] 770 | ], 771 | "value": "15603111111" 772 | }, { 773 | "id": "a7e80d82-b404-48fe-a569-cecb5f8bb15b", 774 | "comment": "", 775 | "command": "click", 776 | "target": "css=.submit", 777 | "targets": [ 778 | ["css=.submit", "css:finder"], 779 | ["xpath=//input[@value='查询']", "xpath:attributes"], 780 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 781 | ["xpath=//input[3]", "xpath:position"] 782 | ], 783 | "value": "" 784 | }, { 785 | "id": "3ee4b46a-5912-4ee9-91ad-b0b97df005ca", 786 | "comment": "", 787 | "command": "assertText", 788 | "target": "css=h2", 789 | "targets": [ 790 | ["css=h2", "css:finder"], 791 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 792 | ["xpath=//h2", "xpath:position"], 793 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 794 | ], 795 | "value": "河北石家庄联通" 796 | }, { 797 | "id": "5b8c2d1d-c9b5-4473-a084-cf94e3bfba3d", 798 | "comment": "", 799 | "command": "click", 800 | "target": "linkText=重新查询", 801 | "targets": [ 802 | ["linkText=重新查询", "linkText"], 803 | ["css=.requery", "css:finder"], 804 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 805 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 806 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 807 | ["xpath=//div[2]/a", "xpath:position"], 808 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 809 | ], 810 | "value": "" 811 | }, { 812 | "id": "f6d69d18-18bc-402a-8bc3-edbd5b66ff34", 813 | "comment": "", 814 | "command": "type", 815 | "target": "id=id_phone", 816 | "targets": [ 817 | ["id=id_phone", "id"], 818 | ["name=phone", "name"], 819 | ["css=#id_phone", "css:finder"], 820 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 821 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 822 | ["xpath=//div/input", "xpath:position"] 823 | ], 824 | "value": "13333381111" 825 | }, { 826 | "id": "a2de25da-0d48-4b8f-b618-fb8ac203ff81", 827 | "comment": "", 828 | "command": "click", 829 | "target": "css=.submit", 830 | "targets": [ 831 | ["css=.submit", "css:finder"], 832 | ["xpath=//input[@value='查询']", "xpath:attributes"], 833 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 834 | ["xpath=//input[3]", "xpath:position"] 835 | ], 836 | "value": "" 837 | }, { 838 | "id": "b702f42e-8998-4e7d-932e-d9cdd39ac157", 839 | "comment": "", 840 | "command": "assertText", 841 | "target": "css=h2", 842 | "targets": [ 843 | ["css=h2", "css:finder"], 844 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 845 | ["xpath=//h2", "xpath:position"], 846 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 847 | ], 848 | "value": "河北石家庄电信" 849 | }, { 850 | "id": "7ee5a849-2d12-4c4f-8679-b678d3256785", 851 | "comment": "", 852 | "command": "click", 853 | "target": "linkText=重新查询", 854 | "targets": [ 855 | ["linkText=重新查询", "linkText"], 856 | ["css=.requery", "css:finder"], 857 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 858 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 859 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 860 | ["xpath=//div[2]/a", "xpath:position"], 861 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 862 | ], 863 | "value": "" 864 | }, { 865 | "id": "70378532-bbca-403b-97eb-f4e3e36cb850", 866 | "comment": "", 867 | "command": "type", 868 | "target": "id=id_phone", 869 | "targets": [ 870 | ["id=id_phone", "id"], 871 | ["name=phone", "name"], 872 | ["css=#id_phone", "css:finder"], 873 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 874 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 875 | ["xpath=//div/input", "xpath:position"] 876 | ], 877 | "value": "18300661111" 878 | }, { 879 | "id": "57511074-52c5-40b0-8490-62e6a4419a16", 880 | "comment": "", 881 | "command": "click", 882 | "target": "css=.submit", 883 | "targets": [ 884 | ["css=.submit", "css:finder"], 885 | ["xpath=//input[@value='查询']", "xpath:attributes"], 886 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 887 | ["xpath=//input[3]", "xpath:position"] 888 | ], 889 | "value": "" 890 | }, { 891 | "id": "ee88c471-8385-42f8-98e8-78c4fc51e0d0", 892 | "comment": "", 893 | "command": "assertText", 894 | "target": "css=h2", 895 | "targets": [ 896 | ["css=h2", "css:finder"], 897 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 898 | ["xpath=//h2", "xpath:position"], 899 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 900 | ], 901 | "value": "河南郑州移动" 902 | }, { 903 | "id": "8415bfd0-cd9c-4bbc-ad70-253e0af83564", 904 | "comment": "", 905 | "command": "click", 906 | "target": "linkText=重新查询", 907 | "targets": [ 908 | ["linkText=重新查询", "linkText"], 909 | ["css=.requery", "css:finder"], 910 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 911 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 912 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 913 | ["xpath=//div[2]/a", "xpath:position"], 914 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 915 | ], 916 | "value": "" 917 | }, { 918 | "id": "e9124765-a029-430b-bed2-8d337ec62eed", 919 | "comment": "", 920 | "command": "type", 921 | "target": "id=id_phone", 922 | "targets": [ 923 | ["id=id_phone", "id"], 924 | ["name=phone", "name"], 925 | ["css=#id_phone", "css:finder"], 926 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 927 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 928 | ["xpath=//div/input", "xpath:position"] 929 | ], 930 | "value": "13253591111" 931 | }, { 932 | "id": "f89285a3-c923-4ec9-98c3-66e37817af7a", 933 | "comment": "", 934 | "command": "click", 935 | "target": "css=.submit", 936 | "targets": [ 937 | ["css=.submit", "css:finder"], 938 | ["xpath=//input[@value='查询']", "xpath:attributes"], 939 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 940 | ["xpath=//input[3]", "xpath:position"] 941 | ], 942 | "value": "" 943 | }, { 944 | "id": "a4df7541-543e-4ce7-aee6-bb4feda42209", 945 | "comment": "", 946 | "command": "assertText", 947 | "target": "css=h2", 948 | "targets": [ 949 | ["css=h2", "css:finder"], 950 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 951 | ["xpath=//h2", "xpath:position"], 952 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 953 | ], 954 | "value": "河南郑州联通" 955 | }, { 956 | "id": "7b330210-1ffb-4c0f-869d-7024d44f013c", 957 | "comment": "", 958 | "command": "click", 959 | "target": "linkText=重新查询", 960 | "targets": [ 961 | ["linkText=重新查询", "linkText"], 962 | ["css=.requery", "css:finder"], 963 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 964 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 965 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 966 | ["xpath=//div[2]/a", "xpath:position"], 967 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 968 | ], 969 | "value": "" 970 | }, { 971 | "id": "165006f3-18e2-4767-9bc0-85086564fcb0", 972 | "comment": "", 973 | "command": "type", 974 | "target": "id=id_phone", 975 | "targets": [ 976 | ["id=id_phone", "id"], 977 | ["name=phone", "name"], 978 | ["css=#id_phone", "css:finder"], 979 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 980 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 981 | ["xpath=//div/input", "xpath:position"] 982 | ], 983 | "value": "17719891111" 984 | }, { 985 | "id": "6d20f867-3788-466c-b45a-db5ad9c8ec9c", 986 | "comment": "", 987 | "command": "click", 988 | "target": "css=.submit", 989 | "targets": [ 990 | ["css=.submit", "css:finder"], 991 | ["xpath=//input[@value='查询']", "xpath:attributes"], 992 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 993 | ["xpath=//input[3]", "xpath:position"] 994 | ], 995 | "value": "" 996 | }, { 997 | "id": "644839b5-5ab1-44e5-8b62-90aa2336f52d", 998 | "comment": "", 999 | "command": "assertText", 1000 | "target": "css=h2", 1001 | "targets": [ 1002 | ["css=h2", "css:finder"], 1003 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 1004 | ["xpath=//h2", "xpath:position"], 1005 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 1006 | ], 1007 | "value": "河南郑州电信" 1008 | }, { 1009 | "id": "2ae0b7c9-7dda-4f12-8f72-96b5c0f1ed12", 1010 | "comment": "", 1011 | "command": "click", 1012 | "target": "linkText=重新查询", 1013 | "targets": [ 1014 | ["linkText=重新查询", "linkText"], 1015 | ["css=.requery", "css:finder"], 1016 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 1017 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 1018 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 1019 | ["xpath=//div[2]/a", "xpath:position"], 1020 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 1021 | ], 1022 | "value": "" 1023 | }, { 1024 | "id": "bbcf9c52-5d46-4c67-aabc-0f1c0daa2df3", 1025 | "comment": "", 1026 | "command": "type", 1027 | "target": "id=id_phone", 1028 | "targets": [ 1029 | ["id=id_phone", "id"], 1030 | ["name=phone", "name"], 1031 | ["css=#id_phone", "css:finder"], 1032 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 1033 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 1034 | ["xpath=//div/input", "xpath:position"] 1035 | ], 1036 | "value": "15987181111" 1037 | }, { 1038 | "id": "d6b3e28e-0aed-4c50-ae30-04a1afd4d17a", 1039 | "comment": "", 1040 | "command": "click", 1041 | "target": "css=.submit", 1042 | "targets": [ 1043 | ["css=.submit", "css:finder"], 1044 | ["xpath=//input[@value='查询']", "xpath:attributes"], 1045 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 1046 | ["xpath=//input[3]", "xpath:position"] 1047 | ], 1048 | "value": "" 1049 | }, { 1050 | "id": "5380bbe4-ee33-4889-bb62-382c04289138", 1051 | "comment": "", 1052 | "command": "assertText", 1053 | "target": "css=h2", 1054 | "targets": [ 1055 | ["css=h2", "css:finder"], 1056 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 1057 | ["xpath=//h2", "xpath:position"], 1058 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 1059 | ], 1060 | "value": "云南昆明移动" 1061 | }, { 1062 | "id": "3585f877-5296-4845-979d-e1b20388f93d", 1063 | "comment": "", 1064 | "command": "click", 1065 | "target": "linkText=重新查询", 1066 | "targets": [ 1067 | ["linkText=重新查询", "linkText"], 1068 | ["css=.requery", "css:finder"], 1069 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 1070 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 1071 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 1072 | ["xpath=//div[2]/a", "xpath:position"], 1073 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 1074 | ], 1075 | "value": "" 1076 | }, { 1077 | "id": "60885988-4626-4d90-b5f6-f8fac5161cf0", 1078 | "comment": "", 1079 | "command": "type", 1080 | "target": "id=id_phone", 1081 | "targets": [ 1082 | ["id=id_phone", "id"], 1083 | ["name=phone", "name"], 1084 | ["css=#id_phone", "css:finder"], 1085 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 1086 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 1087 | ["xpath=//div/input", "xpath:position"] 1088 | ], 1089 | "value": "15559601111" 1090 | }, { 1091 | "id": "c66d3405-c0a2-4381-b392-15abe77073cd", 1092 | "comment": "", 1093 | "command": "click", 1094 | "target": "css=.submit", 1095 | "targets": [ 1096 | ["css=.submit", "css:finder"], 1097 | ["xpath=//input[@value='查询']", "xpath:attributes"], 1098 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 1099 | ["xpath=//input[3]", "xpath:position"] 1100 | ], 1101 | "value": "" 1102 | }, { 1103 | "id": "ae4dfb90-0f56-4488-b977-2d42706ea031", 1104 | "comment": "", 1105 | "command": "assertText", 1106 | "target": "css=h2", 1107 | "targets": [ 1108 | ["css=h2", "css:finder"], 1109 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 1110 | ["xpath=//h2", "xpath:position"], 1111 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 1112 | ], 1113 | "value": "云南昆明联通" 1114 | }, { 1115 | "id": "3beb5b9d-3676-459a-a836-2e810ac9c83a", 1116 | "comment": "", 1117 | "command": "click", 1118 | "target": "linkText=重新查询", 1119 | "targets": [ 1120 | ["linkText=重新查询", "linkText"], 1121 | ["css=.requery", "css:finder"], 1122 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 1123 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 1124 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 1125 | ["xpath=//div[2]/a", "xpath:position"], 1126 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 1127 | ], 1128 | "value": "" 1129 | }, { 1130 | "id": "5d118f48-4503-459b-8da1-aa2ebf864387", 1131 | "comment": "", 1132 | "command": "type", 1133 | "target": "id=id_phone", 1134 | "targets": [ 1135 | ["id=id_phone", "id"], 1136 | ["name=phone", "name"], 1137 | ["css=#id_phone", "css:finder"], 1138 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 1139 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 1140 | ["xpath=//div/input", "xpath:position"] 1141 | ], 1142 | "value": "18187051111" 1143 | }, { 1144 | "id": "21aebcb6-8597-48a3-ac0c-80c49ca1f52a", 1145 | "comment": "", 1146 | "command": "click", 1147 | "target": "css=.submit", 1148 | "targets": [ 1149 | ["css=.submit", "css:finder"], 1150 | ["xpath=//input[@value='查询']", "xpath:attributes"], 1151 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 1152 | ["xpath=//input[3]", "xpath:position"] 1153 | ], 1154 | "value": "" 1155 | }, { 1156 | "id": "f23e425c-e3cc-49e4-b5ee-f04f532ed392", 1157 | "comment": "", 1158 | "command": "assertText", 1159 | "target": "css=h2", 1160 | "targets": [ 1161 | ["css=h2", "css:finder"], 1162 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 1163 | ["xpath=//h2", "xpath:position"], 1164 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 1165 | ], 1166 | "value": "云南昆明电信" 1167 | }, { 1168 | "id": "2a9c3dca-7b66-453f-a75e-09beafd0f76f", 1169 | "comment": "", 1170 | "command": "click", 1171 | "target": "linkText=重新查询", 1172 | "targets": [ 1173 | ["linkText=重新查询", "linkText"], 1174 | ["css=.requery", "css:finder"], 1175 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 1176 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 1177 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 1178 | ["xpath=//div[2]/a", "xpath:position"], 1179 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 1180 | ], 1181 | "value": "" 1182 | }, { 1183 | "id": "ff36890f-937e-41b2-a1f7-b71df194f570", 1184 | "comment": "", 1185 | "command": "type", 1186 | "target": "id=id_phone", 1187 | "targets": [ 1188 | ["id=id_phone", "id"], 1189 | ["name=phone", "name"], 1190 | ["css=#id_phone", "css:finder"], 1191 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 1192 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 1193 | ["xpath=//div/input", "xpath:position"] 1194 | ], 1195 | "value": "13464001111" 1196 | }, { 1197 | "id": "26f676e4-e921-4f00-bcc0-8d2533ac2a98", 1198 | "comment": "", 1199 | "command": "click", 1200 | "target": "css=.submit", 1201 | "targets": [ 1202 | ["css=.submit", "css:finder"], 1203 | ["xpath=//input[@value='查询']", "xpath:attributes"], 1204 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 1205 | ["xpath=//input[3]", "xpath:position"] 1206 | ], 1207 | "value": "" 1208 | }, { 1209 | "id": "c68f2e8c-9d0c-417d-875a-18676fc412ea", 1210 | "comment": "", 1211 | "command": "assertText", 1212 | "target": "css=h2", 1213 | "targets": [ 1214 | ["css=h2", "css:finder"], 1215 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 1216 | ["xpath=//h2", "xpath:position"], 1217 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 1218 | ], 1219 | "value": "北京广腾物流有限公司" 1220 | }, { 1221 | "id": "4ec1b1fb-ddb6-44d3-af0b-539b6fc7265f", 1222 | "comment": "", 1223 | "command": "click", 1224 | "target": "linkText=重新查询", 1225 | "targets": [ 1226 | ["linkText=重新查询", "linkText"], 1227 | ["css=.requery", "css:finder"], 1228 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 1229 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 1230 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 1231 | ["xpath=//div[2]/a", "xpath:position"], 1232 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 1233 | ], 1234 | "value": "" 1235 | }, { 1236 | "id": "4c50de31-f296-4255-9335-ebdf82b27d48", 1237 | "comment": "", 1238 | "command": "type", 1239 | "target": "id=id_phone", 1240 | "targets": [ 1241 | ["id=id_phone", "id"], 1242 | ["name=phone", "name"], 1243 | ["css=#id_phone", "css:finder"], 1244 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 1245 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 1246 | ["xpath=//div/input", "xpath:position"] 1247 | ], 1248 | "value": "13002401111" 1249 | }, { 1250 | "id": "285fb71f-2913-4b10-8b78-377bbc4dfe06", 1251 | "comment": "", 1252 | "command": "click", 1253 | "target": "css=.submit", 1254 | "targets": [ 1255 | ["css=.submit", "css:finder"], 1256 | ["xpath=//input[@value='查询']", "xpath:attributes"], 1257 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 1258 | ["xpath=//input[3]", "xpath:position"] 1259 | ], 1260 | "value": "" 1261 | }, { 1262 | "id": "8e494020-f878-4d66-811c-5c13d7d3ce6d", 1263 | "comment": "", 1264 | "command": "assertText", 1265 | "target": "css=h2", 1266 | "targets": [ 1267 | ["css=h2", "css:finder"], 1268 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 1269 | ["xpath=//h2", "xpath:position"], 1270 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 1271 | ], 1272 | "value": "辽宁沈阳联通" 1273 | }, { 1274 | "id": "49e66439-eb3c-4277-835d-cd5db3914381", 1275 | "comment": "", 1276 | "command": "click", 1277 | "target": "linkText=重新查询", 1278 | "targets": [ 1279 | ["linkText=重新查询", "linkText"], 1280 | ["css=.requery", "css:finder"], 1281 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 1282 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 1283 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 1284 | ["xpath=//div[2]/a", "xpath:position"], 1285 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 1286 | ], 1287 | "value": "" 1288 | }, { 1289 | "id": "4abafd68-1e30-4bc9-abdc-c8d447de7401", 1290 | "comment": "", 1291 | "command": "type", 1292 | "target": "id=id_phone", 1293 | "targets": [ 1294 | ["id=id_phone", "id"], 1295 | ["name=phone", "name"], 1296 | ["css=#id_phone", "css:finder"], 1297 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 1298 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 1299 | ["xpath=//div/input", "xpath:position"] 1300 | ], 1301 | "value": "13304001111" 1302 | }, { 1303 | "id": "ec081102-6147-4bc4-b170-a5daa359fea7", 1304 | "comment": "", 1305 | "command": "click", 1306 | "target": "css=.submit", 1307 | "targets": [ 1308 | ["css=.submit", "css:finder"], 1309 | ["xpath=//input[@value='查询']", "xpath:attributes"], 1310 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 1311 | ["xpath=//input[3]", "xpath:position"] 1312 | ], 1313 | "value": "" 1314 | }, { 1315 | "id": "7c060cc8-8b68-408a-a67c-c37694ccd642", 1316 | "comment": "", 1317 | "command": "assertText", 1318 | "target": "css=h2", 1319 | "targets": [ 1320 | ["css=h2", "css:finder"], 1321 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 1322 | ["xpath=//h2", "xpath:position"], 1323 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 1324 | ], 1325 | "value": "辽宁沈阳电信" 1326 | }, { 1327 | "id": "864c268e-4e7d-4d73-8083-1b7406c06321", 1328 | "comment": "", 1329 | "command": "click", 1330 | "target": "linkText=重新查询", 1331 | "targets": [ 1332 | ["linkText=重新查询", "linkText"], 1333 | ["css=.requery", "css:finder"], 1334 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 1335 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 1336 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 1337 | ["xpath=//div[2]/a", "xpath:position"], 1338 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 1339 | ], 1340 | "value": "" 1341 | }, { 1342 | "id": "2597b3b5-9854-4697-87c9-314eccb6ca75", 1343 | "comment": "", 1344 | "command": "type", 1345 | "target": "id=id_phone", 1346 | "targets": [ 1347 | ["id=id_phone", "id"], 1348 | ["name=phone", "name"], 1349 | ["css=#id_phone", "css:finder"], 1350 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 1351 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 1352 | ["xpath=//div/input", "xpath:position"] 1353 | ], 1354 | "value": "13603601111" 1355 | }, { 1356 | "id": "3ddbd7f4-bd14-4809-a2c1-ffadc4083293", 1357 | "comment": "", 1358 | "command": "click", 1359 | "target": "css=.submit", 1360 | "targets": [ 1361 | ["css=.submit", "css:finder"], 1362 | ["xpath=//input[@value='查询']", "xpath:attributes"], 1363 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 1364 | ["xpath=//input[3]", "xpath:position"] 1365 | ], 1366 | "value": "" 1367 | }, { 1368 | "id": "dd3da242-e1ea-4414-a63d-f7441d6aca99", 1369 | "comment": "", 1370 | "command": "assertText", 1371 | "target": "css=h2", 1372 | "targets": [ 1373 | ["css=h2", "css:finder"], 1374 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 1375 | ["xpath=//h2", "xpath:position"], 1376 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 1377 | ], 1378 | "value": "黑龙江哈尔滨移动" 1379 | }, { 1380 | "id": "a6206389-1683-497d-ac7f-63f94246c007", 1381 | "comment": "", 1382 | "command": "click", 1383 | "target": "linkText=重新查询", 1384 | "targets": [ 1385 | ["linkText=重新查询", "linkText"], 1386 | ["css=.requery", "css:finder"], 1387 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 1388 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 1389 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 1390 | ["xpath=//div[2]/a", "xpath:position"], 1391 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 1392 | ], 1393 | "value": "" 1394 | }, { 1395 | "id": "d899e3c2-b32d-4144-a28a-626d9568a31d", 1396 | "comment": "", 1397 | "command": "type", 1398 | "target": "id=id_phone", 1399 | "targets": [ 1400 | ["id=id_phone", "id"], 1401 | ["name=phone", "name"], 1402 | ["css=#id_phone", "css:finder"], 1403 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 1404 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 1405 | ["xpath=//div/input", "xpath:position"] 1406 | ], 1407 | "value": "13204501111" 1408 | }, { 1409 | "id": "16459494-78e7-4061-94cc-b9609f17f64d", 1410 | "comment": "", 1411 | "command": "click", 1412 | "target": "css=.submit", 1413 | "targets": [ 1414 | ["css=.submit", "css:finder"], 1415 | ["xpath=//input[@value='查询']", "xpath:attributes"], 1416 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 1417 | ["xpath=//input[3]", "xpath:position"] 1418 | ], 1419 | "value": "" 1420 | }, { 1421 | "id": "4437ed93-55d2-471e-8727-ccf2dbb027f5", 1422 | "comment": "", 1423 | "command": "assertText", 1424 | "target": "css=h2", 1425 | "targets": [ 1426 | ["css=h2", "css:finder"], 1427 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 1428 | ["xpath=//h2", "xpath:position"], 1429 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 1430 | ], 1431 | "value": "黑龙江哈尔滨联通" 1432 | }, { 1433 | "id": "b22fbd1a-1640-427e-8ad1-8308149c5ada", 1434 | "comment": "", 1435 | "command": "click", 1436 | "target": "linkText=重新查询", 1437 | "targets": [ 1438 | ["linkText=重新查询", "linkText"], 1439 | ["css=.requery", "css:finder"], 1440 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 1441 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 1442 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 1443 | ["xpath=//div[2]/a", "xpath:position"], 1444 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 1445 | ], 1446 | "value": "" 1447 | }, { 1448 | "id": "5dd7c0c2-476d-4703-bfca-0ca589e40d7c", 1449 | "comment": "", 1450 | "command": "type", 1451 | "target": "id=id_phone", 1452 | "targets": [ 1453 | ["id=id_phone", "id"], 1454 | ["name=phone", "name"], 1455 | ["css=#id_phone", "css:finder"], 1456 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 1457 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 1458 | ["xpath=//div/input", "xpath:position"] 1459 | ], 1460 | "value": "13303601111" 1461 | }, { 1462 | "id": "03fca5da-eef0-4a58-93fc-189d58ee9571", 1463 | "comment": "", 1464 | "command": "click", 1465 | "target": "css=.submit", 1466 | "targets": [ 1467 | ["css=.submit", "css:finder"], 1468 | ["xpath=//input[@value='查询']", "xpath:attributes"], 1469 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 1470 | ["xpath=//input[3]", "xpath:position"] 1471 | ], 1472 | "value": "" 1473 | }, { 1474 | "id": "ba6fecc1-2dda-4144-9466-edd700650802", 1475 | "comment": "", 1476 | "command": "assertText", 1477 | "target": "css=h2", 1478 | "targets": [ 1479 | ["css=h2", "css:finder"], 1480 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 1481 | ["xpath=//h2", "xpath:position"], 1482 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 1483 | ], 1484 | "value": "黑龙江哈尔滨电信" 1485 | }, { 1486 | "id": "068ff377-6738-4c1e-8683-cf7a1c3bb9f9", 1487 | "comment": "", 1488 | "command": "click", 1489 | "target": "linkText=重新查询", 1490 | "targets": [ 1491 | ["linkText=重新查询", "linkText"], 1492 | ["css=.requery", "css:finder"], 1493 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 1494 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 1495 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 1496 | ["xpath=//div[2]/a", "xpath:position"], 1497 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 1498 | ], 1499 | "value": "" 1500 | }, { 1501 | "id": "8c66b059-556c-404d-a219-936616a819c4", 1502 | "comment": "", 1503 | "command": "type", 1504 | "target": "id=id_phone", 1505 | "targets": [ 1506 | ["id=id_phone", "id"], 1507 | ["name=phone", "name"], 1508 | ["css=#id_phone", "css:finder"], 1509 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 1510 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 1511 | ["xpath=//div/input", "xpath:position"] 1512 | ], 1513 | "value": "13407311111" 1514 | }, { 1515 | "id": "0d875221-3f94-4e48-b08c-8a180c471b36", 1516 | "comment": "", 1517 | "command": "click", 1518 | "target": "css=.submit", 1519 | "targets": [ 1520 | ["css=.submit", "css:finder"], 1521 | ["xpath=//input[@value='查询']", "xpath:attributes"], 1522 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 1523 | ["xpath=//input[3]", "xpath:position"] 1524 | ], 1525 | "value": "" 1526 | }, { 1527 | "id": "a2a8e3b4-ec5d-46c3-89cc-c6c59ac052eb", 1528 | "comment": "", 1529 | "command": "assertText", 1530 | "target": "css=h2", 1531 | "targets": [ 1532 | ["css=h2", "css:finder"], 1533 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 1534 | ["xpath=//h2", "xpath:position"], 1535 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 1536 | ], 1537 | "value": "湖南长沙移动" 1538 | }, { 1539 | "id": "77606bd6-01e3-4460-b0a8-afdae5c2dfb8", 1540 | "comment": "", 1541 | "command": "click", 1542 | "target": "linkText=重新查询", 1543 | "targets": [ 1544 | ["linkText=重新查询", "linkText"], 1545 | ["css=.requery", "css:finder"], 1546 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 1547 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 1548 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 1549 | ["xpath=//div[2]/a", "xpath:position"], 1550 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 1551 | ], 1552 | "value": "" 1553 | }, { 1554 | "id": "a1bc74cd-d7a0-4986-beb6-cddb02eb0414", 1555 | "comment": "", 1556 | "command": "type", 1557 | "target": "id=id_phone", 1558 | "targets": [ 1559 | ["id=id_phone", "id"], 1560 | ["name=phone", "name"], 1561 | ["css=#id_phone", "css:finder"], 1562 | ["xpath=//input[@id='id_phone']", "xpath:attributes"], 1563 | ["xpath=//form[@id='queryForm']/div/input", "xpath:idRelative"], 1564 | ["xpath=//div/input", "xpath:position"] 1565 | ], 1566 | "value": "13203101111" 1567 | }, { 1568 | "id": "04662d6a-9f2a-4233-935d-7ce84d48356e", 1569 | "comment": "", 1570 | "command": "click", 1571 | "target": "css=.submit", 1572 | "targets": [ 1573 | ["css=.submit", "css:finder"], 1574 | ["xpath=//input[@value='查询']", "xpath:attributes"], 1575 | ["xpath=//form[@id='queryForm']/input[3]", "xpath:idRelative"], 1576 | ["xpath=//input[3]", "xpath:position"] 1577 | ], 1578 | "value": "" 1579 | }, { 1580 | "id": "ffe17f05-8286-4109-869b-9328aff2141e", 1581 | "comment": "", 1582 | "command": "assertText", 1583 | "target": "css=h2", 1584 | "targets": [ 1585 | ["css=h2", "css:finder"], 1586 | ["xpath=//div[@id='content']/div/div/div/div/h2", "xpath:idRelative"], 1587 | ["xpath=//h2", "xpath:position"], 1588 | ["xpath=//h2[contains(.,'河北石家庄移动')]", "xpath:innerText"] 1589 | ], 1590 | "value": "湖南长沙联通" 1591 | }, { 1592 | "id": "06aa1445-c264-49e5-9b0a-f956ce185d09", 1593 | "comment": "", 1594 | "command": "click", 1595 | "target": "linkText=重新查询", 1596 | "targets": [ 1597 | ["linkText=重新查询", "linkText"], 1598 | ["css=.requery", "css:finder"], 1599 | ["xpath=//a[contains(text(),'重新查询')]", "xpath:link"], 1600 | ["xpath=//div[@id='content']/div/div/div[2]/div[2]/a", "xpath:idRelative"], 1601 | ["xpath=(//a[contains(@href, '/phone_platform/query')])[2]", "xpath:href"], 1602 | ["xpath=//div[2]/a", "xpath:position"], 1603 | ["xpath=//a[contains(.,'重新查询')]", "xpath:innerText"] 1604 | ], 1605 | "value": "" 1606 | }] 1607 | }], 1608 | "suites": [{ 1609 | "id": "8de988f6-c8c2-4db2-820b-bd1ef47c6927", 1610 | "name": "Default Suite", 1611 | "persistSession": false, 1612 | "parallel": false, 1613 | "timeout": 300, 1614 | "tests": ["e3feccd4-03d2-4f93-b7bc-224e138750b1"] 1615 | }], 1616 | "urls": ["https://haoma.baidu.com/query", "https://haoma.baidu.com/"], 1617 | "plugins": [] 1618 | } -------------------------------------------------------------------------------- /test/pop-window.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "e9317a08-e990-4dbd-ab17-8e745f90fa99", 3 | "version": "2.0", 4 | "name": "pop-window", 5 | "url": "https://sample.wangding.co/", 6 | "tests": [{ 7 | "id": "ab95c1af-c4a6-426e-b18e-a8579b81ba3f", 8 | "name": "1-alert", 9 | "commands": [{ 10 | "id": "98c08567-4e34-43d7-9fdf-495da7b933d0", 11 | "comment": "打开被测页面", 12 | "command": "", 13 | "target": "", 14 | "targets": [], 15 | "value": "" 16 | }, { 17 | "id": "396716e9-0f5b-4595-8580-cdf24371cddd", 18 | "comment": "", 19 | "command": "open", 20 | "target": "selenium/alert.html", 21 | "targets": [], 22 | "value": "" 23 | }, { 24 | "id": "4a1a2edf-6376-4194-a365-147df0f2d6cb", 25 | "comment": "弹出警告弹窗,并验证", 26 | "command": "", 27 | "target": "", 28 | "targets": [], 29 | "value": "" 30 | }, { 31 | "id": "f127d099-7734-4788-814a-b09f897a9a26", 32 | "comment": "", 33 | "command": "click", 34 | "target": "id=btnAlert", 35 | "targets": [ 36 | ["id=btnAlert", "id"], 37 | ["css=#btnAlert", "css:finder"], 38 | ["xpath=//input[@id='btnAlert']", "xpath:attributes"], 39 | ["xpath=//input", "xpath:position"] 40 | ], 41 | "value": "" 42 | }, { 43 | "id": "986f6e97-449e-4e17-9b5c-7a200537d293", 44 | "comment": "", 45 | "command": "assertAlert", 46 | "target": "一定要给课程 5 分好评啊!", 47 | "targets": [], 48 | "value": "" 49 | }, { 50 | "id": "b2b4dece-52bf-4f04-950e-8a3001d063fe", 51 | "comment": "", 52 | "command": "verifyText", 53 | "target": "id=output", 54 | "targets": [ 55 | ["id=output", "id"], 56 | ["css=#output", "css:finder"], 57 | ["xpath=//p[@id='output']", "xpath:attributes"], 58 | ["xpath=//p", "xpath:position"], 59 | ["xpath=//p[contains(.,'警告弹窗消失了。')]", "xpath:innerText"] 60 | ], 61 | "value": "警告弹窗消失了。" 62 | }] 63 | }, { 64 | "id": "ea612d8f-99a5-4fc8-a919-3075daa9ff58", 65 | "name": "3-prompt", 66 | "commands": [{ 67 | "id": "d719c78c-e8e6-4670-a1c9-ab5165c4fcfb", 68 | "comment": "打开被测页面", 69 | "command": "", 70 | "target": "", 71 | "targets": [], 72 | "value": "" 73 | }, { 74 | "id": "984a7648-4a29-4a7f-956c-9c95f2490dee", 75 | "comment": "", 76 | "command": "open", 77 | "target": "selenium/alert.html", 78 | "targets": [], 79 | "value": "" 80 | }, { 81 | "id": "9d1027a8-df1e-43d9-81c3-6c0d327a680e", 82 | "comment": "弹出提示弹窗,输入文本,点击确定按钮,并验证", 83 | "command": "", 84 | "target": "", 85 | "targets": [], 86 | "value": "" 87 | }, { 88 | "id": "40b05ebd-7354-4f6c-8f05-6657d402f749", 89 | "comment": "", 90 | "command": "answerOnNextPrompt", 91 | "target": "Selenium IDE", 92 | "targets": [], 93 | "value": "" 94 | }, { 95 | "id": "fc2cb49d-9e67-44e0-9791-555d12912eb9", 96 | "comment": "", 97 | "command": "click", 98 | "target": "id=btnPrompt", 99 | "targets": [ 100 | ["id=btnPrompt", "id"], 101 | ["css=#btnPrompt", "css:finder"], 102 | ["xpath=//input[@id='btnPrompt']", "xpath:attributes"], 103 | ["xpath=//input[3]", "xpath:position"] 104 | ], 105 | "value": "" 106 | }, { 107 | "id": "dccb4d18-94b9-4b04-8f59-626278853a5a", 108 | "comment": "", 109 | "command": "assertPrompt", 110 | "target": "正在学习的这个 web 自动化测试工具是什么?", 111 | "targets": [], 112 | "value": "" 113 | }, { 114 | "id": "0d917ef6-00ce-4faa-bda9-ce028963acad", 115 | "comment": "", 116 | "command": "webdriverAnswerOnVisiblePrompt", 117 | "target": "Selenium IDE", 118 | "targets": [], 119 | "value": "" 120 | }, { 121 | "id": "0a2e0a00-5de1-4554-bf38-08f56917f979", 122 | "comment": "", 123 | "command": "verifyText", 124 | "target": "id=output", 125 | "targets": [ 126 | ["id=output", "id"], 127 | ["css=#output", "css:finder"], 128 | ["xpath=//p[@id='output']", "xpath:attributes"], 129 | ["xpath=//p", "xpath:position"], 130 | ["xpath=//p[contains(.,'Selenium IDE')]", "xpath:innerText"] 131 | ], 132 | "value": "Selenium IDE" 133 | }, { 134 | "id": "f56d2cbd-566e-4171-9ae6-d96ba5450067", 135 | "comment": "弹出提示弹窗,输入文本,点击取消按钮,并验证", 136 | "command": "", 137 | "target": "", 138 | "targets": [], 139 | "value": "" 140 | }, { 141 | "id": "9d8891b6-6983-49ce-b967-b1bd6d60b463", 142 | "comment": "", 143 | "command": "chooseCancelOnNextPrompt", 144 | "target": "", 145 | "targets": [], 146 | "value": "" 147 | }, { 148 | "id": "a61b6968-f4b2-47c2-ba78-a944c3b412a1", 149 | "comment": "", 150 | "command": "click", 151 | "target": "id=btnPrompt", 152 | "targets": [ 153 | ["id=btnPrompt", "id"], 154 | ["css=#btnPrompt", "css:finder"], 155 | ["xpath=//input[@id='btnPrompt']", "xpath:attributes"], 156 | ["xpath=//input[3]", "xpath:position"] 157 | ], 158 | "value": "" 159 | }, { 160 | "id": "f8260212-f2ee-43af-a4b5-334972fc7b85", 161 | "comment": "", 162 | "command": "assertPrompt", 163 | "target": "正在学习的这个 web 自动化测试工具是什么?", 164 | "targets": [], 165 | "value": "" 166 | }, { 167 | "id": "e968a289-bd9d-4b8c-a7e3-3664b4a812e7", 168 | "comment": "", 169 | "command": "webdriverChooseCancelOnVisiblePrompt", 170 | "target": "", 171 | "targets": [], 172 | "value": "" 173 | }, { 174 | "id": "29e279bc-d13f-4dcd-b6ee-9c3877e4a6eb", 175 | "comment": "", 176 | "command": "verifyText", 177 | "target": "id=output", 178 | "targets": [ 179 | ["id=output", "id"], 180 | ["css=#output", "css:finder"], 181 | ["xpath=//p[@id='output']", "xpath:attributes"], 182 | ["xpath=//p", "xpath:position"], 183 | ["xpath=//p[contains(.,'Selenium IDE')]", "xpath:innerText"] 184 | ], 185 | "value": "" 186 | }, { 187 | "id": "b0933745-b96e-4bf3-9a5c-ab98acae9399", 188 | "comment": "弹出提示弹窗,输入空文本,点击确定按钮,并验证", 189 | "command": "", 190 | "target": "", 191 | "targets": [], 192 | "value": "" 193 | }, { 194 | "id": "e3f7a710-ed65-490e-a5ba-9f708b3930cd", 195 | "comment": "", 196 | "command": "answerOnNextPrompt", 197 | "target": "", 198 | "targets": [], 199 | "value": "" 200 | }, { 201 | "id": "ae734887-1a3b-4b0b-8d00-0d435a7f0c0d", 202 | "comment": "", 203 | "command": "click", 204 | "target": "id=btnPrompt", 205 | "targets": [ 206 | ["id=btnPrompt", "id"], 207 | ["css=#btnPrompt", "css:finder"], 208 | ["xpath=//input[@id='btnPrompt']", "xpath:attributes"], 209 | ["xpath=//input[3]", "xpath:position"] 210 | ], 211 | "value": "" 212 | }, { 213 | "id": "3a04f4f6-318f-4882-b3e4-638bac6ec8b3", 214 | "comment": "", 215 | "command": "assertPrompt", 216 | "target": "正在学习的这个 web 自动化测试工具是什么?", 217 | "targets": [], 218 | "value": "" 219 | }, { 220 | "id": "c1d08329-308d-4046-857b-dc0436c60293", 221 | "comment": "", 222 | "command": "webdriverAnswerOnVisiblePrompt", 223 | "target": "", 224 | "targets": [], 225 | "value": "" 226 | }, { 227 | "id": "3643d401-eea1-4d97-ac8d-7040e3f837d7", 228 | "comment": "", 229 | "command": "verifyText", 230 | "target": "id=output", 231 | "targets": [ 232 | ["id=output", "id"], 233 | ["css=#output", "css:finder"], 234 | ["xpath=//p[@id='output']", "xpath:attributes"], 235 | ["xpath=//p", "xpath:position"], 236 | ["xpath=//p[contains(.,'Selenium IDE')]", "xpath:innerText"] 237 | ], 238 | "value": "" 239 | }] 240 | }, { 241 | "id": "e6a195e9-a09a-42dc-9d57-7d0e9d1c176c", 242 | "name": "2-confirm", 243 | "commands": [{ 244 | "id": "5a5fc6f8-9190-4384-a821-4b6c74392159", 245 | "comment": "打开被测页面", 246 | "command": "", 247 | "target": "", 248 | "targets": [], 249 | "value": "" 250 | }, { 251 | "id": "fadc3224-14df-4c27-bcbf-50e7cf87c973", 252 | "comment": "", 253 | "command": "open", 254 | "target": "selenium/alert.html", 255 | "targets": [], 256 | "value": "" 257 | }, { 258 | "id": "7b342ce5-0f03-4e52-8407-4d12b3b59191", 259 | "comment": "弹出确认弹窗,点击取消按钮,并验证", 260 | "command": "", 261 | "target": "", 262 | "targets": [], 263 | "value": "" 264 | }, { 265 | "id": "7912cab5-f9f9-4db0-a938-fcf0888b1094", 266 | "comment": "", 267 | "command": "chooseCancelOnNextConfirmation", 268 | "target": "", 269 | "targets": [], 270 | "value": "" 271 | }, { 272 | "id": "d60e017f-f8e0-4659-a44a-d6b836355747", 273 | "comment": "", 274 | "command": "click", 275 | "target": "id=btnConfirm", 276 | "targets": [ 277 | ["id=btnConfirm", "id"], 278 | ["css=#btnConfirm", "css:finder"], 279 | ["xpath=//input[@id='btnConfirm']", "xpath:attributes"], 280 | ["xpath=//input[2]", "xpath:position"] 281 | ], 282 | "value": "" 283 | }, { 284 | "id": "f968cdd2-34b3-41a4-aa4d-acf5ff2f8a28", 285 | "comment": "", 286 | "command": "assertConfirmation", 287 | "target": "通过这门课一定能学会 web 自动化测试!", 288 | "targets": [], 289 | "value": "" 290 | }, { 291 | "id": "3ea58de5-bf6e-4f86-a0d2-af3640174b58", 292 | "comment": "", 293 | "command": "webdriverChooseCancelOnVisibleConfirmation", 294 | "target": "", 295 | "targets": [], 296 | "value": "" 297 | }, { 298 | "id": "95e9d608-9474-4469-bab6-1638f88065ec", 299 | "comment": "", 300 | "command": "verifyText", 301 | "target": "id=output", 302 | "targets": [ 303 | ["id=output", "id"], 304 | ["css=#output", "css:finder"], 305 | ["xpath=//p[@id='output']", "xpath:attributes"], 306 | ["xpath=//p", "xpath:position"], 307 | ["xpath=//p[contains(.,'已经取消!')]", "xpath:innerText"] 308 | ], 309 | "value": "已经取消!" 310 | }, { 311 | "id": "2eba709d-b230-49f4-9e4d-04b2f6d334aa", 312 | "comment": "弹出确认弹窗,点击确定按钮,并验证", 313 | "command": "", 314 | "target": "", 315 | "targets": [], 316 | "value": "" 317 | }, { 318 | "id": "3d3caefe-ee02-4b4a-91d3-512f3b1f1ad5", 319 | "comment": "", 320 | "command": "chooseOkOnNextConfirmation", 321 | "target": "", 322 | "targets": [], 323 | "value": "" 324 | }, { 325 | "id": "cc8991fa-2063-45b3-8172-c00183b24687", 326 | "comment": "", 327 | "command": "click", 328 | "target": "id=btnConfirm", 329 | "targets": [ 330 | ["id=btnConfirm", "id"], 331 | ["css=#btnConfirm", "css:finder"], 332 | ["xpath=//input[@id='btnConfirm']", "xpath:attributes"], 333 | ["xpath=//input[2]", "xpath:position"] 334 | ], 335 | "value": "" 336 | }, { 337 | "id": "74e3f6ac-4302-4ec5-b3b6-cbb7c42b8663", 338 | "comment": "", 339 | "command": "assertConfirmation", 340 | "target": "通过这门课一定能学会 web 自动化测试!", 341 | "targets": [], 342 | "value": "" 343 | }, { 344 | "id": "ff2afe4c-60b4-4c9f-bbe5-10032cce9d6b", 345 | "comment": "", 346 | "command": "webdriverChooseOkOnVisibleConfirmation", 347 | "target": "", 348 | "targets": [], 349 | "value": "" 350 | }, { 351 | "id": "64ea795d-871e-4dfa-9fe6-ee9f6ca7b5c0", 352 | "comment": "", 353 | "command": "verifyText", 354 | "target": "id=output", 355 | "targets": [ 356 | ["id=output", "id"], 357 | ["css=#output", "css:finder"], 358 | ["xpath=//p[@id='output']", "xpath:attributes"], 359 | ["xpath=//p", "xpath:position"], 360 | ["xpath=//p[contains(.,'已经确认。')]", "xpath:innerText"] 361 | ], 362 | "value": "已经确认。" 363 | }] 364 | }, { 365 | "id": "fdcfeea5-bc42-4de3-b04f-d1f8cc7bb2bc", 366 | "name": "4-window", 367 | "commands": [{ 368 | "id": "c5161004-282e-4d1f-9eff-3d7c43d8567a", 369 | "comment": "打开被测页面", 370 | "command": "", 371 | "target": "", 372 | "targets": [], 373 | "value": "" 374 | }, { 375 | "id": "18c6f98e-f9c6-4f47-9d52-26072a076d75", 376 | "comment": "", 377 | "command": "open", 378 | "target": "selenium/alert.html", 379 | "targets": [], 380 | "value": "" 381 | }, { 382 | "id": "8cc35d4c-4f3b-4d6d-8ce7-8cea183e4c2b", 383 | "comment": "弹出浏览器窗口,载入百度页面,验证页面标题", 384 | "command": "", 385 | "target": "", 386 | "targets": [], 387 | "value": "" 388 | }, { 389 | "id": "6a53c8ec-5b66-4dd0-b549-ccbebf685ca7", 390 | "comment": "", 391 | "command": "click", 392 | "target": "id=btnWindow", 393 | "targets": [ 394 | ["id=btnWindow", "id"], 395 | ["css=#btnWindow", "css:finder"], 396 | ["xpath=//input[@id='btnWindow']", "xpath:attributes"], 397 | ["xpath=//input[4]", "xpath:position"] 398 | ], 399 | "value": "", 400 | "opensWindow": true, 401 | "windowHandleName": "win1471", 402 | "windowTimeout": 2000 403 | }, { 404 | "id": "0019dcbb-34ba-4f92-ad64-897ebc7c34e2", 405 | "comment": "", 406 | "command": "selectWindow", 407 | "target": "handle=${win1471}", 408 | "targets": [], 409 | "value": "" 410 | }, { 411 | "id": "f861deb1-7acb-4151-ab62-95e758ee4b81", 412 | "comment": "", 413 | "command": "verifyTitle", 414 | "target": "百度一下,你就知道", 415 | "targets": [], 416 | "value": "" 417 | }] 418 | }], 419 | "suites": [{ 420 | "id": "f4b655ad-c5c2-41f6-8fa9-79ae5a3dadcb", 421 | "name": "Default Suite", 422 | "persistSession": false, 423 | "parallel": false, 424 | "timeout": 300, 425 | "tests": ["ab95c1af-c4a6-426e-b18e-a8579b81ba3f"] 426 | }], 427 | "urls": ["https://sample.wangding.co/selenium/alert.html", "https://sample.wangding.co/"], 428 | "plugins": [] 429 | } 430 | -------------------------------------------------------------------------------- /test/study-len-ddt.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "36a29063-0cb9-47a1-9396-b84259c013b2", 3 | "version": "2.0", 4 | "name": "51cto", 5 | "url": "https://edu.51cto.com/user/", 6 | "tests": [{ 7 | "id": "52ca7734-3b86-4fef-9a03-024e3d27139f", 8 | "name": "1-study-length", 9 | "commands": [{ 10 | "id": "77c1e5ee-f8ed-47d7-b0ec-dcc5a3999e7d", 11 | "comment": "", 12 | "command": "executeScript", 13 | "target": "return [\"user_id-12013438.html\", \"user_id-12013565.html\", \"user_id-12014332.html\", \"user_id-12019997.html\", \"user_id-12014343.html\", \"user_id-12014246.html\", \"user_id-12015479.html\", \"user_id-12017467.html\", \"user_id-12021004.html\", \"user_id-12016847.html\", \"user_id-12017915.html\", \"user_id-12018267.html\", \"user_id-12012840.html\", \"user_id-12019636.html\", \"user_id-12012463.html\", \"user_id-12022278.html\", \"user_id-12022422.html\", \"user_id-12017090.html\", \"user_id-12024390.html\", \"user_id-12022565.html\", \"user_id-12030031.html\", \"user_id-12019737.html\", \"user_id-12022513.html\", \"user_id-12023842.html\", \"user_id-11449294.html\", \"user_id-12111398.html\"]", 14 | "targets": [], 15 | "value": "stds" 16 | }, { 17 | "id": "e5a1b641-68e4-488f-b557-7b10ae608c9b", 18 | "comment": "", 19 | "command": "executeScript", 20 | "target": "return 0", 21 | "targets": [], 22 | "value": "totalLen" 23 | }, { 24 | "id": "9ddbfc51-5f83-4811-b355-055a40786a31", 25 | "comment": "", 26 | "command": "executeScript", 27 | "target": "return []", 28 | "targets": [], 29 | "value": "info" 30 | }, { 31 | "id": "f7066df7-b169-4921-b385-b0b5a65fd3f9", 32 | "comment": "", 33 | "command": "forEach", 34 | "target": "stds", 35 | "targets": [], 36 | "value": "std" 37 | }, { 38 | "id": "299aaf05-e27c-4ef0-9b78-82db8a70710b", 39 | "comment": "", 40 | "command": "open", 41 | "target": "${std}", 42 | "targets": [], 43 | "value": "" 44 | }, { 45 | "id": "01915678-f536-4cd4-b706-5b29f61d469b", 46 | "comment": "", 47 | "command": "storeText", 48 | "target": "css=.mb5", 49 | "targets": [], 50 | "value": "name" 51 | }, { 52 | "id": "225b085b-28c9-4c3f-a4da-ec12d239996d", 53 | "comment": "", 54 | "command": "storeText", 55 | "target": "css=div.otherUserStudyInfo>div:first-child>h6", 56 | "targets": [], 57 | "value": "len" 58 | }, { 59 | "id": "f165208e-7835-405f-949b-7ee06bb8eea6", 60 | "comment": "", 61 | "command": "executeScript", 62 | "target": "${info}.push({'name': ${name}, 'len': ${len}}); return ${info}", 63 | "targets": [], 64 | "value": "info" 65 | }, { 66 | "id": "2072210b-370d-4fc0-919e-ed4973bbfd70", 67 | "comment": "", 68 | "command": "executeScript", 69 | "target": "return Number(${len}) + Number(${totalLen})", 70 | "targets": [], 71 | "value": "totalLen" 72 | }, { 73 | "id": "19f4ff39-88fa-43f1-a0f9-627daca2699e", 74 | "comment": "", 75 | "command": "end", 76 | "target": "", 77 | "targets": [], 78 | "value": "" 79 | }, { 80 | "id": "42636fdb-a0ef-4050-8431-04a69454f9c0", 81 | "comment": "", 82 | "command": "executeScript", 83 | "target": "return Number(${len}) + Number(${totalLen})", 84 | "targets": [], 85 | "value": "totalLen" 86 | }, { 87 | "id": "c6f1db3c-f2cd-4731-a293-6484d49e739a", 88 | "comment": "", 89 | "command": "executeScript", 90 | "target": "return ${totalLen}/${info}.length", 91 | "targets": [], 92 | "value": "avgLen" 93 | }, { 94 | "id": "21908d76-6717-4393-9614-9413a24484f8", 95 | "comment": "", 96 | "command": "echo", 97 | "target": "总学习时长:${totalLen}", 98 | "targets": [], 99 | "value": "" 100 | }, { 101 | "id": "fb96bd57-3b4d-45ae-94f4-d7e9440f1619", 102 | "comment": "", 103 | "command": "echo", 104 | "target": "平均学习时长:${avgLen}", 105 | "targets": [], 106 | "value": "" 107 | }, { 108 | "id": "18afd592-e17a-49df-93ac-a9d7b2556dbc", 109 | "comment": "", 110 | "command": "forEach", 111 | "target": "info", 112 | "targets": [], 113 | "value": "std" 114 | }, { 115 | "id": "746f8e55-3459-4c32-8e40-8146157fa523", 116 | "comment": "", 117 | "command": "if", 118 | "target": "${std.len} > ${avgLen}", 119 | "targets": [], 120 | "value": "" 121 | }, { 122 | "id": "450b0fa0-b2bb-4148-b4ff-ccb9ef544486", 123 | "comment": "", 124 | "command": "echo", 125 | "target": "${std.name} | ${std.len} | 合格", 126 | "targets": [], 127 | "value": "" 128 | }, { 129 | "id": "f196851b-7c05-40f6-8264-a4c03466a8de", 130 | "comment": "", 131 | "command": "else", 132 | "target": "", 133 | "targets": [], 134 | "value": "" 135 | }, { 136 | "id": "a5649c40-fb82-43d3-8444-4d2e4ede761e", 137 | "comment": "", 138 | "command": "echo", 139 | "target": "${std.name} | ${std.len} | 不合格", 140 | "targets": [], 141 | "value": "" 142 | }, { 143 | "id": "5233db19-c37d-42dd-8d91-19b988baffec", 144 | "comment": "", 145 | "command": "end", 146 | "target": "", 147 | "targets": [], 148 | "value": "" 149 | }, { 150 | "id": "dee31fdc-0c95-4ed1-b7e9-2268c847cdc6", 151 | "comment": "", 152 | "command": "end", 153 | "target": "", 154 | "targets": [], 155 | "value": "" 156 | }] 157 | }, { 158 | "id": "e106195b-dd2b-4e95-87af-e919cf760c9e", 159 | "name": "2-array-demo", 160 | "commands": [{ 161 | "id": "09b996cd-6fe7-4a94-98fd-c61fde1d769d", 162 | "comment": "", 163 | "command": "executeScript", 164 | "target": "return []", 165 | "targets": [], 166 | "value": "arr" 167 | }, { 168 | "id": "85abf229-3f25-4f32-9259-da40ff57fea8", 169 | "comment": "", 170 | "command": "executeScript", 171 | "target": "${arr}.push({'name': '娄瑛', 'len': '34'}); ${arr}.push({'name': '王顶', 'len': '3'});return ${arr};", 172 | "targets": [], 173 | "value": "arr" 174 | }, { 175 | "id": "92a1c050-dba4-46fd-bbbf-dffbe42f12ec", 176 | "comment": "", 177 | "command": "forEach", 178 | "target": "arr", 179 | "targets": [], 180 | "value": "std" 181 | }, { 182 | "id": "59cc68cd-d5cc-4472-be45-6c4445d90fbc", 183 | "comment": "", 184 | "command": "if", 185 | "target": "${std.len} > 10", 186 | "targets": [], 187 | "value": "" 188 | }, { 189 | "id": "69f28274-1b9b-407e-890a-e560f3a0e994", 190 | "comment": "", 191 | "command": "echo", 192 | "target": "${std.name} | ${std.len} | 合格", 193 | "targets": [], 194 | "value": "" 195 | }, { 196 | "id": "445ca26e-b95e-4c16-801e-92644dacea2c", 197 | "comment": "", 198 | "command": "else", 199 | "target": "", 200 | "targets": [], 201 | "value": "" 202 | }, { 203 | "id": "55f28ea5-e168-4bfb-bbc2-e4fcadcdaad3", 204 | "comment": "", 205 | "command": "echo", 206 | "target": "${std.name} | ${std.len} | 不合格", 207 | "targets": [], 208 | "value": "" 209 | }, { 210 | "id": "e638d77c-c70d-4784-9899-9caffa8b258d", 211 | "comment": "", 212 | "command": "end", 213 | "target": "", 214 | "targets": [], 215 | "value": "" 216 | }, { 217 | "id": "41233e0b-6ec0-4759-b6c0-58237311d2c9", 218 | "comment": "", 219 | "command": "end", 220 | "target": "", 221 | "targets": [], 222 | "value": "" 223 | }, { 224 | "id": "a0760f7e-1aca-43a0-8a62-94900efb54ae", 225 | "comment": "", 226 | "command": "executeScript", 227 | "target": "return ${arr}.length", 228 | "targets": [], 229 | "value": "len" 230 | }, { 231 | "id": "adef9e8b-403d-49b4-8a79-3b404532f4ca", 232 | "comment": "", 233 | "command": "echo", 234 | "target": "${len}", 235 | "targets": [], 236 | "value": "" 237 | }] 238 | }], 239 | "suites": [{ 240 | "id": "1ed61daa-0cce-42ab-a6b7-d9717c050f64", 241 | "name": "Default Suite", 242 | "persistSession": false, 243 | "parallel": false, 244 | "timeout": 300, 245 | "tests": ["52ca7734-3b86-4fef-9a03-024e3d27139f"] 246 | }], 247 | "urls": ["https://edu.51cto.com/user/"], 248 | "plugins": [] 249 | } -------------------------------------------------------------------------------- /test/sum.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "059302b0-270f-498d-8917-8ef3e6ffa8ba", 3 | "version": "2.0", 4 | "name": "sum", 5 | "url": "https://www.baidu.com", 6 | "tests": [{ 7 | "id": "d89cce02-cb52-44cb-a74c-0e5aeeedfabb", 8 | "name": "1-sum", 9 | "commands": [{ 10 | "id": "6bb484c2-49b7-4974-a357-7d02e8c10450", 11 | "comment": "", 12 | "command": "open", 13 | "target": "/", 14 | "targets": [], 15 | "value": "" 16 | }, { 17 | "id": "82681df8-7137-420f-8dec-9e027d29a0f1", 18 | "comment": "", 19 | "command": "store", 20 | "target": "1", 21 | "targets": [], 22 | "value": "x" 23 | }, { 24 | "id": "62e78423-ad35-47a2-9aa4-86dbd006f826", 25 | "comment": "", 26 | "command": "store", 27 | "target": "2", 28 | "targets": [], 29 | "value": "y" 30 | }, { 31 | "id": "0ffa7680-caed-40bf-9314-29adc222518f", 32 | "comment": "", 33 | "command": "executeScript", 34 | "target": "return Number(${x}) + Number(${y})", 35 | "targets": [], 36 | "value": "z" 37 | }, { 38 | "id": "a9f8e83e-e82c-4777-9901-0e69ed1cb787", 39 | "comment": "", 40 | "command": "echo", 41 | "target": "x + y = ${z}", 42 | "targets": [], 43 | "value": "" 44 | }, { 45 | "id": "0939eafa-a519-434d-911a-3023050e6169", 46 | "comment": "", 47 | "command": "executeScript", 48 | "target": "alert(\"x + y = \" + ${z})", 49 | "targets": [], 50 | "value": "" 51 | }] 52 | }], 53 | "suites": [{ 54 | "id": "eb3013a6-dbaa-4525-b913-6d06d4d9e423", 55 | "name": "Default Suite", 56 | "persistSession": false, 57 | "parallel": false, 58 | "timeout": 300, 59 | "tests": ["d89cce02-cb52-44cb-a74c-0e5aeeedfabb"] 60 | }], 61 | "urls": ["https://www.baidu.com/"], 62 | "plugins": [] 63 | } -------------------------------------------------------------------------------- /test/tools.side: -------------------------------------------------------------------------------- 1 | { 2 | "id": "5b4ae3f2-64d9-4ab0-895d-b18d511b4ac8", 3 | "version": "2.0", 4 | "name": "tools", 5 | "url": "http://tool.chinaz.com", 6 | "tests": [{ 7 | "id": "e964dbed-fdb1-4156-8702-865a94620614", 8 | "name": "link-test", 9 | "commands": [{ 10 | "id": "647b8de6-1977-4520-b262-5b03371d51a1", 11 | "comment": "", 12 | "command": "open", 13 | "target": "http://tool.chinaz.com", 14 | "targets": [], 15 | "value": "" 16 | }, { 17 | "id": "755a3ac8-a000-4745-bd64-5c4f379061a6", 18 | "comment": "测试域名 Whois 查询工具", 19 | "command": "", 20 | "target": "", 21 | "targets": [], 22 | "value": "" 23 | }, { 24 | "id": "cf9274ce-3b93-4421-8703-784a94e16139", 25 | "comment": "", 26 | "command": "click", 27 | "target": "linkText=WHOIS查询", 28 | "targets": [ 29 | ["linkText=WHOIS查询", "linkText"], 30 | ["css=.GMFocusBox:nth-child(5) .fl:nth-child(1) a:nth-child(1)", "css:finder"], 31 | ["xpath=(//a[contains(text(),'WHOIS查询')])[2]", "xpath:link"], 32 | ["xpath=(//a[contains(@href, '//whois.chinaz.com')])[3]", "xpath:href"], 33 | ["xpath=//div[5]/div/div/div/ul/li/p/a", "xpath:position"] 34 | ], 35 | "value": "", 36 | "opensWindow": true, 37 | "windowHandleName": "win163", 38 | "windowTimeout": 2000 39 | }, { 40 | "id": "36b45977-f3db-4435-8c21-c444cb840ed6", 41 | "comment": "", 42 | "command": "storeWindowHandle", 43 | "target": "root", 44 | "targets": [], 45 | "value": "" 46 | }, { 47 | "id": "07df484a-89e3-4d71-b765-9fb5149bd14c", 48 | "comment": "", 49 | "command": "selectWindow", 50 | "target": "handle=${win163}", 51 | "targets": [], 52 | "value": "" 53 | }, { 54 | "id": "ccb2d837-a08d-4b4e-b60e-4f799d0f769a", 55 | "comment": "", 56 | "command": "verifyTitle", 57 | "target": "域名Whois查询 - 站长之家", 58 | "targets": [], 59 | "value": "" 60 | }, { 61 | "id": "f053943f-145c-4b92-bee2-48ac302b22c6", 62 | "comment": "测试过期严明查询工具", 63 | "command": "", 64 | "target": "", 65 | "targets": [], 66 | "value": "" 67 | }, { 68 | "id": "dc84a3b3-ac3f-4ba0-aa4d-8d1215b96bd6", 69 | "comment": "", 70 | "command": "selectWindow", 71 | "target": "handle=${root}", 72 | "targets": [], 73 | "value": "" 74 | }, { 75 | "id": "323617ac-4ed5-4641-b31f-d7b0e5fb9a0c", 76 | "comment": "", 77 | "command": "click", 78 | "target": "linkText=过期域名查询", 79 | "targets": [ 80 | ["linkText=过期域名查询", "linkText"], 81 | ["css=.GMFocusBox:nth-child(5) .fl:nth-child(1) a:nth-child(3)", "css:finder"], 82 | ["xpath=(//a[contains(text(),'过期域名查询')])[2]", "xpath:link"], 83 | ["xpath=(//a[contains(@href, '//del.chinaz.com')])[2]", "xpath:href"], 84 | ["xpath=//div[5]/div/div/div/ul/li/p/a[3]", "xpath:position"] 85 | ], 86 | "value": "", 87 | "opensWindow": true, 88 | "windowHandleName": "win8532", 89 | "windowTimeout": 2000 90 | }, { 91 | "id": "64212cee-a3c0-4015-88b9-e0b8d75fdc59", 92 | "comment": "", 93 | "command": "selectWindow", 94 | "target": "handle=${win8532}", 95 | "targets": [], 96 | "value": "" 97 | }, { 98 | "id": "decfa538-abbe-4da5-808c-aaba7b4c5a8c", 99 | "comment": "", 100 | "command": "verifyTitle", 101 | "target": "过期域名查询 - 国际域名 - 站长工具", 102 | "targets": [], 103 | "value": "" 104 | }, { 105 | "id": "72d59ce5-2801-4a97-9056-375a7092aa64", 106 | "comment": "测试域名删除时间工具", 107 | "command": "", 108 | "target": "", 109 | "targets": [], 110 | "value": "" 111 | }, { 112 | "id": "d294bd86-8150-423e-9ffd-e9b8c3de361c", 113 | "comment": "", 114 | "command": "selectWindow", 115 | "target": "handle=${root}", 116 | "targets": [], 117 | "value": "" 118 | }, { 119 | "id": "7d1044e6-ccca-42e3-8086-88f54c424c28", 120 | "comment": "", 121 | "command": "click", 122 | "target": "linkText=域名删除时间", 123 | "targets": [ 124 | ["linkText=域名删除时间", "linkText"], 125 | ["css=.GMFocusBox:nth-child(5) .fl:nth-child(1) a:nth-child(5)", "css:finder"], 126 | ["xpath=//a[contains(text(),'域名删除时间')]", "xpath:link"], 127 | ["xpath=(//a[contains(@href, '//tool.chinaz.com/DomainDel/')])[2]", "xpath:href"], 128 | ["xpath=//div[5]/div/div/div/ul/li/p/a[5]", "xpath:position"], 129 | ["xpath=//a[contains(.,'域名删除时间')]", "xpath:innerText"] 130 | ], 131 | "value": "", 132 | "opensWindow": true, 133 | "windowHandleName": "win1344", 134 | "windowTimeout": 2000 135 | }, { 136 | "id": "9d6abe87-54c8-4c8f-97fa-13e1bc945846", 137 | "comment": "", 138 | "command": "selectWindow", 139 | "target": "handle=${win1344}", 140 | "targets": [], 141 | "value": "" 142 | }, { 143 | "id": "c590356b-ee11-4371-8bc9-e9f721e6a10c", 144 | "comment": "", 145 | "command": "verifyTitle", 146 | "target": "域名删除时间查询", 147 | "targets": [], 148 | "value": "" 149 | }, { 150 | "id": "f169157b-cf08-43b8-8b2b-1a9760a3a7bd", 151 | "comment": "测试删除域名归档工具", 152 | "command": "", 153 | "target": "", 154 | "targets": [], 155 | "value": "" 156 | }, { 157 | "id": "f8c0824a-f77a-4665-bc3b-9fe8b047cda3", 158 | "comment": "", 159 | "command": "selectWindow", 160 | "target": "handle=${root}", 161 | "targets": [], 162 | "value": "" 163 | }, { 164 | "id": "5199c4d7-d074-4c45-ae6c-72e76be39ee8", 165 | "comment": "", 166 | "command": "click", 167 | "target": "linkText=删除域名归档", 168 | "targets": [ 169 | ["linkText=删除域名归档", "linkText"], 170 | ["css=.GMFocusBox:nth-child(5) .fl:nth-child(1) a:nth-child(7)", "css:finder"], 171 | ["xpath=//a[contains(text(),'删除域名归档')]", "xpath:link"], 172 | ["xpath=//a[contains(@href, '//del.chinaz.com/type')]", "xpath:href"], 173 | ["xpath=//div[5]/div/div/div/ul/li/p/a[7]", "xpath:position"], 174 | ["xpath=//a[contains(.,'删除域名归档')]", "xpath:innerText"] 175 | ], 176 | "value": "", 177 | "opensWindow": true, 178 | "windowHandleName": "win8122", 179 | "windowTimeout": 2000 180 | }, { 181 | "id": "e951f5ce-5f47-4f90-bb68-049c721bc3c2", 182 | "comment": "", 183 | "command": "selectWindow", 184 | "target": "handle=${win8122}", 185 | "targets": [], 186 | "value": "" 187 | }, { 188 | "id": "5c9bfe4c-1dbf-4826-81b1-38de5dad2a0e", 189 | "comment": "", 190 | "command": "verifyTitle", 191 | "target": "2019-07-03 删除 有权重 的域名列表--删除域名分类列表", 192 | "targets": [], 193 | "value": "" 194 | }, { 195 | "id": "e12b6d33-e4c6-4c30-8ecc-4eaba469ed4b", 196 | "comment": "测试备案查询工具", 197 | "command": "", 198 | "target": "", 199 | "targets": [], 200 | "value": "" 201 | }, { 202 | "id": "67369cda-9d21-4445-bddd-cb967749aa40", 203 | "comment": "", 204 | "command": "selectWindow", 205 | "target": "handle=${root}", 206 | "targets": [], 207 | "value": "" 208 | }, { 209 | "id": "51772546-79f0-4e33-8b49-13a6991f91eb", 210 | "comment": "", 211 | "command": "click", 212 | "target": "linkText=备案查询", 213 | "targets": [ 214 | ["linkText=备案查询", "linkText"], 215 | ["css=.GMFocusBox:nth-child(5) .fl:nth-child(1) a:nth-child(6)", "css:finder"], 216 | ["xpath=(//a[contains(text(),'备案查询')])[3]", "xpath:link"], 217 | ["xpath=(//a[contains(@href, '//icp.chinaz.com')])[4]", "xpath:href"], 218 | ["xpath=//div[5]/div/div/div/ul/li/p/a[6]", "xpath:position"] 219 | ], 220 | "value": "", 221 | "opensWindow": true, 222 | "windowHandleName": "win5160", 223 | "windowTimeout": 2000 224 | }, { 225 | "id": "2a4b09d4-78e8-4dd0-b18e-d76d98c6b234", 226 | "comment": "", 227 | "command": "selectWindow", 228 | "target": "handle=${win5160}", 229 | "targets": [], 230 | "value": "" 231 | }, { 232 | "id": "ef31880d-6371-4ecf-8d03-6e94d58139f3", 233 | "comment": "", 234 | "command": "verifyTitle", 235 | "target": "ICP备案查询 - 站长工具", 236 | "targets": [], 237 | "value": "" 238 | }, { 239 | "id": "8f682be9-a3af-4b17-8eaa-b35ac0249888", 240 | "comment": "测试备案批量查询工具", 241 | "command": "", 242 | "target": "", 243 | "targets": [], 244 | "value": "" 245 | }, { 246 | "id": "a8a7d8f4-77ff-406b-9cf3-c9167c9e4217", 247 | "comment": "", 248 | "command": "selectWindow", 249 | "target": "handle=${root}", 250 | "targets": [], 251 | "value": "" 252 | }, { 253 | "id": "b13b74f7-3759-4ead-907a-97fb830f338f", 254 | "comment": "", 255 | "command": "click", 256 | "target": "linkText=备案批量查询", 257 | "targets": [ 258 | ["linkText=备案批量查询", "linkText"], 259 | ["css=.GMFocusBox:nth-child(5) .fl:nth-child(1) a:nth-child(8)", "css:finder"], 260 | ["xpath=//a[contains(text(),'备案批量查询')]", "xpath:link"], 261 | ["xpath=//a[contains(@href, '//icp.chinaz.com/searchs')]", "xpath:href"], 262 | ["xpath=//li/p/a[8]", "xpath:position"], 263 | ["xpath=//a[contains(.,'备案批量查询')]", "xpath:innerText"] 264 | ], 265 | "value": "", 266 | "opensWindow": true, 267 | "windowHandleName": "win106", 268 | "windowTimeout": 2000 269 | }, { 270 | "id": "545aba5a-445b-4a2a-9447-cb0409974705", 271 | "comment": "", 272 | "command": "selectWindow", 273 | "target": "handle=${win106}", 274 | "targets": [], 275 | "value": "" 276 | }, { 277 | "id": "f30325d7-f084-4717-97ab-c8d9581d626a", 278 | "comment": "", 279 | "command": "verifyTitle", 280 | "target": "批量查询 - 站长工具", 281 | "targets": [], 282 | "value": "" 283 | }] 284 | }], 285 | "suites": [{ 286 | "id": "0cbb2fb6-7072-4c28-8c20-fea2d8f9cee2", 287 | "name": "Default Suite", 288 | "persistSession": false, 289 | "parallel": false, 290 | "timeout": 300, 291 | "tests": ["e964dbed-fdb1-4156-8702-865a94620614"] 292 | }], 293 | "urls": ["http://tool.chinaz.com/"], 294 | "plugins": [] 295 | } --------------------------------------------------------------------------------