收藏 分享(赏)

WinRunner使用说明.pdf

上传人:精品资料 文档编号:11150378 上传时间:2020-02-09 格式:PDF 页数:92 大小:1.28MB
下载 相关 举报
WinRunner使用说明.pdf_第1页
第1页 / 共92页
WinRunner使用说明.pdf_第2页
第2页 / 共92页
WinRunner使用说明.pdf_第3页
第3页 / 共92页
WinRunner使用说明.pdf_第4页
第4页 / 共92页
WinRunner使用说明.pdf_第5页
第5页 / 共92页
点击查看更多>>
资源描述

1、 WinRunner 7.6 Tutorial Oldsidney3: http:/.tw/oldsidneyOldsidney f http:/.tw/oldsidney Table of Contents Welcome to the WinRunner Tutorial 4 1. WinRunnere 5 1.1 1 k z ) 5 1.2 WinRunner k 1.3 WinRunner P g 6 1.3.1 WinRunner 6 1.3.2 File 7 1.3.3 kTest 1.3.4 “pDebug 8 1.3.5 PUser 2. ! GUI Map 10 2.1 Wi

2、nRunner M Y GUI 10 2.2 GUI Spy A GUI 10 2.3 4 GUI Map T 13 2.3.1 GUI Map File per Test 13 2.3.2 Global GUI Map File 13 2.3.3 !1 P GUI Map File T 14 2.4 P RapidTest Script Wizard 14 3. c k 20 3.1 4 c T 20 3.1.1 Context Sensitive 20 3.1.2 Analog 20 3.2 c Context Sensitive T k 21 3.3 k 22 3.4 c Analog

3、T k 23 3.5 k 25 3.6 s k T 26 3.7 c H yp 28 4. Synchronize 30 4.1 H P 30 4.2 c k 32 4.3 M ! HW ! 34 4.4 MY 51 % 34 4.5 F 35 4.6 k i_ j T 36 5. GUI _ Checkpoint 38 5.1 _ GUI 5.2 y GUI _ 39 5.3 k 41 5.4 6B Flight Reservation k 44 5.5 y GUI _ H yp 46 - 2 - Oldsidney f http:/.tw/oldsidney 6. m_ 47 6.1 _

4、m 47 6.2 y m _ 48 6.3 _ j T 49 6.4 6B Flight Reservation k 50 6.5 y m _ Hy p 51 7. P TSL k 53 7.1 c k 53 7.2 Pf 3 Function Generator k f 54 7.3 k F T 55 7.4 tl_stepf 56 7.5 k “ p 56 7.6 6B Flight Reservation k 57 8. y z Data-Driven k 59 8.1 y zData-Driven k 59 8.2 | k z Data-Driven k 59 8.3 | F V 63

5、 8.4 regular expression k 64 8.5 T 65 8.6 k is T 66 8.7 y z H yp 67 9. 3_ Text checkpoint 69 9.1 V |3 9.2 _3 73 9.3 “p 74 9.4 6B Flight Reservation k 74 9.5 y 3 _ Hy p 76 10. y Q batch k 77 10.1 Q batch k 10.2 y Q k 77 10.3 6B Flight Reservation Q k 79 10.4 _ j Q k T 79 10.5 y Q k H yp 82 11. F k 83

6、 11.1 P g M H 83 11.2 GUI MapI GUI 84 11.3 9 GUIq GUI Map 87 11.4 P 2 Run wizard1 GUI Map 88 12. V ? 92 12.1 92 - 3 - Oldsidney f http:/.tw/oldsidney Welcome to the WinRunner Tutorial P WinRunner y m m| F P WinRunnery 1 kb ms 12 B F WinRunner = S -Flight ReservationT y i 1 k scriptb Flight Reservati

7、onS = Flight 4AaFlight 4B Flight 4A V 7 Flight 4B5 = B t defectb K F N m V WinRunner Mi| F / F F k Tb - 4 - Oldsidney f http:/.tw/oldsidney 1. WinRunnere K1 1 k z) WinRunner k WinRunner P g 1.1 1 k z ) L F V k F B k k d 7 O n HW b P k T - E ? TV k b P WinRunner VF k V i O y build P k kb WinRunner k

8、kB “ WinRunner _ S T o V WinRunner1 k y b P WinRunner F V L C?y Daily build k Night testb 1 k z ) y Fast WinRunner k 1 k y b V L Reliable WinRunner BQ k V M T V E kp b V Repeatable WinRunner V M kb V Programmable WinRunner V Z T k b “ -WinRunner-WinRunner n5 7 WinRunner Add-in Manager3 g b T BQ WinR

9、unner 7 3 g # wWhats New in WinRunnerx qb WinRunner Add-in ManagerA U F “ - V P Add-in y m i P Add-in h Add-in / OK fb - 6 - Oldsidney f http:/.tw/oldsidney / WinRunner 1.3.2 File 4 f 9a 7 a% i b NewCtrl+N y k OpenCtrl+O 7 k SaveCtrl+S %i k PrintCtrl+P u Test Properties ! k Test Results_ j k k T Hel

10、pShift+F1 q 1.3.3 kTest 4 f c a aT Run Mode ! T VerifyaDebugaUpdate T - 7 - Oldsidney f http:/.tw/oldsidney Click to Record in Context Sensitive 7 S Context Sensitive T c Run from TopV h 7 S Run from Arrow V lph) 7 S StopT c 1.3.4 “pDebug 4“p H f a Ta ! b Pause T Step Step Into i Add Watch9S jM Togg

11、le BreakpointF9 ! Break in FunctionCtrl+B ! f Delete All Breakpoints b“ 1.3.5 PUser 4 P 1 fb Click to Record in Context Sensitive 7 S Context Sensitive T c StopT c Insert Function for Object/Window Insert Function from Function Generator GUI Checkpoint for Object/Window GUI Checkpoint for Multiple O

12、bjects Bitmap Checkpoint for Object/Window Bitmap Checkpoint for Screen Area Default Database Checkpoint Synchronization Point for Object/Window Property - 8 - Oldsidney f http:/.tw/oldsidney Synchronization Point for Object/Window Bitmap Synchronization Point for Screen Area Bitmap Get Text from Ob

13、ject/Window Get Text from Screen Area - 9 - Oldsidney f http:/.tw/oldsidney 2. ! GUI Map K1 d WinRunner M Y GUI US P GUI Spy A GUI properties = GUI Map T P RapidTest Script Wizard i 3 k script 2.1 WinRunner M Y GUI B Windows Y 3 ga f alista F WinRunnert 3ga f Y GUI GUI objectb WinRunneriV t GUI phys

14、ical properties classalabelawidthaheightahandle enabled M Y GUI bWinRunner cK V F B O M GUIb WinRunner MY B OK f H: c f 3 g Open3 g GUI a class push_buttona f 3 S OK M YN f widthaheightahandle $ P b 2.2 GUI Spy A GUI WinRunner4B GUI Spy V _ j GUI t # WinRunner t MYN GUIb /| U S GUI Spy_ j Flight Res

15、ervationS 3 g GUI b 1. 7 Flight ReservationS 7 S - “ -WinRunner-Sample Applications-Flight 4A3 g 7 b - 10 - Oldsidney f http:/.tw/oldsidney 2. 7 WinRunner 7 S - “ -WinRunner-WinRunner T BQ WinRunner 7 3 g5 New Test T 7 3 g 5File-Newb 3. 7 GUI Spy Tools-GUI Spy 7 GUI Spy Hide WinRunnerb - 11 - Oldsid

16、ney f http:/.tw/oldsidney 4. _ j WinRunner MY OK f GUI Spy/ Spy f WinRunner Kl H F V A Flight Reservation 3 g | SM 3 g H F V A $ S GUI H GUI Spy9 A UN GUI b | SM OK f /P H Ctrl+F3 K Spy T F V A GUI SpyA U OK f b 5. _ j GUI SpyA U GUI SpyK A U OK f 3 g Login3 g O N OK f logic name OKb Recorded: F TSL

17、 WinRunner s OK f / b 3.1.2 Analog Analog T WinRunner 1 c SM E a S #o Tb L F Analog T c Flight Reservation 3 g / OK fT WinRunner 3 / TSL move_locator_track (1); SM mtype (“-“); / S Po mtype (“+“); b 7 S Po F TSL F ? C WinRunner e SM N SM E US P g M 5 Analog T c k | b yp k1: c SM H m q P Analog c Tb

18、5 P Context Sensitive c T 5 b / I n V F % P c T - 20 - Oldsidney f http:/.tw/oldsidney Context Sensitive T c Analog T c c B GUI c m u 1 c SM E 1 c S ME m q Fu | k B L F k c B GUI 9 c m u F V c V G 1 H M c T | W % b 3.2 c Context Sensitive T k / F Context Sensitive T cB k N k T Flight Reservation 7 B

19、3 b 1. 7 WinRunneriF GUI Map File 7 S - “ -WinRunner-WinRunner T BQ WinRunner 7 3 g5 New Test T 7 3 g 5File-Newb _ GUI Map File X F Tools-GUI Map Editor 7 GUI Map Editor View-GUI Files_ F flight4a.guib T flight4a.gui F File-Open | flight4a.gui / Open| b 2. 7 Flight Reservationi 7 S - “ -WinRunner-Sa

20、mple Applications-Flight 4A3 g 7 b Agent Name 3 3 Password mercury / OK f Flight Reservationb WinRunner Flight Reservation3 gv l = 3 g = V b# Anb 3. 7 S Context Sensitive T c k WinRunner Test-Record Context Sensitive fV C 7 S WinRunner c S #o b h iM Rec C f /Z V UC X Context Sensitive c T b WinRunne

21、r/Z “9 MV UC X c k b - 21 - Oldsidney f http:/.tw/oldsidney 4. 7 3| Flight Reservation File-Open Order Open Order3 g Order No.i O 3/ OKb 5. T c WinRunner Test-Stop Recording fT c k b 6. %i k File-Save f | k %i lesson3b i WinRunner “ c Z T7 B Z T%i lesson3 k b N “ c| c k # k Tb 3.3 k - F c Flight Res

22、ervation 7 k 7 WinRunner 3 / k F n WinRunner 3 TSL F 4 GUI # Z Tb F / T H WinRunner 3 menu_select_item 7b / | N k T B W% - 22 - Oldsidney f http:/.tw/oldsidney F B GUI WinRunner1 GUI | 3 Y GUI 3S 3 N 3 WinRunner logic nameb logic name V F k b F Order No. check box H WinRunner 3/ 7 7 Order No. Order

23、No.check box logic nameb F 6B 3 g T H WinRunner 1 k F B F k b F Flight Reservation3 g H WinRunner1 F / F 6B 3 g T H WinRunner1 3B set_window 7 T 7 b F 7 Open Order3 g H WinRunner 5 3/ 7 Fo H WinRunner 3 typeaobj_typea edit_type 7 b F Order No. 3 H WinRunner 3/ 7 3.4 c Analog T k / F Analog T cB k N

24、k T Flight Reservation.B3 bB 7 S F Context Sensitive T c SM K B / T | lesson3 k ? c/ b 5 File-Open 7 lesson3 k i O| ;SM K Bb 2. 7 S Context Sensitive T c k WinRunner Test-Record Context Sensitive fb - 23 - Oldsidney f http:/.tw/oldsidney 3. 7 . Flight Reservation File-Fax Order Fax Number 4155551234

25、b 4. Send Signature with order 5. Context Sensitive T / c L dS GUI S GUI B“ ? fB“ 5 FViV mapZ T| S GUI N B WinRunnerL S GUI 7 button_press | obj_mouse_click 7 b 1 |d S GUI S GUI W% h I WinRunner Users Guide Configuring the GUI Mapc b 6. F Global GUI Map File T / c k H c GUI - i cV 5WinRunner| b temp

26、orary GUI Map Fileb 7. cV V F2 M Context Sensitive Analog c T b 8. F Global GUI Map File T / c k H : _ GUI $ 9 temporary GUI Map Fileb F 7 WinRunner - h: |ib temporary GUI Map File GUI i b - 29 - Oldsidney f http:/.tw/oldsidney 4. Synchronize K1 H P y k is T 4.1 H P F k H k Q TY H WiB H y H T HW 91 b / T + V o | B 3 g 7 100% C f WinRunner B % H W s Tb HW 10 bL Y HW V WinRunner H W5 k V ? b L k V “ f F V / Z T % - 30 -

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 企业管理 > 管理学资料

本站链接:文库   一言   我酷   合作


客服QQ:2549714901微博号:道客多多官方知乎号:道客多多

经营许可证编号: 粤ICP备2021046453号世界地图

道客多多©版权所有2020-2025营业执照举报