Home

Rapise User Manual

image

Contents

1. tab Start Page LESI Manual Steps nmi x MS Paint Test Steplid Description Expected Result Sample Data 0 Step 1 User starts up the MS Paint Application The application loads with a blank F canvas T Step 2 User clicks the main Application menu SeS Application menu DoLClick 42 o Step 3 User clicks the New entry SeS New DoL Click 44 13 W Step 4 User clicks on Pencil ns SeS Pencil DoLClick 15 9 T Step 5 User clicks the Text tool A SeS Text DoLClick 14 16 i Step 6 clicks at 156 256 in the canvas w ra l SeS Simulated DoLClick 156 256 Click Save to make sure the updates are all saved locally Now before you can execute these tests you will need to Save them to Spira our web based test management system Step 4 Saving to Spira Click on the option to Save to Spira you will be asked to confirm the creation of the document folder in Spira that will hold the test files 2015 Inflectra Corporation Rapise User s Guide 165 E Create Test Repository in Spira Rapise will create a new folder in the selected Spira project to store the test script and associated files Local Repository Path C SpiraRepositon MS Paint Test TEH Remote Folder Root Folder MS Paint Test TC34 Click on Create and then the manual test will be saved to Spira You will see that this process adds the unique Spira test step IDs
2. E i Open ES Open Test from Spira MW Save As 1 Manual Steps Save W SavetoSpira Gy Web Services File 5 Playback Let s execute the test we just created First close Internet explorer Rapise will open a new instance of Internet Explorer to the correct url www libraryinformationsystem org when the test begins To execute the script press the Play button at the top middle of the Rapise window 2015 Inflectra Corporation Rapise User s Guide 21 i Play Executing After execution a screen like the one below will appear Each row represents a step in the test The rows with green text are steps which passed whereas the rows with red text are the steps which failed Ri i apise 2 1 3 3 og ata Documents amples CreateNewBook Cre ok sstest Bi e File Test Rep nS CAP Data Do tARapise Samples n Merge Cells lt Collapse rogremDa cuments Rapise Samples ay a Xx x i g na Collar Plain Hierarchical d Save Layout P Expand Export Export Choose im xcel toPDF A Reset Layout Columns a GH Start Pege B CresteNewBook js B CreateNewBook user is i CreateNewBook_2014 09 04_11 47 p x we Test gt wd Reports Drag a column header here to group by that column Scripts Type Start Name Status Browser Comment Iteration B CreateNewBook js 8 CreateNewBook objec o u f 4 ms a a B CresteNewBook user j Assert 11 47 13 659 Usernam
3. in c T R ye y R 4 7 B Save As ity Spira Properties es Level 1 Minimal E S d k Helpindex s Spira Dashbo Save Record Learn Pla x Iptions Findin Help E Save to Spira cg Web Services SP Files V About Activatior Test Files Cad Start Page S Spira Dashboard B UibUserjs gt LibIE r gt a Libinfragistics fileOverview gt wal bava This is a first place to include and test user defined libraries and extensions gt eal LibManaged gt a LibMSOffice gt ga LibQt gt a LibSeSintegrar ee i LibSyncfusion fileOverview T LibTelenik User library for CustomListboxControl an LibUl oma 4 a LibUser var Wins2CustomLastboxControl B Gbuser js gt cal LibVerifyRules gt eal LibWebService gt a LibWpf a LaibActvex siib Se Dbect Tree LibActivexXC1j tings C j actions actionName SetiItemValu DeAction function String itemName Number value pt 6 var item this findItemByName itemName af nuil icem 4 Analyze CustomListboxControl in Spy Launch CustomControlApp and open Spy Using the Accessible option in the Spy tool spy on the CustomListboxControl It is easy to see that CustomListboxControl has the following accessibility tree ROLE SYSTEM WINDOW top node contains ROLE_SYSTEM _ LIST child that in its turn may contain zero to many ROLE_SYSTEM_SLIDER nodes 2015 Inflectra Corporation sis Rapise User Manual
4. Way 2 Type the Code The Global object contains methods that are available to all scripts Select the TwoDialogs js file in the Test Files view of the Rapise main page Double click the file name to open it in the main editing window of Rapise You will see the generated script from the recording session from earlier steps in this sample Place the cursor in the main editing window and click on the first line after function Test Now type Global As soon as you type the Rapise will give you a drop down list of all the available methods available in the Global object iy Do nalogPlay path left te iy Do ppActvate ttle i DolrvokeTest pathT oT es iy Do KIBuh amelprocessN ar ig Dok IB yPid pid DoLaunch emdLline wrk iy DoMessagebox prompt b i DolcrT esseracting iy DoUerT extract ing iy DoSendbeys kevs Select the DoLaunch cmdLine wrkD member and hit the Enter key Now your script contains the line Global DoLaunch You need to correct the references to the command line Global DoLaunch C Program Files Inflectra Rapise Samples TwoDialogs TwoDialogs exe Way 3 Drag the Action from the Objects Tree You may drag the method template from the Object Tree view Expand the Global node and select the DoLaunch action in it Drag the node into the proper position inside the script source 2015 Inflectra Corporation Rapise User s Guide 31 ay Open Open Test
5. ro OnValueChange return true return false g_customEventHandlers push CustomRegisterAccessibleEvent 2015 Inflectra Corporation Rapise User s Guide 323 8 Record and Playback Now you are ready to record and playback a test Just remember that in Select an Application to Record dialog you need to uncheck Auto library and select User and Generic libraries Library Description Iw User Default user defined librat Console Console Application W Generic Genericlibrary contains basic definitions for most comm MS Office Microsoft Office with Accessiility 9 CustomControlTest This tutorial is complemented by a ready test CustomControlTest which you can examine and run Open CustomControlTest in Rapise and place contents of CustomLibrary file into LipbUser js file C Program Files Inflectra Rapise Engine Lib Lib User Lib User js LibUser js is added to CustomControlTest so you can populate it with CustomLibrary code right in Rapise Test Files i E Test e Application C CustomControl4pp exe wal Lib CustomLibrary 3 LibUser js Ft wal Reports Scripts CustomControalTest s CustomControllestabjects js CustomContrallestuser s Tip It is possible to launch CustomControlApp right from Rapise just double click on CustomControlApp exe in the project tree 10 Wrap up Implementation Sequence Full support for a custom object requires support for Record Learn and Playback Let s go over cre
6. gt A Key 4 Ja Object Mgr iP amp Search Help GB Start Page YW Save As 2 Spira Properties Level 1 Minimal we ii HelpIndex 5 Spira Dashboard Save 3 a i Record Learn Play z _ Options Findin Help 9 e n SP py Files W Saveto Spira cy Web Services 2 About Activation File Recording amp Learning Debugging Executing Tools Help That will bring up the Open Test from SpiraTest dialog box 2015 Inflectra Corporation 184 Rapise User Manual d Load Synchronize Server hitelocalhost spera Propect Library Infoomation System Test Case Folders Library Information System 0B Functional Tests CI Regression Tesis 9 Scenano Tests aj Corman Tests Repository Path Local Path read only A The first thing you will need to do is choose the SpiraTest project from the dropdown list Once you have done that the system will display the list of test case folders in this project Once you have chosen the project you need to expand the test case folders in SpiraTest and choose the existing Test Case that you want to open 2015 Inflectra Corporation Rapise User s Guide 185 Load Synchronize Server kite ocalhost spara Propect Library Information Sysiem Tesi Case Folders 4 Library infdormaton System Regression Tesis Po 9 Scenaro Tests aj Cormon Tests Marne Repository Path AJ Ability to cresie new book CreeieN
7. int exitCode SeSMbUnitHelper TestExecute j Assert AreEqual 0 exitCode Templates SeSMbunit vsi will install a template for Visual Studio called SeSMbUnitTests The template includes the appropriate using statements and a blank test method You can insert additional 2015 Inflectra Corporation 134 Rapise User Manual SeSMbuUnitTest methods by right clicking in the editor in Visual Studio and selecting Insert Snippet gt SeSMbUnitTest The following code will be added SeSMbUnitTest Insert path to sstest file which must be run public void TestSeS int exitCode SeSMbUnitHelper TestExecute j Assert AreEqual 0 exitCode You ll need to specify the file path Samples There is a sample dll you can run in MbUnit From the Rapise directory you ll find it at Extensions Unit Testing MBUnit SeSMb Unit SeSSamples Mb Unit bin Debug SeSSamplesMb Unit alll See Also e MbUnit and related documentation can be found at www mbunit com 2 4 6 3 3 NUnit Purpose SeSNUnit vsi is a visual studio installer packaged with Rapise It facilitates calling Rapise tests from NUnit tests Usage Installation e You will need Visual Studio and NUnit to use SeSNUnit NUnit is available at http www nunit org index php p download e To install SeSNUnit open the following directory C Program Files Inflectra Rapise Extensions Unit Testing NUnit SeSNUnit e Double click SeSNUnit vsi The Visual Studio Co
8. Use Analog Recording with relative positioning to identify and locate the object Use Simulated Object Recording to track the actions required and at the positions required Look for custom libraries that support the technology being used by the AUT Build your own custom library to support the technology in use by the AUT 0 Finally if it will not be worth developing automated tests for this AUT use the manual recording feature to speed up your manual test writing O ON OO OO fF W 2 4 1 1 Recording Purpose Recording is the name given to having Rapise track your interactions with an application Value The actions you take in using the AUT are observed by Rapise and are transformed into a script javascript which you can execute using the Play button The script can be extended and modified to Suit Special purposes Usage The Recording Activity RA Dialog is opened when you start recording using the Record Learn button When the Recording Activity dialog appears Rapise has connected to your AUT and is ready to monitor and record your interactions You ll find instructions here or look at one of the examples TwoDialogs Sample Record and Playback or Mobile Sample 2015 Inflectra Corporation Rapise User Manual Recording Activity for Inflectra Library Information System Windows Internet Explorer You ll notice that the RA dialog has a grid As you interact with the AUT your actions will be lis
9. e Logout this will log you out of the instance of Spira listed in the Connection Info section Connection Info This section will display the URL login and corresponding local repository folder for the current Spira instance if one has been set Connection Info Spira URL http localhost spira User Name administrator Spira Folder Local Folder C Temp RapiseTests Edit Connection Settings To change the current connection or to set one up if this is a new installation of Rapise click on the Edit Connection Settings button That will display the Connection Settings dialog box Spira Connection Settings HRL doctor spirateam User Name administrator Password Default Repository Path C Temp RapiseT ests Token read only You can then change the current Spira connection using this dialog box See the topic on Spira Integration for more details Automation Hosts This section will display a list of the automation hosts available in the currently selected Spira project 2015 Inflectra Corporation Rapise User s Guide 259 Automation Hosts Select host Create Host for this Machine An automation host is a notional computer that Spira uses to assign specific test sets to specific computers running Rapise This allows you to schedule tests to run on different computers remotely When you first connect to Spira it will not Know which automation host the current machine matches
10. 2015 Inflectra Corporation Rapise User s Guide 155 Now you can start testing your mobile Android application 2 Using the Mobile Spy The Mobile Spy will let you view an application running on the mobile device take a snapshot of its screen and then interactively inspect the objects in the application being tested This is a useful first step to make sure that Rapise recognizes the application and has access to the objects in the user interface To start the Mobile Spy open the Spy icon on the main Test ribbon and select the Mobile option and the Mobile Spy will be displayed in Discovery Mode Now click the Get Snapshot button to display the application specified in the mobile profile on the screen eu Disconnect CJ PageSource Select Profile android nexus7 Discovery Mode G oe Go To Url Edit Profiles Select Context NATIVE_APP et Sna ot Ctri G R Test Locator Connection Device Profile Context 4 0 android widget FrameLayout 0 0800 1205 2 0 4 0 android view View 0 0 800 1205 Automation gt 0 android widget LinearLayout 0 33 300 103 id AUTAndroid gt 1 androtd widget FrameLayout 0 108 800 1205 IndexinParent i ta lame oid widget Frame Login Title d widget FrameLayout 0 0 DropDownSelect XPath android widget FrameLayout 1 4 Layout Buttons Height 1205 Width 30 Bars X 0 0 Views 4 Properties checKable able ble famicard saliara In the example abo
11. Displaying 1 1 out of 1 incident s linked to this test run 7aa Sea results by Test Run Clear Filters cee mee Any Any Any Any v N gt Edit oO Did not display the correct text Incident Fred Bloggs 31 Mar 2015 IN 000071 edit Show 15 w rows per page k lt Displaying page a Fa of 1 gt Congratulations You have now successfully executed a manual test using Rapise See Also e Manual Testing e Manual Recording e Manual Playback 2 4 Features Rapise is a feature rich test automation system however all the features have been designed to make test automation as easy as possible Most of the features of Rapise fall into one of five categories 1 Building test scripts with little or no manual scripting 2 Reading and interpreting results and reports 3 Additional features and capabilities for sophisticated testing 4 Writing more involved or complicated tests using scripting 5 Extending Rapise to learn new or extended libraries of capabilities Depending on the application set being tested not all of these features are necessarily needed for every situation 2015 Inflectra Corporation Rapise User Manual For each feature this document describes 1 The reason you might use a given feature 2 Asummary of the basic value of the feature 3 An overview of how the feature works from the perspective of using it 4 At least one useful sample that demonstr
12. Microsoft Tai Le Oblique Times New Roman Tunga Vrinda Shonar Bangla Microsoft Yi Batti ahoma AaBbCc Xx z2z 012345 Cancel e Color This lets you change the current color used in the various annotations 2015 Inflectra Corporation Rapise User s Guide 207 Available Colors COBE O COBB Ei in sie mi m m j Si eee im ii Ej S ii LIEU Bj IS mim im Tj Nnnn E UOUE EAE EBEE Ne E mim Ti mm IDOI E OREDO UO M Standard Colors JIE REO Recent Colors Advanced e Line Width This lets you change the current line width used in the various annotations Image Editor Footer The footer of the Drawing Tools provides the following options e Scale this changes the zoom of the current window allowing you to more easily view small large images e Accept this accepts the current image and inserts it into the test case test step or test run that was being edited 2 59 12 Incident Logging Screenshot 2015 Inflectra Corporation 28 Rapise User Manual s New Incident G _ coj E s lel Save Details Description Name This is a new incident Description B Z U A Arial A710 7 AY Sas was trying to create s new book in the system and it disolayed an error message ii Ii t W Type Bug bg Detected By Fred Bloggs v Owned By None Priority None
13. Reload Refresh group contents Use it for filter groups IsFilterGroup is set to True in group properties e g for Report group Create Sub Test Launch Create Sub Test dialog e Remove from Test Remove the selected grouping from the test This does not delete included files from your hard disk e Remove All from Disk Remove all files included into the selected grouping from your hard disk Context Menu File Right click on a file to see Open Open Externally Rernmove from Test Del Remove from Disk Open Open the file in Rapise Open Externally Open the file using associated program E g if a Notepad is registered in Windows to open TXT files then TXT file will be opened by Notepad Remove from Test Remove the file from your test This does not delete the file from your hard disk Remove from Disk Remove the file from your test and hard drive Filter Groups Filter groups read its contents from disk according to specified path and wildcard You may setup a filter group by editing group properties 2015 Inflectra Corporation 270 Rapise User Manual Properties y E Misc Filter ath Reports Filtersildcard trp lFiterGroup True Name Reports lsFilterGroup true if directory should show the list of all tiles matching Filterwildcand belonging to FilterPath e FilterPath Root path to f
14. Sample Application AUTAndroid e C Users Public Documents Rapise Samples UsingMobile AUT AUTAndroid we supply the sample application as both a compiled apk binary and an Android Studio Java project with source code See Also e Technologies Mobile Testing for instructions on preparing your environment for mobile testing including instructions for installing the necessary prerequisites and configuring the various third party components that Rapise uses to connect to the device Manual Testing Purpose Manual testing is used for situations where automated testing does not make sense This may be due to technical reasons the application being tested does not have an API that lets tools such as Rapise interact with them or economic this part of the application is rarely used and the user interface is changing in each release However Rapise can help accelerate and optimize your manual testing as well Rapise lets you rapidly create manual tests 5x faster than creating them by hand It integrates with Spira for test management so you still have a central repository of version controlled test cases but Rapise allows you to edit them offline when you have no connection to Spira and also to execute them from within Rapise Usage To start manual testing simply create your test as normal using the New Test dialog box Then once the test has been created click on the Manual Steps icon in the Test ribbon and then you will be taken
15. See Also e To learn more about what the Script Recorder will change in your test script see Multiple Recordings 2 4 4 4 Global Variables Purpose Global variables are variables that can be accessed anywhere in the script There are restrictions specific to Rapise as to where they may be placed in the test script These restrictions do not apply to any additional script files you write and then call from your test script Usage Define your global variables in Testlnit Because Rapise uses javascript you can initialize global variables inside of functions See the sample Testlnit below Puneriom Test Init number_of_visited_links 0 This variable becomes global war local yan S S a ihis warlable 16 local tor Mes r imik function The keyword var gives variables local scope A variable initialized without the keyword var will have global scope The Script Recorder knows about the following functions Test Testinit TestPrepare and TestFinish Do not declare global variables outside of one of the preceding four functions The Script Recorder alters the script each time it is run and may erase your changes See Also e See Making Multiple Recordings for details on what effect the script recorder will have on your test 2015 Inflectra Corporation 112 Rapise User Manual script e For details on the structure of the test script see Understanding the Script 2 4 4 5 Including other Files Purpose
16. Steps 1 Run the TwoDialogs sample AUT By default this will be located in C Users Public Documents Rapise Samples TwoDialogs TwoDialogs exe 2 Start Rapise and create a new test and call it TwoDialogsAnalogRelative 3 Press the Record Learn button in the toolbar of Rapise 4 When the Select an Application to Record dialog is displayed choose the TwoDialogs exe application Since we will not be using a library for this recording the library selection is irrelevant Press the Select button 5 The Recording Activity dialog will again be displayed with an empty grid NOTE this recording session is going o be a little different from previous sessions Previously we could interrupt our object related recording learning with other activities and because Rapise was recording activity only related the target application our recording or object learning would be unaffected However in analog recording Rapise is monitoring the mouse and keyboard for the entire system for all applications This means that if you answer an email in the middle of analog recording or log in to a Secure system all the steps including mouse movement keystrokes etc will all be recorded However note also that screen contents are not recorded by Rapise 6 If the TwoDialogs UI has been occluded bring it back to the front so you don t have to hunt for it during recording 7 When you re ready to record the session hit the Analog button on the Re
17. Truste E Tutorial Record and Playback Mozilla Fire 482 C Program Files amp 66 Mozilla Firefox firetoo e Windows Media Player C Program Files amp 6 Windows Media Playe TE XPRO Vonage C Program Files amp 6 4 PRO Vonage A PRO There are two sections to the SAR dialog In the bottom section you select which Rapise library will be used during the recording session Because we will be recording our interactions with Internet Explorer make sure that the Internet Explorer HTML library is checked No other libraries should be selected See below Library Description Auto Detect library automatically NET MET 1 7 2 0 3 0 3 5 with Accessility Internet Explorer HTML HTML OOM based recorder for Internet Explorer Firefox HTML HTML OOM based recorder for Mozilla Firefox Generic Genere libran contains basic definitions for most commo In the top section of the SAR dialog we choose which application to record Scroll down the available 2015 Inflectra Corporation Rapise User s Guide 15 applications and click once on Inflectra Library Information System so that it is highlighted Now press the Select button near the bottom right of the dialog Available Applications Path 4 C Program Files c86 Microsoft Office Office C Windows Sys WOW 64 rundll3 exe 085 C Windows Sys WOW 64 undll32 exe Adobe Photoshop CS3 Extended Untitled C Prog
18. When you record a test Rapise translates your actions into a script When you playback the test the script is executed Usage You can either run your script from the Command Line or you can play it back while Rapise is open 2015 Inflectra Corporation 100 Rapise User Manual described below 1 You will first need to open your test There is no need to have the AUT Application Under Test open Rapise will open the AUT before it begins execution of the test 2 Now press the play button at the top of the Rapise window D Play Executing 3 During test execution Rapise displays an execution monitor dialog box that lets the user see the progress of testing playback The dialog is only shown during test execution and can be turned off in the Options dialog The following is a screenshot of the test execution monitor Test Button I Ta 0 00 01 Fassed 1 Failed 0 Unresolved 0 Starting scenario Test _ Stoo Cirl Shifts F12 The user can pause or stop the test execution by clicking either the Pause or Stop button 4 When Rapise is done executing the test results will be displayed in a table The rows with green text are steps that passed the rows with red text are steps that failed The following is a screenshot of test results where every step passed ta Start Page Z CresieNewBook js Z CresleNewBook use js F CreateNewBook_20 HHIHH 1 47 bp Drag a column header here to grou programData Docume
19. e Press Try Action and Rapise will execute the action Comment Widgets Learn Ctrl 2 a Spy Ctri 5 Analog Ctri 4 Simulated Pause Transparent Last captured HIML Object http www google com search hl ens e Verify Press to open the Verify Object Properties dialog 2015 Inflectra Corporation 230 Rapise User Manual The Learn Shortcut Use to learn an object Place the mouse cursor over the object you wish to learn It should become highlighted with a purple box Press Ctrl 2 while the object is highlighted You will see a line added to the Recording Activity dialog signifying that the object was learned The Spy Button The Spy Button opens the Object Spy dialog The Object Spy dialog allows you to view the state of the objects in your program Viewing object state is called Object Spying The Object Spy dialog is described here Pick Object Use If the object you wish to learn is invisible covered by another object Pick Object is disabled for Web Application recording For mobile device testing Pick Object is the only way to record events 1 The Pick Object button will open the SeS Spy Dialog 2 Spy on the obstructing object Press Start Tracking mouse over the object press CTRL G 3 Select the item you wish to learn from the Tree section 4 Press the Learn Selected button The Pause Button The Pause Button on the RA dialog temporarily stops Recording
20. 1 android widget LinearLayout 715 33 800 108 1 android widget FrameLayout 0 108 800 1205 0 android widget LinearLayout 0 108 800 1205 0 android widget TextView 21 129 779 158 1 android widget EditText 21 158 773 216 2 android widget Text View 21 216 779 245 3 android widget EditT ext 21 245 779 303 4 android widget Button 21 303 123 367 5 android widget TextView 21 367 779 396 J Select Profile android nexus7 X Edit Profiles 4 Calculated Automation Id IndexInParent TagName Text Title XPath Layout Height Width y IN Properties checkable checked clickable enabled focusable focused scrollable selected text Recording Mode Select Context NATIVE_APP Context com inflectra autandroidid edit_usen 1 android widget Edt Text User Name a 1 android widget EditText 21 158 7 password android widget FrameLayout 1 lang 58 i Login Now click on some of the objects and choose Learn to add them to the object tree Once you are finished click on the Disconnect button You will see the events in the recording activity dialog Recording Activity for Device Object Data ea Leamed text TaN Leam Leam Leam edit _usemame edit password android widg home Leamed edit_usemame L e android widget Button Leamed home Cancel Finish Ctrl 3 _ Now click on the Finish button and you will be tak
21. 15 32 28 89 Assert Fail lo 4 Character read successiu 15 32 25 590 Assert g Pass 0 Letter site is 24 13 5 2 268 92 Assert Text e Font Name Calin Sa e22 Pass D a Character read successfu 153228093 Assert 3 Pass 0 4 Letter size is 12 1 32 26 93 Assert jest s Font Names Calibri Sizez Pass Oo 4 Character read successiu 1532 2635 Assert t Pass D a Letter sae 72 Ls 52 28 96 Assert Text t Font Names Calibri Szec Pass A CJ CAPregram Files 19 3 2 28 96 Test Passed Failed Fail Test Fail Q Total 9 Pass T Fail Info 0 The first row with a white background is used for Report Filtering The rows below that each represent a step in the test The rows with green text represent success the rows with red text represent failure You can reposition the columns by dragging and dropping the column names The Columns For displaying icons Name The test name Start The time the test step began executing Type Can be one of the following values Test Assert Message 2015 Inflectra Corporation 104 Rapise User Manual 2 4 3 1 e Comment Assertions and messages have associated comments They are displayed here e Status Whether the step passed failed or was merely informational Drag a column header here Drag a column header here to group by that column Use to order by the values in the chosen column The result of dragging the Status column over looks like this Status
22. AUTIOS AUTIOS lt AUTIOS Basic Send Login login data Mercury Mercury To Now click on some of the objects and choose Learn to add them to the object tree Once you are finished click on the Disconnect button You will see the events in the recording activity dialog 2015 Inflectra Corporation Rapise User s Guide 149 Recording Activity for Device Basic Contro L Leamed Basic Controls Button TextField Label Picker MessageLabel Leamed MessageLabel Usemame ear Leamed Usemame Password Leamed Password AUTOS Le Leamed AUTIOS Now click on the Finish button and you will be taken back to the test script with the iOS objects listed Object Tree A Start Page B iOS Testis Oo id n iB 3 f PEESEEETSE Script Steps FFFF FFF FF FFF 4 Object Tree C Users adam sandma is p c euii 5 function Test b JA Advanced Controls Webi z SeSConnectMobile b AUTIOS AUTIOS E eee ae A Basic Controls Button Te f f ssssss Recorded at Wednesday April 15 2015 1 45 26 PM V A M Mas Here Toh lo _ Recorded at Wednesday April 15 2015 1 48 01 PM MessageLabel MessageLab ca b Password Password E b Username Username 13 4 I Global 4 g load libraries Mobile bt E Android Android b Wl Database Database b 5 Global Global 17 gt ios fos b Navigator Navigator h O Nar Ma
23. How to Open Use the Test Files Dialog to open an excel file The excel file will be opened in a Spreadsheet Viewer in the Content View The Spreadsheet tab of the Ribbon will also open 2 5 37 Start Page Screenshot Start Page m x a Spiraleam Documentation A 2 vr Rapise Quick Start G Open Spira Dashboard CreateNewAuthor est Description apise Quick Sta 5 Use the dashboard to link tests to 4 Preparing Firefox for T test cases create and run test sets io aoa a demonstrates eee VET SSeS Ae Preparing Chrome for view automation hosts and more my y create new book manual test case d t for h iff tA yret ces_or Ceile Aa dite dein Je mplemented for http www libraryreference CreateNew Author V y i i y ow y 1 i EY ou way run i as with any browser by changing Shortcuts Browse Samples he Browser parameter Parameters Rij Create New Test Fetch Samples T z z oI Spira Properties gt Open Existing Test AdobeFlex3 Browser internet Explorer HTML Y Start Recording AdobeFlex4 Record SpiraTeam My Page Windows AnalogRecorder Title Internet Explorer CreateNewAuthor Project PR000001 CreateNewBook Test Folder TC000001 CrossBrowser Test aee TONMANNA DotNet20 EditExistinaAuthor EditExistinaBook FarPoint Java JavaSwT jQuery Ul Recent Tests Manaoed QtFrame work C ProgramData Documents Rapise Samples CreateNe
24. Organize New folder Documents library TwoDialogs rm Samples k J AdobeF f Analog WB Gosh 2 Name di DotNet b TwoDialogs di Extensii i TwoDialogs exe Java E d Library Manag d Sample e Sample m simulat b TwoDia d Using g Arrange by Folder File name Now you have the executable as a part of your test files set Test Files q 4 a Test b gal Reports b ea Scripts Test Files Settings Object Tree If you wish to launch twoDialogs exe once then just double click on it in the tree If you wish it to be launched every time the test starts then simply drag it from the tree into the source code Files E Test nam Reports 5 function Test a Scripts se TwoDialogs exe fj f pesess Recorded at Friday February 18 2011 2 55 27 Please enter your name Change text to chris S TwoDialogsTestjs WJ TwoDialogsTest_2011 02 18 15 01 trp lad Start Page PEPA PIENSE See PONE ae eee ee Press button OR SeS OK DoAction m Inad lihraries fenerie 1 2015 Inflectra Corporation ES Rapise User Manual The proper launch statement will be inserted function Test lobal DoLaunch Rapise Samples TwoDialogs TwoDialogs exe i 7 Recorded at Tuesday September 27 2011 4 06 15 PH f Please enter your name Change text to chris seS Please enter your name DoSetText chris Press button OR 5e5 OK DoAction
25. Rapise User Manual e Mouse Button Click Emulate Left mouse click for the item selected in Spy tree e Default Action Execute DoDefaultAction for given accessible object e Set Selection Perform accSelect using the option flags set in the corresponding checklist above Java Object This is the Spy dialog that is used for Java Swing AWT objects It is described in more detail in the Java Spy topic GY Start Tracking Ctri G m a lis j panelO java awtPanel E Primary a labelO java awtLabel Handle 90046 T textAreal iava awt TextArea Indexin Parent 0 L list1 fava awt List a E buttonl java awt Button aS i l a ablacsabaiscceiaair accessibleContert java awt Fanel AccessibleAWTPanedl Ed S advAwtC ontrals java awt Button alignment 05 checkbox ava awt Checkbox alignment 05 textField2 java awt TextField background java awt Colorfr 200 g 220 b 255 cchoice2 java awt Choice component componentCount 5 components Java awt Component cf40F5 s The Java Object section of the Spy dialog shows properties of the object that are visible through the Java Access Bridge interface Tree The spied upon object and its children are displayed here Properties Object fields and field values are displayed here Managed Object This is the Spy dialog that is used for Managed NET objects It is described in more detail in the Managed Spy topic 2015 Inflectra Corporation Rapise User s Guid
26. Using the dropdown list you can select one of the displayed automation hosts Automation Hosts Select host i Select host Windows Vista Host 2 Windows Vista Host 1 Windows amp Host That will tell Rapise that this local computer is in fact this Spira automation host Any test sets scheduled in Spira for this automation host will now be executed on this computer running Rapise lf you don t see the current automation host listed you can click on the Create Host for this Machine button to create a new automation host entry for the current computer Create Automation Host for this Machine Automation Host Name TARDIS Token TARDIS Description This screen lets you enter a display name Name system name Token and long description for a new automation host that Rapise will create in the current Spira project Click OK to confirm the new automation host 2015 Inflectra Corporation 20 Rapise User Manual Test Cases This section displays a list of test cases that are either created by the current Spira user or are assigned to the current Spira user Create From Spira Manual Test Test Cases My Assigned id Name Description Action Tooo0001 Ly Functional Tests C Tcoooooz R Ability to create new book Tests that the user can create a new book in the system C Tcooo003 Ry Ability to edit existing book Tests that the user can login view the details of a book and then if he
27. e Mobile Settings Dialog for information on setting up the different mobile profiles for the mobile devices you will be testing e Mobile Object Spy for information on how Rapise connects to the device and lets you view the objects in the application being tested e Technologies Mobile Testing for instructions on preparing your environment for mobile testing including instructions for installing the necessary prerequisites and configuring the various third party 2015 Inflectra Corporation 64 Rapise User Manual 2 3 8 components that Rapise uses to connect to the device o Mobile Testing iOS Setup the steps for setting up Xcode and the iOS SDK for testing iOS devices Tutorial Exploratory Testing Purpose Exploratory manual testing is used for situations where you have a new or changing application and the user interface is still evolving Traditional manual testing where you create a test case ahead of time define the prescriptive test steps and then assign it to the tester does not make sense in such cases The solution is to perform exploratory testing where you explore using the application at the same time as creating the test script The created test script can then be published to your test management system i e SpiraTest for future regression testing Rapise can help accelerate and optimize exploratory manual testing Rapise lets you walk through the application capturing your interactions as you use it rec
28. function my func number patient index string patient name patient index h toExponential x toFimed x toPrecision x toString radix valueO constructor MAX VALUE MIN_VALUE NEGATIVE_INFINITY POSITIVE_INFINITY toE xponentialls A eturms string The toExponentall method converts a number ir Code completion for variable names is useful when you have multiple variables or function parameters and need to type them quickly In this case Alt Space keyword combination will bring up a list of variables and functions starting with just typed keyword See Also e Source Editor 2015 Inflectra Corporation Rapise User s Guide 131 2 4 6 Unit Testing Purpose Unit Testing involves testing individual units of a piece of software to make sure they act as intended The units tested are usually functions or class methods Usage There are five ways that Rapise can help you Unit Test 1 Rapise methods support testing objects and methods in DLLs 2 Rapise can test ActiveX objects and their methods through their COM Interface 3 If you choose to write your Unit tests in a third party tool Rapise has a Command Line interface where you can access its functionality 4 Test results are written to a TAP file which allows integration with Unit Testing frameworks 5 Rapise tests can be invoked from MbUnit and NUnit tests 2 4 6 1 DLL Testing Purpose You can create
29. path i object name object class object _ role he i object name object class object role E i object name object class object role Ie 8 Press Ctrl 3 to end the recording Tdo 4 4 1 4 parat window text paratn window class Locationfath param window text parami window class Haran oh ect name param oh ject class paramiobject role paramiobject name paramiobject class ROLE SYSTEM WINDOW paramiobject name ifx T ontralBar zu paramiobject role 2 7 Technologies This section focuses on specific technologies supported by Rapise 2 7 1 Adobe Flex Purpose Rapise includes support for Adobe Flex applications executed e inside Adobe Flash Player in Internet Explorer or Firefox e and Adobe Integrated Runtime AIR Flex versions 3 and 4 are supported Usage To test Flex applications you must have Flex Builder installed Link your application with 2015 Inflectra Corporation Rapise User s Guide 293 FexAdapter swc part of Rapise and automation_agent swc and automation swce part of Flex Builder The compiler arguments for FlexBuilder 3 should look like inelude librarves C Program Piles Adobe Plex Builder 3 sdks 3 2 0 trameworks Lice automation agent swe C Program Files Adobe Flex Builder 3 sdks 3 2 0 frameworks libs automation swc C Program Files Inflectra Rapise Extensions Flex FlexAdapter bin FlexAdap
30. 2 3 5 Tutorial Testing Adobe Flex Applications Contents Introduction Prerequisites Create a Simple Flex Application Hello Flex Enable HelloFlex Application for Testing Link HelloFlex with Necessary Libraries Add HelloFlex to FlashPlayerTrust Record a Simple Test Execute the Test Using FlexLoader See Also Introduction 2015 Inflectra Corporation 32 Rapise User Manual After going through this tutorial you ll get a basic idea of how to test browser based Flex applications with Rapise Prerequisites This tutorial assumes that you have installed 1 Rapise 2 Adobe Flex Builder 3 http www adobe com products flash builder family html OR Adobe Flash Builder 4 http www adobe com products flash builder family htm Create a Simple Flex Application HelloFlex Let s start from creation of a very simple Flex application 1 Create home directory for the application C HelloHex You may create any other directory that is more suitable for you just do not forget to change corresponding paths used in this tutorial 2 Create main file of the application C HelloHlex HelloHex mxml Place the following code in it lt Vxml version MO nN encoding t uti euR lt mx Application xmins mx http www adobe com 2006 mxml VLEWSOUrceURL sro HelloPl x index him horizontalAlign center verticalAlign middle width 640 height 480 Wine aie lt 2 PCDATA L import mx controls Alert ii me OCE not lt m
31. 5 10 in Fill with color Simulated LClick 422 111 User clicks at 422 111 in Colors LCIlick 158 84 User clicks at 158 64 in Colors Tools LClick 45 82 User clicks at 45 82 in Tools Simulated LClick 336 99 User clicks at 336 69 in Tools LUlick af User clicks at 37 83 in Tools Text LClick 373 169 User clicks at 373 169 in Text Simulated LUlick 267 165 User clicks at 267 165 in Untitled Paint Serndk Hello Type Global Sendk ENTER Type wd wd ie 4 a WE r 8 wd i 1 Analog Ctrl 4 Analog Cil 4 amed a Cancel Cancel a Finish Ctrl 3 Finish Dreh Last captured SeS Simulated 1 Transparent Notice that the two clicks in the canvas were recorded as simulated objects Notice also that the two pairs of clicks in the tools and colors sections were recorded as LClick left click in Tools and Colors However there are no objects by these names To find out where these pseudo objects came from we need to look in the file MSPaint objects js the name will be the name you gave the test project The following excerpt from the MSPaint object js shows the start of the definition of the Colors object 2015 Inflectra Corporation 292 Rapise User Manual Var Saved script objects Pi eer ey locations I locator name Location location 4 location window name window class locator name location 7 window name window class
32. Any interacting you do with the AUT is ignored When you press the Pause Buiton the title of the button changes to Resume Press the Resume button to continue recording The Analog Button The Analog button begins Analog Recording Analog Recording tracks mouse movements keyboard inputs and clicks To end Analog Recording press CTRL Break The _Simulated Drop down Menu Recording activity for Google Windows Internet Explorer Object Action Data Comment i q wi 2 btn Rule Library _Simulated HIMLFlashObject Internet Explore HTML Object Internet Explor Y s panses an _ C a a Analog ctrle4 ai Eana if Finish Ctrl 3 Last captured HTML Object http www google com search Start Simulated Learn et Transparent An object can be learned if it matches a rule specified in the Recording Learning libraries available The drop down menu lists the possible rules for learning objects in the current application If you cannot learn an object with one rule try another in the list Create a Simulated Object only if the other more flexible alternatives have been exhausted Learning using a specific rule 1 Double click on a rule in the drop down list The button text should change to the text that you selected 2 Press the button 2 Select an object on the screen and make sure it is highlighted with a rectangle 3 Press Ctrl 2 to learn the o
33. EditText 21 245 779 303 4 android widget Button 21 303 123 367 5 android widget TextView 21 367 779 396 3 Select Profile Edit Profiles 4 Calculated Automaton id IndexInParent TagName Text Title XPath 4 Layout Height Widt x 4 Propertes checkable checked clickable enabled focusable focused scrollable selected texi android nexus7 Select Context Profile cominflectra autandroid id edit_User 1 android Widget Edit T ad 1 android widget EditText 21 158 7 android widget FrameLayout 1 ang Recording Mode NATIVE_APP Pop ve Heriel User Name Password Login Now click on some of the objects and choose Learn to add them to the object tree Once you are finished click on the Disconnect button You will see the events in the recording activity dialog 2015 Inflectra Corporation e2 Rapise User Manual Recording Activity for Device bjer Action Data ommi en Login Leamed text 1 edit_usemame an Leamed edit_usemame edit password Leam Leamed edit_password android widg Leam Login Leamed android widget Button i Leam Leamed home ca T e E h T i y Now click on the Finish button and you will be taken back to the test script with the Android objects listed R e w D H ES A Rapise 3 0 4 27 C Users adam sandman Documents My Rapise Tests Android Test 3 Te
34. Left 101 Name param object_name Role param object role Top Tre width 5 Window Class paramwindow class Window Hame param window text O Object ID OE E Recognition Class param object favor Ignore Object Name false Name OK Role ROLE SYSTEM WINDOW Text _ paramobject_name E Window 4 poa T I l LL nn 0 First notice that the OK button has four 4 locators defined When you have Rapise learn an object it must collect data about that object so that it can relocate it even if the application has moved on the screen and even if the application is in a different state of execution In order to accomplish this Rapise looks for all useful ways to uniquely identify the object As bad or perhaps worse than not being able to find an object would be to find the wrong object on the AUT Every time Rapise is required to locate this object it will first try to use the first locator If it fails to positively and uniquely match with that locator it will try the second and so on Rapise will not give up and declare failure until it has failed to identify with all available locators Second notice the ID entry in the Object section of the pane This is the name of the object from Rapise s perspective All Rapise names are available through the SeS function call Therefore if we 2015 Inflectra Corporation 288 Rapise User Manual want to refer to the OK object we will use SeS OK to refer to it
35. Once we have correctly identified the object all valid methods and properties can be accessed by using that object as the basis Thirdly notice in the main editor window of the Rapise that no code has been added When you identified the OK button all Rapise did was add the new object to the Object Tree It did not write any code in the javascript file 9 In the automated recorded section above you saw that when you pressed the OK button on the dialog Rapise recorded a function like this Ses OK DoAction This time you will use the established name of the OK button object but do something a little more interesting than its default action to demonstrate how to use Rapise 10 Move the cursor into the editor part of the Rapise and make sure you are editing the file called TwoDialogsLearn js At the moment this file still looks something like this HHHFHHE Script Steps FHHFFHHEEEE HEEFT function Test g_load_libraries Generic Between the open and close brace add the following command SeS OK DoClick Hit the Play button and watch what happens The click will register as a command to the object and it will perform the action on the object While we have the context of this situation let s complicate it just a little more to illustrate the intricacy as well as the flexibility of Rapise and SeS There is a method whose names looks interesting DoLButtonDown If we were to invoke DoLButtonD
36. Rapise User s Guide 195 Ability to create new book 1 Ability to edit existing book Ability to create new author Basic Manuel Scnphing Mode Rapise supports multiple testing methodologies Select one to be used for newly created test cre ay lf there is already a test case in Spira that has not already been linked to Rapise then you can simply select that test case which will display any existing manual test steps that exist 2015 Inflectra Corporation 196 Rapise User Manual RA Create or Open Test Server http doctor spirateam Library Information System Test Cases New Finder Ea Functional Tests Yl Ability to create new book Ability to edit existing book Ability to create new author Ability to edit existing author Ability to reassign book to diferent author el al Renreesinm Tecta Description Expected Result User opens up Intemet Explorer a The browser loads the login w User logs in to application User taken to main menu scre 1 Ie Spey Eoy Basic Manual Scripting Mode Rapise supports multiple testing methodologies Select one to be used for newly created test Create Locally Create from Spira If this is the test case you want to associate the new Rapise test with then simply click
37. S Sampleblaster abjects s Sampleblaster users SamplesRegressianset js All tests in this tree are independent We use the Sample Master to manage all the tests from a single environment Using Sub Tests for a Cross browser testing See Cross Browser Sub Test Features e Sub test may have its own nested sub tests For example in the parent test contains reference to CrossBrowser subtest having IE and Firefox subtests inside 2015 Inflectra Corporation Rapise User s Guide iat T Test Reports CE samples y AnalogRecorder sstest ly CrossBrowser sstest ie ad Reports Scripts i Firefox sstest Fj ij IE sstest e Sub test options are available from the Tag property in the Properties window Test ml Reports Ebel Samples m AnalogRecorder sstest m CrossBrowser sstest ll Dothet20 sstest Test Files Object Tree Settings pE E Advanced E Tag TAAdminsw rappers Sample BeantityS aved bje True CacheUbjects False Commandinterval 1000 CommandLine CustomS tings Collection herationsLount 1 Metadata T admin rappers S ample Methodology Basic ObjectLookupAter SOO ObjectLookup tter 10 ObjectsPath CrossBrowser_objects js Options e The following options are available in the context menu fore each of the sub tests Record ae Show Objects Delete 2015 Inflectra Corporation 192 Rapise User Manual Play Execute selecte
38. Screenshot 2015 Inflectra Corporation Rapise User s Guide 227 Micrazoft Al windows Script Host Version 5 7 Copyright C Microsoft Corporation All nights reserved Ses Player Starting Verbose level Library information found T Admink WrapperssEngine Lib Libadvanced AAC jslib a Purpose The Output View displays Rapise output The amount of output depends on the Verbosity Level How to Open The Output view is part of the Default Layout Writing to the Output View Use the global Log function to write to the Output View Widgets e The text box is a search box iy The icons from left to right are Find Next Entry 4 Copy Selected B Clear All Text O and Select All Text E 2 5 21 Properties Dialog Screenshot YEON Locators Object locators that can be used ta identify the object within AUT Purpose To display the properties of the object file or folder you last clicked on Objects are in the Object Tree Dialog and files folders are in the Test Files Dialog 2015 Inflectra Corporation 28 Rapise User Manual How to Open The Properties Dialog is part of the Default Layout 2 5 22 Recording Activity Dialog Screenshot Recording Activity for Inflectra Library Information System Windows Internet Explorer Pause Finish Ctrl 3 Purpose The Recording Activity Dialog is used for Recording Analog recording absolute and relative Object
39. System ROLE SYST H MENUBAR ROLE_SYSTEM_TITLEBAR CustomCo T Application ROLE_SYSTEM_MENUBA hildid CHILDID_ SELF CustomControlApp ROLE_SYSTEM_CL Vertical ROLE_SYSTEM_SCROLLBAR Honzontal ROLE_SYSTEM_SCROLLB Wit Custom ListboxtContral ROLE_SYSTEM_GRIP 0 A 83 105 Wicth 484 Height 262 C Users Public Documents Rapise Sample Agd 762 i ROLE_SYSTEM_WINDOW CustomListboxControl 5 Create Matcher Rule for CustomListboxControl With knowledge of CustomListboxControl accessibility tree we can create a matcher rule that will make CustomListboxControl recognizable by Rapise Write the following code into LibUser js Each matcher rule instance of SeSMatcherRule is a tree like structure that describes a particular GUI O O 5 ez lt O 2 m pe O a gt D gt O QO D 5 wn D D n pe x D O O D O _ F gt pe r n Q D h D Q O lt my D S O o O D Q Q 3 3 Q T 2015 Inflectra Corporation Rapise User s Guide sia and_rules rule t rule role save_to zero_to_many or_rules and_rules e Object type the string that uniquely identifies this matcher rule and designates type of the control e object_flavor visual type of the control it is used to show an appropriate icon in the Object Tree and to filter actions and properties in composite behavior patterns like in Adobe Flex see FlexA
40. a u ii 4 i E i 7 B CresteNewBook user j Assert 11 47 13 659 Username DoSetText librarian Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 13 862 Password DoSetText librarian Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 14 096 c amp l00 MainContent LoginUser LoginButton DoClick Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 14 517 Book Management DoClick Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 15 063 Create new book DoClick Pass intemmet Explorer HTML Returned Value true 0 Assert 11 47 15 609 Name DoSetText The Restaurant at the end ofth Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 15 812 Author DoSelect Agatha Christie Pass Internet Explorer HTML Returned Value true it Assert 11 47 16 015 Genre DoSeect Science Fiction Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 16 186 ctl0O0SMainContent btnSubmit DoClick Pass Internet Explorer HTML Returned Value true 0 Test Files Settings Object Tree Assert 11 47 16 654 Failure in Test Fail Internet Explorer HTML 0 Properties Test Fail cap eee Microsoft R Windows Script Host Version 5 8 ight C Microsoft Comoration All rights reserved SeS Player Starting Verbose level 1 Creating a locator Adobe Rex Adobe Flex Firefox library loaded Output Warnings Errors Find Results NUM inflectra Corporation Purpose The Report Viewer displays tes
41. android widget TextView 21 259 779 323 3 android widget TextView 21 324 779 388 4 android widget TextView 21 389 779 453 3 Select Profile Edit Profiles 4 Calculated Automation Id IndexInParent TagName Text Title XPath 4 Properties checkable checked clickable enabled focusable focused scrollable selected text SE I android nexus7 Recording Mode Select Context NATIVE_APP Profile androidid esxt 1 android widget TetView Login D android widget Text View 21 129 anaroid w idget FrameLayout 1 bank U an AUTAndroid Login DropDownSelect Buttons Bars Views We now want to record a click on one of the menu options simply highlight one of the menu entries e g Login Spy gla R Disconnect a CJ Page Source gt CE Go To Url Get Snapshot Learn Ctrl G Object Test Locator Connection Device android widget FrameLayout 0 0 800 1205 0 android view View 0 0 800 1205 0 android widget LinearLayout 0 33 800 108 1 android vadget FrameLayout 0 108 800 1205 0 android widget LinearLayout 0 108 800 1205 E 0 android widget LinearLayout 21 129 779 453 0 android widget ListView 21 129 779 453 0 android widget TextView 21 129 773 193 1 android widget TextView 21 194 779 258 2 android widget TextView 21 259 779 323 3 android widget TextView 21 324 779 388 4 and
42. button edit tree combo box menu etc 2015 Inflectra Corporation Rapise User s Guide 1 SimulatedObject This sample opens MS Paint and draws on its canvas It uses Simulated Objects and several related methods DoMouseMove X Y DoLButtonDown DoLButtonUp and DoSendKeys text SampleA TM This sample tests an MFC application You will also learn how to organize your test script in modular form how to launch the AUT from your test script and how to execute various actions on GUI controls UsingCustomStrings This sample demonstrates how to integrate Rapise tests with other tools using Custom Strings TestFinish is used to analyze and save test results For more details see Custom Strings UsingDatabase This example shows how you can use a relational SQL database to create Data Driven tests This script reads test case data from a spreadsheet ADO datasource to test Calculator UsingDLLHandlerManaged This sample shows how to unit test managed DLLs You ll see how to use methods CreateClassInstance and InvokeMember UsingDLLHandlerUnManaged This sample shows how to unit test unmanaged DLL code You ll learn how to register UserWrap Register and execute UserWrap ShellExecute a function UsinglmageCheckPoint This example shows how to create image checkpoints UsingInclude This sample demonstrates two ways to include external files functions 1 eval g_helper Include include a file
43. et Ohje Properties AA Step 8 A refinement on the launching of TwoDialogs exe To date we have operated on the assumption that the TwoDialogs sample program application is running If this situation remained the test script would require that the AUT be running before the script started That would require that the person running the test remembered where it resided To overcome this Rapise provides a way to have the script run the program AUT before beginning the test 2015 Inflectra Corporation 28 Rapise User Manual Rapise has an underlying scripting language based on JavaScript See Scripting This help system covers available scripting objects in detail from a practical perspective For the moment we want to simply take the shortest path to starting the application before attempting to run the test There are at least 3 ways of adding application launch code to your test Way 1 Drag The File from the Test Files view First switch to Test Files view Right click on Test folder and choose Add File s menu item Create File Create Spreadsheet Add File s New Group Reload Create Sub Test Remove from Test Del Remove All from Disk And select the location of the TwoDialogs exe normally it is c Program Files Inflectra Rapise Samples TwoDialogs TwoDialogs exe 2015 Inflectra Corporation Rapise User s Guide 20 R Select a file to add into test ERS
44. param name SetItemValue parseint value Set treme tparame nate to tvaluer an thistnamer N return i During recording process OnValueChange function captures progress bar change events and calls RegisterAction function that adds SetltemValue action to the test 7 GCustomListoboxControl Specific Accessibility Events What accessibility events are fired when a user changes the progress bar value You can use Spy to find out Launch CustomControlApp and open Spy window Spy on CustomListboxControl Choose Monitor Events 2015 Inflectra Corporation Rapise User s Guide 321 ROLE S STEM_ LIST Hw ND CustomListboul EH String UROLE_SYSTEM_ IndeslnParen O W String 2 ROLE_SYSTEM_ Location REC s 411 Y 328 EH String 3 ROLE_SYSTEM_ Mame EH String 4 ROLE_SYSTEM_ L Hole E State 0 gt Value Customl ae doq 264 ary ane e Cik essible0k AOLE_SYSTE Name CustomListbosC 411 328 484 2 True Highlight You will see Accessible Events dialog Skip Ignore Mouse Move Select an item in CustomControlApp and advance its progress bar using right key Accessible Events dialog will show you captured events 2015 Inflectra Corporation 322 Rapise User Manual Accessible Events Type Aac AY rid EVENT SYSTEM FOREGROUND AOLE SYSTEM WINDOW sizeable moveable focusable Ox001 ase EVENT OBJECT FOCUS AOLE_ SY STEM_CLIENT focusable Ox001 0a38 EVENT OBJECT FOCUS AOLE_ SY STE
45. 779 323 Height G 3 android widget TextView 21 324 779 388 Width 758 Bars 4 android widget TextView 21 389 779 453 X 21 Y 129 Views 4 Properties checkable false checked false clickable true enabled true focusable false focused false scrollable false selected false text Login We now want to record a click on one of the menu options simply highlight one of the menu entries e g Login 2015 Inflectra Corporation Rapise User s Guide et m y Si CJ Page Source py pe E Disconnect gt i Go To Url Get Snapshot Learn Ctrl G Object Test Locator Connection Device android widget FrameLayout 0 0 800 1205 0 android view View 0 0 800 1205 4 0 android widget LinearLayout 0 33 800 108 El 1 android widget FrameLayout 0 108 800 1205 0 android widget LinearLayout 0 108 800 1205 E 0 android widget LinearLayout 21 129 779 453 0 android widget ListView 21 129 779 453 0 android widget TextView 21 129 7 79 193 1 android widget TextView 21 194 779 258 2 android widget TextView 21 259 779 323 3 android widget TextView 21 324 779 388 4 android widget TextView 21 389 779 453 3 Select Profile I Edit Profiles 4 Calculated Automation ld IndexlInParent TagName Text Title XPath 4 Layout Height Width y 4 Properties checkable checked clickable enabled focusable focused scrollable selected tex
46. 8 Please follow the directions outlined in the box below User clicks on the Bold button Expected Result Sample Data B SeS Bold DoLClick 11 14 Actual Result Please enter the actual test result if it differs then click the appropriate button EWB Z U A Aral A10 AY My lial i c Add Attachment Log Incident fIN 71 Did not display the correct text Finally click on the Finish button and the results will be posted to Spira Step 8 Viewing the Results Now to view the results in Spira click on the Spira Dashboard item in the main Rapise Test ribbon Then under the My Created test cases click on the link for the test case you execute That will bring up the test case in Spira Now click on the Failed hyperlink in Spira and the new test run will be displayed Test Run MS Paint Test TR 000041 Overview Attachments Incidents v Details Release 1 0 0 0 Library SystemRelease1 3 Estimated Duration hours Tester Name Fred Bloggs v Oo Actual Duration Ca hours Test Set Execution Date 3 31 2015 1 54 11 PM Test Case TC000034 X Execution Status Failed Build None v Test Run Type Manual Web Browser Please Select Y Operating System Please Select n T iisa Fm s WV B z u 228 22ER taj egn A If you scroll down you can see the individual test steps that we
47. AWT SWING sissies ccc ieee cats cascade a was da cnn aa Sa deca viene 297 MOHE Tes WING ginena aaa aai 298 Moble TES HG 109 SET asi a a a a a tide 307 S gt EXtenSIDIIWY orse a N a a a 315 Muto rial CUSTOM LIB ALY isise cetsdecanetetecssstencectecancstededenchacccceetecdestes occ teewdctecuectdeelecdecebedeeclecceueeneenceceteskecunatceice 315 Index 325 2015 Inflectra Corporation Company amp Copyright 1 Company amp Copyright Rapise inflectraZ This documentation and the software it describes is the proprietary and copyrighted intellectual property of Inflectra Corporation All Rights Reserved 2015 Inflectra Corporation 6 Rapise User Manual 2 Rapise User s Guide 2 1 About this Guide The Rapise User s Guide is divided into four sections Getting Started Features Dialogs Views and Menus HowTos Getting Started The Getting Started section is for new Rapise users It has the following subsections 1 An Overview of Rapise what it s for and how to use it 2 Samples Index where the sample projects included with Rapise are described 3 Tutorial Windows Testing a step by step tutorial for creating your first test with Rapise using a Windows desktop application 4 Tutorial Web Testing a slightly more advanced tutorial in using Rapise to test a web page 5 Tutorial Testing REST Web Services a tutorial in using Rapise to test a RESTful web service API 6 Tutorial Testing Adobe
48. Android SDK you may already have it installed if you are doing Android development You can download it from https developer android com sak Once it has installed you will use the Android SDK Manager to download and install the necessary packages 2015 Inflectra Corporation 302 Rapise User Manual LA O O Android SDK Manager SDK Path Users elise brooks Downloads android sdk macosx Packages T Name AFI Rev Status v Tools L val Android SDK Tools 24 0 2 m Update available rev 24 1 Android SDK Platform tools 21 gg Update available rev 22 Android SDK Build tools Android SDK Build tools 22 0 1 21 1 2 Not installed E Installed Lal Android SOK Build tools 21 i J Not installed 4 Android SDK Build tools 21 1 Not installed L P Android SDK Build toals 21 0 2 Not installed l Android SDK Build tools 21 0 1 Not installed _ Android SDK Build toals 2l Not installed a Android SDK Build tools 20 Not installed Android SDK Build tools 19 1 Not installed l 4 Android SDK Build tools 19 0 3 Not installed val Android SDK Build tools 19 0 2 _ Not installed a Android SDK Build tools 19 0 1 Not installed ee ee Pe Be ee ee a l 4r _ Alan ee ae ae Show E Updates New Kl installed Select New or Updates Install packages Obsolete Deselect All Delete packages a qu Fetching URL https di ssl google com android repository sys img qoog
49. Assertion to the test script See Also e Recordin 2 4 12 Tests and Sub Tests The concept of Sub Test is an organic way to organize the whole work with Tests in organic way By having sub tests one may meet one of the following goals 1 Create multiple test scenarios working with same set of Objects and Functions 2 Organize different test scenarios into a single workspace 3 Use Sub test to make cross browser tests We will consider each of described goals separately The test containing the sub test s we will call base or parent test Make Multiple Test Scenarios with the Same Set of Objects In this case parent test contains all learned objects and user defined functions SubT est Scenariol using objects and functions from the Test subT est2 Scenario2 using objects and functions from the Test Objects User Functions For example the parent test may have objects User Name Password Sign On And function function Login username password 2015 Inflectra Corporation Rapise User s Guide 189 SubTest1 may be used to check login with valid Credentials SubTest1 js looks like FUnCr Pon Tece Login valiaguser valldpassword Now check that Login as ssuccessfull Tester Assert Login leads to welcome message Global DoWaitFor Welcome_User SubTest2 may be used to check login with invalid Credentials i e it is a fail test SubTest2 js looks like f
50. Browser Samples This displays a list of available Rapise samples Some samples are shipped with Rapise while others are provided from the online public repository e 9 The Fetch Samples button is used to download update additional samples from online public repository How to Open The Start Page opens automatically with Rapise This behavior can be modified in the Options dialog using the ShowStartPageOnStartup setting 2 5 38 Spira Dashboard Purpose This page displays information from the SpiraTest or SpiraTeam server that this instance of Rapise is connected to More details on using Rapise with either SpiraTest or SpiraTeam can be found in the separate Using Rapise with SpiraTest Guide A copy of this guide should be in the Start gt Programs menu created by the Rapise installer The dashboard displays information about the current Spira project including the associated test cases test sets and automation hosts Screenshot A typical Spira dashboard will look like the following 2015 Inflectra Corporation Rapise User s Guide 257 Tg Start Page s Spira Dashboard Intro Welcome to SpiraTeam You may Sign Up for free or use your existing SpiraTeam account Spira Login Sign Up Connection Info Automation Hosts Welcome fredbloggs Spira URL https Wdewcom spiraservice net Select host User Name fredbloggs z z a Tap F cee Ge Create Host for this Machine Anlo Logix g Local Folder c SpiraRepository Edit Con
51. Click on Disconnect to end your Spy session and close the Rapise Spy dialog You will now will be returned back to your test script 4 Recording and Playing a Test With the new Rapise mobile test script open click on the Record Learn button in Rapise and that will display the recording activity dialog 2015 Inflectra Corporation eo Rapise User Manual Recording Activity for Device Now click on the Pick Object button and the Rapise Spy will be displayed in Recording Mode m y pise S Spy gta R Disconnect Cy Page Source Select Profile android nexus7 gt Recording Mode Go Tour F Edit Profiles SelectContext NATIVEAPP Get Snapshot Learn Ctrl G Object S Test Locator Connection Device Profile Context android widget FrameLayout 0 0 800 1205 4 Calculated jac 0 android view View 0 0 800 1205 Automation 0 android widget LinearLayout 0 33 800 108 Id android idAext 1 ae El 1 android widget FrameLayout 0 108 800 1205 IndexInParent 0 0 android widget LinearLayout 0 108 800 1205 TagName android widget Text View E 0 android widget LinearLayout 21 129 779 453 Text Login E 0 android widget ListView 21 129 779 453 Title 0 android widget Text View 21 129 DropDownSelect 0 android vadget TextView 21 129 773 193 XPath android widget FrameLayout 1 lang 1 android widget TextView 21 194 779 258 a Layout Buttons 2 android widget TextView 21 259
52. Create from Spira If you want to create a new test case in Spira to use simply click New Test Case R Create New Test Case Test Case name Then enter the name of the new test case and click OK Once it has been created you can then select it in the test case list and click Create from Spira sometimes there is no existing folder inside Spira that makes sense to use In which case you can first use the New Folder button to create an empty folder that new test cases can be created in 2015 Inflectra Corporation Rapise User s Guide i R Create New Spira Folder Folder name Regardless of which option you choose before you click Create from Spira you have the choice of test methodology to use Currently there are two methodologies available in Rapise e Mobile Mobile Support this should only be selected for mobile device testing e Basic Manual Scripting Mode this should be used for all non mobile testing e g Web Desktop Web Services lf you do not plan on using Spira for managing your test scripts or you are not able to connect when you want to create the test you can click on the Create Locally to just create the test case locally see next section You can always save to Spira later on b Creating Locally If you choose the option to Create Locally the following dialog box is displayed Create New Test l Please specify the name of the new test Specify the folder where this test should
53. Eig Home View Text Cut d Calibri Bop Faste 11 T g ipbosrd Farti banoground When you click Finish to complete the recording Rapise will now display the list of populated manual test steps with the embedded screen captures i Start Page cE Manual Steps nmt IX o Ce ae eS ees Stepld Description Expected Result Sample Data i Step 1 User clicks at 37 11 in Application menu EEn SeS Application_menu DoLClick 37 11 Step 2 User clicks at 42 12 in Application menu SeS Application_menu DoLClick 42 m 12 Step 3 User clicks at 44 13 in New SeS New DoL Click 44 13 Cie M Step4 User clicks at 15 9 in Pencil a SeS Pencil Dol Click 15 9 step 5 User clicks at 14 16 in Text ry SeSiText Dol Click 14 16 wv Step 6 User clicks at 156 256 in sa SeS Simulated DoL Click 156 256 You will notice that the description of each test step will use the form User action at coordinates in object name and the expected result will include the screenshot of what the user was doing In addition the sample data will contains the equivalent Rapise automation code for reference This can be useful later if you decide to automate this test Step 3 Editing the Steps 2015 Inflectra Corporation Rapise User s Guide Typically you may want to add some additional
54. F11 Step into a function procedure Step Out Shift F11 Continue until the current procedure is exited e Step Over F10 Go to the next line in the current procedure function e Stop Debugger Shift F5 Stop executing the script and exit the debugger e Break F9 Create a breakpoint in the script at the cursor 2 5 01 Ribbon Manual screenshot Test Manual e Reload mA Add Step E View in Browser tb Release ia Record Screenshots ial Save Local 9X Remove Step w3 New Incident A Whole Window Save Execute Record a n Manual Manual With Cursor Spira Editor External Tools Playback Recording Purpose The Manual ribbon lets you record edit and play manual tests that have either been created in Rapise or have been downloaded from Spira Rapise provides powerful exploratory testing functionality that lets you rapidly create manual tests by simply clicking through the application rather than having to laboriously create test steps one at a time by hand These manual tests can then be either executed from within Rapise or saved to Spira so that they can be executed by any tester that has access to the Spira web interface In addition these manual steps can be used as the basis for test automation by linking specific test scenarios to manual test steps How to Open You can open the Manual ribbon by either clicking on the Manual Steps icon on the main Test ribbon or clicking on the ManualSteps rmt file in the Test Files t
55. Flexfdapter Suc wading Configuration File c Program Files Adobe Flex Builder d sdks7d 4 6fram works f lex conf ig xml C2 TempsHe lloFlexsHelloPlex swf 574228 hytes gt Co LlempsHe LloFlex gt Add HelloFlex to FlashPlayerTrust Adobe Flash Player has restricted security settings for SWFs opened from file system To enable testing of such SWFs their corresponding folders must be listed in FlashPlayerTrust directory Path to FlashPlayerTrust directory to enable testing for all users lt system gt Macromed Aash AashPlayertTrust to enable testing just for current user lt ApplicationData gt Macromedia Hash Player Security HashPlayerTrust on Vista this path looks like cUsers lt User Name gt AppData Roaming Macromedia Fash Player Security HashPlayerTrust To register your SWF just create a file with the name lt name of your SWF gt cfg and put it in this directory In the file write a path to SWF folder 2015 Inflectra Corporation 36 Rapise User Manual Note If you do not have FlashPlayerTrust directory in one of locations listed above then you will have to create missing directories yourself To register c HelloHlex HelloHex swf a create file lt ApplicationData gt Macromedia Hash Player Security HashPlayerTrust HelloHex cfg b add this to the file c AHelloFlex r C Oocuments and Sees ines tier File Edb Wew Faaite Tool Help Fd py back 7 gt 5 4 Search IE Folde
56. In addition you can click on the picture icon to add a screenshot or use one of the two buttons underneath e Add Attachment this lets you choose a file from your local system and attach to the test result e Log Incident this lets you log a bug incident that is connected to the test step e g if it failed and will display the New Incident dialog box 2015 Inflectra Corporation 212 Rapise User Manual Minimized Playback Dialog Executing Ability to create new book Step 1 of 6 Please follow the directions outlined in the box below User opens up Internet Explorer and enters application URL hitp www libraryintormationsystem com beta Expected Result The browser loads the login web page Sample Data http x F Actual Result Please enter the actual test result if it differs then click the appropriate button pikti EWB Z U A aia Ao AY Y Haa Add Attachment Log Incident Sometimes you want to be able to reduce the amount of space taken up by the testing dialog box so that you can view the application and the test steps on the same screen at the same time To make this easier if you click on the Minimize gt icon in the top right of the dialog box it will change the manual playback dialog to the mini version show above You can click on the icon again to switch back to the standard player 2 5 14 Manual Test Editor Screenshot U Start Page Vy Manual Steps nmt A Abil
57. Paint from the list of running applications in select Application to Record dialog and then click Select to start recording As you click through the application the recording will display the list of steps and actions being captured 2015 Inflectra Corporation Rapise User s Guide 163 Recording Activity for Untitled Paint Object Action Data Comment Application LOlick 37 11 User clicks at 47 11 in Application menu Application LClic 4 12 User clicks at 42 12 in Application menu New ic 44134 User clicks at 44 13 in New Pencil i 15 5 User clicks at 15 9in Pencil Text i 14 16 User clicks at 14 16 in Text Simulated 156 256 User clicks at 156 256 in 7 Text yet Tene This is some Change text to This is some text Bold LO 11 14 User clicks at 11 14 in Bold Verify Ctrl 1 Learn Ctrl 2 Sam Spy Cirl 5 Pick Object _ Simulated Cancel In this example we created a new canvas chose the Pencil tool created a drawing using the pencil entered some text and then made it bold Ta aay ap fl el Text Tools Untitled Paint Eig Home View Text a dy Cut a Calibri jz Copy Paste i B F Ue Fanaa Farti badoground When you click Finish to complete the recording Rapise will now display the list of populated manual 2015 Inflectra Corporation 164 Rapise User Manua
58. Rapise Tests TwoDialogsTest TwoDialogsTest sstest Save the current Tesi B Onen Tet from Soira C Temp SmokeTest Smoke Testi SmokeTest sstest EE Open lest from Spin Save to Spire C Wsers adam sandman Documents My Rapise TestsAuto Test L Aute Test Lastest ae CA Users adam sandman Documents My Rapise Tests REST Test Projecti REST Test Projectsstest Save current Test As CA Temp Rapisetests ECF_AutoPropectBackup DO NWOT DELETE ECF_AutoProjectBackup DO NWOT DELETE sstest a Exit You can also open a test that is stored in SpiraTest our web based test management system instead of the local filesystem This is done by clicking on the Open Test from Spira option instead More details on using Rapise with SpiraTest can be found in the SpiraTest Integration section 2 6 2 Create a New Test There are two ways to Create a New Test in Rapise 1 From the main Application menu 2 From the Start Page 2015 Inflectra Corporation Rapise User s Guide 277 Open the Application Menu by clicking on the Tab at the top left of the Rapise window Rapise 2 1 3 33 CiUe adam sandman Document May Rapise Tests Spira New Test Spira Ne Recent Tests Recent Tests Ri Create From Spire Manual Test New Tez CUseradarmn sandman Documents My Rapise Tests Spira New Test Spira New Testl sstest gy New Tes C Usersadam sandman Documents My Rapise Tests Web Test 1 Web Test Lestest Open C Users adam sandiman Decuments My Rapise Testa
59. Select Context Get Snapshot Ctrl G Test Locator connection L ro 4 0 UlAApplication 0 20 320 480 4 Calculated s ed 4 gt 0 UlAWindow 0 0 320 480 Automation UlATarget local Target front Most Apy bo Verizon 3 04 PM a gt 1 UlAWindow 0 0 320 480 d AU ndexin Pare Q AUTiOS TagName UIA Text AUT P Tile 0 UlAApplication 0 201 320 480 Master Detail Table View XPath UlAApplication 1 Table view with items 4 Layout Height 46 Basic Controls h Button TextField Label Picker Switch Slider Image Advanced Controls WebView ScrollView TextView Search TabBar Pagel The Mobile Spy dialog shows a snapshot of the screen displayed on the connected Mobile device as well as the properties of the currently selected object You can selected the object either by clicking on the screen snapshot or the control hierarchy displayed to the left The properties displayed will depend on the type of mobile device being tested iOS vs Android Tree The spied upon object and its children are displayed here When you click on an object it will also be highlighted in the snapshot view to the right Properties Object fields and field values are displayed here Snapshot This displays a snapshot of what is displayed on the mobile device being tested The objects in the snapshot are clickable which allows you to visually select objects from the hierarchy Tools e Get Snapshot CTRL G This will connect to the mobile d
60. Test Val best factory LOoadrrombile Global GetrFullParh UsingCustomsStrings sstest Var BugiD test Gercustomestring Bugib Var TestibD test GeLlcusrtomstring Testip See Also e NameValue Collection Editor Dialog e There is a sample test called UsingCustomStrings 2 4 6 3 2 MbUnit Purpose SeSMbUnit vsi is a visual studio installer packaged with Rapise It facilitates calling Rapise tests from MbUnit tests Usage Installation e You will need Visual Studio MbUnit 3 and Gallio to use SeSMbUnit MbUnit is bundled with Gallio which is available at www qgallio org e To install SeSMbUnit open the following directory C Program Files Inflectra Rapise Extensions Unit Testing MBUnit SeSMbUnit e Double click SeSMbUnit vsi The Visual Studio Content Installer will appear Select the components for the language you will use and then click Next syntax Use both the MbUnit Framework and the SeSMbUnit namespaces using MbUnit Framework using SeSMpUNIE MbUnit uses the class attribute Test to identify test methods The corresponding attribute for SeSMbUnit is SeSMbUnitTest lt path to sstest gt Note that the SeSMbUnitTest attribute has a parameter the file path to the test that will be invoked The following example uses a test method simply as a wrapper for calling an sstest SeSMbUnitTest T Samples Cross Browser CrossBrowser sstest public void Test L Eandrirerox
61. Testing 187 Regular Expressions 112 Replace 202 231 Replace Text Dialog 231 Report 103 239 Filtering 105 199 Writing 104 Report Viewer 232 Re record 90 REST Web Services 137 REST Definition Editor 233 Tutorial REST Web Services 40 Restore Default Layout 278 Restore Layout 2 8 Ribbon Debugger 242 2015 Inflectra Corporation Index 327 Ribbon Edit 241 Report 239 U MESE AN Unit Testing 131 Spreadsheet 240 User File 108 Test 236 S E Variable View 270 variables query value 122 view values 270 Verbosity 125 Verify Object Properties Dialog 271 Sample Projects 9 Sample Tests 9 Screen Capture 253 Scripting 107 ScriptPath 254 Select an Application to Record Dialog 247 Views 6 192 SeS Spy Dialog 261 Settings View 250 Simulated Object 85 W Source Editor 254 Spira Dashboard 256 Warning View 273 SpiraTest Integration 174 Watch View 273 Spreadsheet Viewer 255 Web Service Testing 136 Spy 91 261 REST Web Services 137 Start Page 255 Sub Test 198 Syntax Checking 127 Syntax Errors 273 Syntax Highlighting 126 fT lt TAP 135 Test Anything Protocol 135 Test Entry Point 278 Test Files View 268 Test Function 108 278 Test Script 108 TestFinish Function 108 Testing DLLs 131 Testinit Function 108 TestPrepare Function 108 Text Editor 254 The Test Script 108 Tooltips 122 Tutorial 12 31 2015 Inflectra Corporation
62. The eval keyword lets you use external functions and data structures in your test script eval is a javascript reserved word Usage See the example below Unet ron Test eval g_helper Include Global GetFullPath myfunctions js See Also e Understanding the Script 2 4 4 6 Regular Expressions Purpose A regular expression is a sequence of characters that describes how to construct a set of strings It is composed of character literals and special characters Each character literal represents one single character Such as a b C 1 The special characters can represent a character many characters or a choice about how to select characters Special Characters Char Description Examples 2 Combines with whatever character sub a describes the set expression precedes it to represent 0 or 1 en many occurrences of that character sub expression i Combines with whatever character sub a describes the set expression precedes it to represent 0 or p a a aa aaa aaaa aaaaa more occurrences of that character sub aaaaa expression Combines with whatever character sub a describes the set expression precedes it to represent 1 or a aa aaa aaaa aaaaa aaaaa more occurrences of that character sub expression Any arbitrary character describes the set of all possible strings 2015 Inflectra Corporation Rapise User s Guide 113 Denotes
63. Type Manual Web Browser Please Select Y Operating System Please Select n T iisa Fm s WV B z u 228 22ER taj egn A If you scroll down you can see the individual test steps that were executed with the associated actual result including the captured screenshot 2015 Inflectra Corporation Rapise User s Guide Test Steps RSO000084 User starts up the MS The application loads with a blank TC000034 TS00D045 Paint Application canvas RS000085 User clicks the main EIR SeS TCo00034 TS000046 Application menu Application_menu DoLClick 42 12 RSOO0G86 User clicks the New SeS New DoLClick 44 13 TCO00034 TS000047 entry ee mee RSOO0087 User clicks on Pencil laf SeS Pencil DoLClick 15 8 TC000034 TS00D048 RSOGOO8S User clicks the Text A SeS Text DoLClick 14 16 TC0D0034 TSc0Da4e RS000089 User clicks st 156 SeSi Simulsated Dol Click TC000034 TS000050 256 in the canvss 156 256 RS000090 Enters text This is This is some text SeS Text1 CoSetText This I6 44 TS000051 Failed with the text deing illegible some text is some textir Vy wave n poy i a a ome A cae a 2 P TEs sound fel gt View Incidents RSOOIG9 User clicks on the C SeS Bold DoLClick 11 14 TCO0O034 TS000052 Not Run Bold button If you click on the Incidents tab you can also
64. and click the Play button to start the Appium server 2015 Inflectra Corporation 304 Rapise User Manual gt Starting Node Server gt info Welcome to Appium v1 3 4 REV c c 9a85fbd68 0cdb6fc3d66d038allebe22 ete gt info Appium REST http interface listener started on 127 0 0 1 4723 gt into debug Non default server args Paddress 127 0 0 1 logNoColors true plattomName Android plationmVersion 18 automationName Appium gt info Console LogLevel debug Once that is installed you will then need to install the Android SDK you may already have it installed if you are doing Android development You can download it from https developer android com sdk Once it has installed you will use the Android SDK Manager to download and install the necessary packages 2015 Inflectra Corporation Rapise User s Guide 305 Android SOK Manager Packages Tools SDK Path C Program Files x86 Android android sdk Packages ig Name F ev Status E LS Tools Android SDK Tools Installed F Android SDK Platform tools Installed F 4 Android SDK Build tools Installed Ela Android SDK Build toals 7 Not installed E 4 Android SDK Build tools 2 Not installed Android SDK Build tools J T Not installed a 3 Android 5 1 1 API 22 E ne Documentation for Android SDK 2 E Installed iq SDK Platform i Installed E i Samples for SDK i E Installed E Andro
65. any defined object in the AUT s Ul Rapise will create a simulated object to represent the action Value Not all objects on a screen are standard or can be recognized by the libraries loaded Some are compound objects consisting of two or more individual objects that work together to deliver a Ul effect 2015 Inflectra Corporation s Rapise User Manual or behaviour Simulated objects fill in the blanks to allow Rapise to cause an event outside the normal set of objects See Also e Recording Activity Dialog e Sample Tests The SimulatedObject sample e Deal with a Simulated Object 2 4 1 5 Object Libraries Purpose Object libraries define what objects and interactions Rapise understands during Recording and Learning Most Object Libraries are specific to an application or a set of applications Usage Rapise comes with several different object libraries 1 Auto 2 Core Technologies 0OO0O0O0O0OOO OO 00 0 OO Generic Internet Explorer HTML Firefox HTML Java Java SWT Managed Ul Automation Qt Framework Adobe Flex AIR Active X Web Services User Advanced Accessibility Console 3 Mobile Libraries O O Android via Appium iOS via Applium 4 Widget Toolkits 0oOoO00 0000 DOM GWT DOM GWT Ext DOM SmartGWT DOM YUI DOM jQuery Ul HTML 5 DevExpress Infragistics 2015 Inflectra Corporation Rapise User s Guide o Telerik o ActiveX ComponentOne o Syn
66. at runtime Normally to refer to an object you use the SeS function SeS 0b49 To override locator parameters specify the new value in the function call In the following example we over ride the object_name parameter for object 9 SeS 0bj9 object_name regex You may want to change a parameter value for every locator object in the program For instance perhaps the url of the webpage has changed Use the global variable g_locatorparams as in the following example Function Test 2015 Inflectra Corporation Rapise User s Guide 103 Here we use direct parameter overriding Seo Oni urls attest 7 evant T e BoA CE ron gt ses 00e y Vuri hitter neesdgr DoAction And this is equivalent to above SeS MLIT DOAcEIOn Seal p72 se DoAction see Also e Object Learning e Playback 2 4 3 Automated Reporting Purpose Each time you playback a test Rapise automatically generates a report detailing the steps of the test the data values used and the outcome of each step Usage Execute your test using the instructions here When the test is complete the Report Tab will appear in the Ribbon and a report file ending in trp will open in the Content View It will look like this Drag a column header here to group by that column H Name Start ype Comment Status Iteratior wa E i E y z Ao Character read successiy 15 32 28 89 Assert T Pass 0 FF E Letter siTe i 44
67. breakpoint the debugging related menus and views will appear e The Debugging tab of the Ribbon e The Watch View and Variable Call Stack View The following screenshot shows the placement of Debugging related functionality in Rapise 2015 Inflectra Corporation 122 Rapise User Manual G Start Page B WebTest1js J Script Steps sFsssstssseese function Test N 4 y 31009 var success Database DoAttach Provider SQLOLEDB 1 Integrated Security SSPI Persist Security Info False Initial Catal 0 User Functions 7 va m r Tester Assert Successfully Connected success fm User Variables var count Database GetRowCount Tester Message count Loop through the rows while Database DoSequential var projectid Detabase GetValue PROJECT ID var name Database GetValue NAME var description Database GetValue DESCRIPTION C Users adan sa Documents My Rapise Tests Web Test 1 Web Test 1 js Success Unee shea In the screenshot above you can see the Debugger buttons available in the ribbon at the top of the screen as well as the Variables and Watch sections in the lower pane See Also e You can use the External Debugger to debug your scripts as well 2 4 5 1 1 Tooltips Purpose Tooltips let you view a variable s value during debugging Usage 1 Put a breakpoint in the script at or near where you wish to investigat
68. correspond precisely and in the same order as the way they appeared in the Recording Activity dialog during recording Step 7 Run Play the recorded test script Press the Play button on the ribbon gt Flay or the toolbar E esuting As the script runs the Rapise window will be minimized to the taskbar and you will see the results of the script s activities on the TwoDialogs application window At the end of the script execution the Rapise window will be restored and the view will be of the report for the test C Users adam sandman Documents My Rapis i E 5 X a 5 aj Merge Cells Save Layout Collanc R Collapse sa Plain S Hierarchical 6 Expand Export Export Images to Excel o POF Reset Layout Object Tree tl O Start Page Fil TwoDialogsTestjs amp TwoDialogs Test_2014 09 04_12 09 rp x io n Ee Drag a column header here to group by that column Y Object Tree C Usersiadam sand 4 j Inflectra Rapse Two Dialogs Type Start a Name Status Comment Iteration gt OK Ox K i a z gt ati lease enter _ your name x gt l Gleba Message 12 09 20 795 Starting scenario Test Info 0 User Functions Assert 12 09 21 232 Please enter your name DoSetText chris Pass Returned Value true 0 User Variables Assert 12 09 21 466 OK DoAction pass Returned Value true 0 gt Test 12 09 21 466 TwoDialogsTest Pass Passed 2 Failed 0 Test Pass O Total 4 Pass 3 Fail 0 Info 1
69. e Mobile Testing Tutorial for a simple introduction to mobile device testing e Mobile Settings Dialog for information on setting up the different mobile profiles for the mobile devices you will be testing e Mobile Object Spy for information on how Rapise connects to the device and lets you view the objects in the application being tested e Mobile Testing iOS Setup the steps for setting up Xcode and the iOS SDK for testing iOS devices Mobile Testing iOS Setup Purpose This section describes how to setup Apple Xcode for developing and deploying iOS applications to a real or simulated device so that they can be tested by Rapise Make sure you have already installed XCode and the iOS SDK onto your Apple Mac as described in the Mobile Testing parent topic This topic describes the process for building and deploying the sample AUTIOS application that comes with Rapise however it can be used equally well with your in house application 1 Get the AUTIOS Source Code When you install Rapise the sample AUT for iOS AUTIOS is placed in the following folder on your PC C Users Public Documents Rapise Samples UsingMobile AUT AUTiOS You will need to copy this folder across onto your Mac so that you can open it in Xcode Once you have done that launch Xcode on the Mac 2015 Inflectra Corporation 308 Rapise User Manual k android sh Documents _ AUTIOS Documents ALTIOS SafariLauncher i Documents run webk
70. ee a lt _ lt al a 4 a Select a screen region to take snapshot or press ESC to abort If the MS Paint application is not in the foreground just click ESC on your keyboard to abort rearrange your windows and then try again Once you have selected the rectangle the drawing tools will display your selected image in the image editor aal Draw Tools Untitled Vo E lS File Edit Draw Help a Dga k omo AT A Tahoma wen 3 A at ya oe 4 VOO0G ee wi A s C7 Resize Ta gt Ti NOYd Q gt go path my Paste d Select Pr Brushes s h Rotate N I You can now use the annotation tools to add labels text and other items to explain the issue that you found 2015 Inflectra Corporation 170 Rapise User Manual ial Draw Tools Untitled File Edit Draw Help jee y e900 4T w P Tahoma 9 My woh 3 A wa Crop gt N Ay OOOGA tom d Resize KO OOD ana BF Q G 000 i i 2 Shapes wrong Scale 1 In the example above we added a red ellipse arrow and text to mark the issue that was seen in MS Paint Once you are happy with your image click Accept and the image will be included in the test Actual Result 5 Executing MS Paint Test MS Paint Test BZ UJA Aral A107 Aly My Baa ES ES Stea sei Boeie En Fail AJ Step 7 of 8 Please follow the directions outlined in the box below Enters text This
71. for SDK Installed Android TV ARM EABI w7a System Image Ai Installed 8 Android TV Intel x86 Atom System Image 2 Installed mE ARM EABI va System Image 2 ie Installed Show W Updates New Installed Select New or Updates Obsolete Deselect All I Done loading packages Make sure you have installed the Android ARM images using the SDK manager Then you can launch from the Windows Start Menu the Android Virtual Device AVD Manager 2015 Inflectra Corporation 54 Rapise User Manual T Android Virtual Device AVD Manager AVD Name Target Name Natfor API Le CPU ABI No AVO available Edit Repair Delete Details 4 A repairable Android Virtual Device An Android Virtual Device that failed to load Click Details to see the error B Create new Android Virtual Device AWD AVD Name AVD_for_Nexus_7 Google Device Nexus 7 7 02 1200 x 1920 xhdp eee Target Android 5 1 1 API Level 22 M CPU ABE ARM armeabi w7a x Keyboard 4 Hardware keyboard present Skin Front Camera Back Camera Memory Options Internal Storage SD Card Size F File Emulation Options Snapshot 2015 Inflectra Corporation Rapise User s Guide 55 You may need to modify the RAM Heap parameters to match that which is supported by the physical PC that you are using Once the device has been created Android Virtual Device A
72. from Spira a Run with Internal Debu gt E vate y da Object Mar amp A Search Help Gb Start Page Level 1 Minimal P ae y lelp Index s Spira Dash J Save As u Spira Properties 7 r Save Record Leam Play Options Find in Help s D Files About Activation MW SsvetoSpirs cy Web Services Gd Start Page B TwoDialogsTest js a TwoDialogs Test_2014 09 04_12 09 tep Object Tree id n B D Object Tree CAUsers adam san 4 2 Inflectra Rapise Two Dialog 222222222 Script Steps 22 2222222222 gt a OKOK a a function Test gt jabi Please_enter_your_na i 4 ca Global gi Database Database m n Recorded t Thursday 04 September 2014 12 06 24 wmm 4 s Global Global Please enter your name Change text to chris DoAnslogPlay SeS Please_ enter your name DoSetText chris Press button OK SeS OK DoAction Y DoAppActvate DoClick DolnvokeTest DokKilIByName DokiliByPid DoLaune g_load_libraries Generic Do bject D Daklane aeiia st Files Setti Object Tre Properties J Template call is inserted function Test mi Global DoLaunch f fa Recorded at Friday Feb Please enter your name Chang ses Please enter your name D Press button OK Now you need to correct the references to the command line Global DoLaunch C Program Files Inflectra Rapise Samples TwoDialogs TwoDialogs exe
73. is some text Expected Result Sample Data This is some text SeS Text1 DoSetText This is some textir Actual Result Please enter the actual test result if it differs then click the appropriate button WBZ U A Aral A07 Ay My Has Add Attachment Log Incident Now we can log an incident that is associated with this test failure Step 4 Logging the Incident Defect 2015 Inflectra Corporation Rapise User s Guide Click on the Log Incident button to display the new incident entry screen 5 New Incident E lzi Save 5 Details Description Name The text did not display correctly in MS Paint Description B Z U A Arial A30 7 AY Baal When entered some text it did not display correctly in MS Paint enre e eed 4 Type Bug Detected By Fred Bloggs Status New 4 Priority 2 High Severity None Detected Release 1 0 0 0 Library System Release 1 bd Notes B Z U A Arial v AP10 v AY aaa e s5 Choose the type of incident enter the name description priority detected release and any other required fields as defined by the workflow in the project that you are connected to Once you have entered in the various fields click the Save icon in the top left This will return you to the manual execution screen with the Incident ID IN xxx and name displayed at the bottom Now click on the Fa
74. jc praqram files xob yjavea rebybin stal Search disks Cancel 3 Choose target JVM in the list of available Java machines and press Install button 4 Verify that installation is successful 2015 Inflectra Corporation 208 Rapise User Manual 2 1 9 Mobile Testing Purpose Rapise lets you record and play automated tests against native applications on a variety of mobile devices using either Apple iOS or Android Rapise gives you the flexibility to test your applications on either real or simulated devices This section explains how to setup your environment for mobile testing once that is done you can the go to the section that explains the process for using Rapise to actually perform mobile testing Rapise uses a third party open source tool called Appium hitp appium io that is used to actually host the mobile devices and Rapise essentially communicates to the device wa Appium AS Mac OS X Windows Android Device Android Device Testing Architectures Rapise runs on Windows computers PC and Android devices both real and simulated can be tested on either an Apple Macintosh Mac computer or a PC Conversely iOS devices both real and simulated can only be tested on an Apple Macintosh Mac computer So this means that there are three separate possible testing environments that you may need to setup e Using a Mac to Host iOS Devices It will be necessary to install Appium and Apple Xcode
75. m Name Start Type Comment iteration Ee a H A EF Status Fal 2 mens Status Pass 7 items You can expand each item to see the corresponding report rows ki DLS Name Start ype Comment iteration a hame Start Type Comment Iteration 4 Letter size is 44 15 32 78 69 Assert 0 2 CAProgram Files 15372496 Test Fassed 7 Failed 1 Status Pass 7 items Drag the Status icon back to undo the sort Status 4 Mame Start Status ype Comment teration Be k I a E Status Fal 2 tems Status Pass 7 tems See Also e Report Filtering e The report output file is specified in the Settings Dialog Settings gt ReportPath e The Report tab of the Ribbon is used to alter the report layout Writing to the Report Purpose You can write to individual columns create columns and add data to the report Usage Writing to and Creating a Column Use Tester PushReportAtiribute or Tester SetReportAtiribute to set values in specific rows 2015 Inflectra Corporation Rapise User s Guide 105 Tester PopReportAttribute reverses the effect of Tester PushReportAttribute PushReportAtiribute lf columnName does not exist it will be added to the report SetReportAttribute lf columnName does not exist it will be added to the report Column co lumnName will be populated with value for rows created after this function call unless specified otherwise Data must be associated
76. map saved_script_objects OoourWND You can make changes to the body of any of the above functions and you can alter the initialization of g_load_libraries and saved_script_objects All other changes are unsafe During Recording the Script Recorder 1 Appends newly recorded actions to the Test function 2 Appends newly encountered objects to the saved_script_objects array 3 Updates g_load_libraries to reflect the library selections you made in the Select an Application to Record Dialog 4 Ignores and leaves intact the definitions of Testlnit TestFinish and TestPrepare For example suppose that you have the following code inside your script file External comment UNSAFE will be removed by recorder Another comment UNSAFE Yar external var UNSAFE Tune Lon TESEN comment SAFE War external var SAFE defines a local variable for function Test global_var value SAFE updates or defines a global variable SAFE everything inside this function will be kept intact after recording The parts of code marked UNSAFE will be deleted by the script recorder See Also e Settings Dialog e Select an Application to Record Dialog e Recording 2 4 1 7 Object Spy Purpose The Object Spy allows you to inspect an object s properties and state Value Many controls on User Interfaces are compound objects or there may be many instances of a similar object To be sure to selec
77. objects and invoke methods from both managed and unmanaged dlls Usage Rapise provides API calls to work with managed DLLs The Windows object WScript can be used with unmanaged DLLs Managed DLLs e Util lnvokeMember Invoke a class method in a managed DLL e Util CreateClassinstance Creates an instance of a class in a managed DLL e Util SetFieldValue Sets a field value in an object created with CreateClassInstance Unmanaged DLLs e WScript CreateObject DynamicWrapper Create a DynamicWrapper object The Register and ShellExecute methods of the DynamicWrapper object can be used to invoke DLL methods as in the following example var UserWrap WScript CreateObject DynamicWrapper UserWrapeReqistver shelisz diki She likxecurte oO l nsessal tee poorly UserWrape Register USERS2 Dib MessageboxaA Il HesuY rHs R L gt UserWrap MessageBoxA null elapsed Time Elapsed Osc 5 0L Test Samples There is a Samples folder in your Rapise directory There are two test samples that illustrate working with DLLs e UsingDLLHandlerManaged e UsingDLLHandlerUnManaged See Also 2015 Inflectra Corporation 132 Rapise User Manual e For more information on the WScript object see http msdn microsoft com en us library atbydy31 VS 85 aspx 2 4 6 2 COM Testing Support Purpose Microsoft s Component Object Model COM is a standard for communication between separately engineered softwa
78. onase E E E 127 Code Cone la gl emumeurmnttn ten ener etn A gy ete rae erie ser erent re ene ne ee ee trp ee eee nee ets 128 UIE TSS CNG oeisio a a aaa aa a a i aE AE EEA aAa 131 DIELS SS WG a a E a a anne cee reeeannee eee 131 COM Testing SUDO Ges is semite seinen tana E se mioeses meu renay eee aoe N 132 Integration With Third Pary TOONS soaps es a A E E 132 CUSO SNN S a sate E N A E EE EAN 132 NDUR a nak eh eee et ae rn ere nee eee ee Pe een ee ee et ee eee 133 INU eee eee ra ota E as ence ete cane vad sa uber A eseteecme seers 134 TAP ROSU activctinsSssanoiteead tiakipeonws tin E E tad eetbar tens ueaue eae ecto manana 135 WED SERVICE TOS UNG a ada Sheesh a A teased cba ce condensed aa a a ae 136 TESTING AEST WED SCI VIC CS ar E onsets a sunt aatidatsaecoreteaecniss 137 TWEStING SOAP Web Services ain ke aria sckae sei acces MG haus te ee iene seen e eeacciers aan cs ee mea eaueetin ns 141 Mobil Testing rsin ee einessessscans dacrecsececuseseassensates sta stsetsevesessacsbadecseussseapsscsbbensdeusdacsddenentenud ensveoredss 141 ADDIS IOG ane aves due nae eda a E E S Na 142 PRI OIG REEE AE E meat AEN E A A E TE A E E E E E E E E EA EA TE ERT 150 Manual TOS UNG si a e a aaa E E Rae a e aE aA 160 Manual Recordings E a a a meade 161 Manual Play DaCk ernn A a a 166 SelM WAM Ua TeSt encan AE E A 173 Spira r s INI Ol AtlO Mss a Eaa a a aaa a aea arei 174 CHECK DOIN a aae aradan aaaea aaa Aaaa aa aa aa ara aa aaa aaa a a aa aaa aa aia aaae
79. onto the Mac and connect to Appium over the network from Rapise running on your PC e Using a Mac to Host Android Devices It will be necessary to install Appium and Android Studio onto the Mac and connect to Appium over the network from Rapise running on your PC e Using a PC to Host Android Devices You can either install Appium and Android Studio onto a separate PC or you can simply use the same PC that is running Rapise The only difference will be 2015 Inflectra Corporation Rapise User s Guide 299 whether the URL used to connect to Appium is a localhost URL or one pointing to the other PC The steps for setting each of these will be described separately below 1 Using a Mac to Host iOS Devices The first thing you need to do is install Xcode from the Apple Mac app store Make sure you include the iOS SDK and also the iOS Simulator if you intend to test simulated iOS devices pm p e OS About Xcode F ee 3 File Edit View Find Navigate Editor Product Debug Source Control Window Help t AUTIS Preferences d E Documents AUTIOS Behaviors P hb j D SafariLauncher Open Developer Tool b E Instruments i Documents Serine gt i IOS Simulator run webkit proxy sh Hine Kenic Accessibility Inspector Documents Hide Others 3eH i FileMerge Bs UlCatalog Application Loader Wad ingUiKitControlsObj CandSwift Objective C Quit Xcode ETa More Developer Tools hybrid md E a me ee
80. option If unselected case is ignored in the search e Match whole word option If set to true parts of words will not count as matches 2015 Inflectra Corporation Rapise User s Guide 25 2 5 11 Image Capture Screenshot al Draw Tools Untitled File Edit Draw Help inflectra Products Solutions ideas Partners Support About Us Iw h ne Ea wW oe _ aw CA a _ _ w CA oe we MEELI SLEITE Scale 1 Purpose The Drawing Tools image editor lets you capture a section of the current screen or application under test add annotations to help document the image and then attach the final result to the current test case test step or manual test result How to Open You can open the Drawing Tools dialog box by clicking on the Image icon on the various rich text editors in Rapise When you do that Rapise will minimize itself and display the following screen nu sf4b 2015 11005 10 KG w6slecta Scre raregion to take Bnapehort t press ESC to abortind omer Account Thu 3 26 2015 10 57 1KB I can You now need to draw a rectangle on your screen that tells Rapise which part of the screen you want to capture Once that is done the image editor will open with that part of the screen selected If you click ESC on the keyboard it will just open the editor with no initial image Image Editor Toolbar The image editor provides the following tools File Edit Draw Help Weel e gt a0
81. private Content Type applcatonjson charset utt 8 Date Tue 18 Jun 2013 20 15 45 GMT Set Cookie ASP NET _Sessionld 3x3krobs5osudy2esacs Server Microsoft IISy7 0 AspNet Version 4 0 30319 Powered By ASP NET The Response Header tab will display the headers coming back from the web service Note that the returned Content Type is listed as application json as requested If you click on the Formatted JSON tab you will see the JSON serialized data returned from the web service Response Header Response Body Formatted JSON 82499bc0 37e4 4064 820e a2d798ed 1284 We have now completed the creation of our first test operation Click on the Save Requests button in the Rapise REST Ribbon to make sure our changes have been saved Now click on the Clone request icon in the REST request explorer in the right hand side of the screen a fies Ea la r E LibraryinformationSystem rest Get Sesspon This will display the Clone Request dialog box This lets us create a new REST request that contains the headers and authentication already defined on our existing request This will save time over creating a new REST request from scratch Clone Existing Request Please enter the name of the new cloned copy of the request Name Get_Book Enter the name Get_Books in the dialog box and click the Clone button This will create a new REST request with this name 2015 Inflectra Corporation 46 Rapis
82. resizes E E N E E aeenee 84 SEOD ECIS a E E neem at te ree ee eee 85 OBJECT EDANE tise n era eA vena aa soca Avs re mieeekeus E 86 CuS Onm dll ogc f seemreeet en cee ene at etee meter a ny frre nee 88 FACUIOMS gie E te ere easeaaneranesnmeteecen ous EE neti amaeeromstiotees 89 MUDIS FSCON GING Sre pce Ca tcipasetaemne tans ected vas vas ae mactts te cedes veterans ate ace cacy eeceient ed erect saneeea spree eeeaseeae 90 ODJECE SOV rn a cies tent a A ooteiace teu euaad arsenate sccame ene SE 91 PCCCSSIDIG VISAS SIO reins sivaennrtrestatits taatinens teint eee anu toekined A cea 93 JAVASDV eE N A S mncestaceeaemeiecas 93 MODI S 94 Managed INET SOY en A A A ie emeea as 96 AOTAN ODY aer TE A a aunneeunetoesa yearn 96 ODIOCT ManaGen eae a O N E aaa REO chien erieeueraaNee 97 Playback svsivciecdececntecctvcueceties Hees aa aapa Eaa aaa AA Oaa ese siansten antennae sas EON AAA 99 command LiNE cinne E A E A 100 OBEC EOC a eaa A aaa a 102 A t mated Re poring iae eaaa aaaea aA a aaa Eaa aa a aa a AEEA EAS AAEE 103 WnG TONG RODO eE S ume eaneatettecaa eee 104 PHO DONG FILON ea E nase erdn ots ace aeons 105 SCHIOUING seesseseeceseceicecevedecccsccnseticdecsentecusccsd cavcecdesesusenentacede A A AE EE A AE T AAA ET 107 WU derstanding the SCM licsxctiecserretcecsntiin e E NE 108 Namn CONV enion Soe ana a A N 109 De TIMG FUNCHON S esine a E ste uae enon css ween 109 cDVD ko ieeea santa er ee eeettentee A een eee etre rr eee eet 111 HEV
83. save the test case to Spira then the latest version from Spira will be downloaded into the Rapise manual test execution wizard so that you can start manual testing e The Release dropdown list displays the list of releases in the current Spira project er D Release EB 1 0 0 0 Library System Release 1 1 0 1 0 Library System Release 1 SP1 1 0 1 0 0001 Iteration 001 1 0 1 0 0002 Iteration 002 1 0 1 0 0003 Iteration 003 1 0 2 0 Library System Release 1 SP2 1 0 2 0 0001 Iteration 001 1 0 2 0 0002 Iteration 002 You can then choose the appropriate release that the current test is being executed against Recording ga mh Record Screenshots hon Whole Window Record Manual With Cursor Recording e The Record Manual icon will start the Select Application to Record dialog box This dialog box is the same one that you ll use for automated testing however when you click through the application under test it will record manual test steps instead of automated script code e The Record Screenshots option will tell Rapise to capture the current screenshot when performing manual recording and include the screenshot with the recorded test step These are two sub options o Record Whole Window When checked this will record the entire window Warning this may take up large amounts of disk space Otherwise it will record just the object underneath the current cursor o Record Cursor This will record the location
84. step 3 User clicks the New entry C SeS New DoLClick 44 13 Not Run TS000047 Edit g CO o step 4 User clicks on Pencil Zx SeS Pencil DoLClick 15 9 Not Run TS000048 Edit CO step 5 User clicks the Text tool A SeS Text DoLClick 14 16 Not Run TS000049 Edit O 9 qv Step 6 User clicks at 156 256 in SeS Simulated DoLClick 156 256 Not Run TS000050 Edit the canvas O o qv Step 7 Enters text This is some This is some text SeS Text1 DoSetText This is some Not Run TS000051 Edit text textir Og steps User clicks on the Bold EX SeS Bold DoLClick 11 14 Not Run TS000052 Edit button Show 15 rows per page i 1 Displaying page 1 Fa of 1 gt gt Now this test case is ready for manual playback See Also 2015 Inflectra Corporation 166 Rapise User Manual 2 4 9 2 e Manual Testing e Manual Playback Manual Playback Purpose As described in the main Manual Testing topic sometimes it is not possible to automate the testing of a specific application however Rapise is also a powerful manual testing tool that lets you execute manual test cases stored in Spiralest The advantage of using Rapise to execute the manual tests instead of just using SpiraTest itself is that Rapise can display the execution window as a small minimizable dialog box that gets rid of the need to have two screens one to display the test and one to test
85. system screen In contrast in relative analog the events are recorded relative to the upper left corner of the selected objects The events are recorded in a file of type arf Analog Recording File 2015 Inflectra Corporation sa Rapise User Manual Aoolication Under Test ST R Tz2s Bar Value Not all applications can be recorded by locating and learning objects being used A very good example of this is free hand drawing in an application such as Microsoft Paint Start Menu gt Accessories gt Paint There are several reasons why this application cannot be recorded using object tracking learning and recording The most important is that when the mouse is moved free hand it is operating on the same object the whole time the blank canvas Another reason is that the application changes behaviour and the positions of the canvas change depending on the size of the canvas and the positions of floating toolbars Absolute analog recording is provided by Rapise to make it possible to make it possible to design and implement tests for these types of applications See Also e Do Absolute Analog Recording e Relative Analog Recordin 2 4 1 3 2 Relative Analog Recording Purpose Relative analog recording is used to track mouse usage movement and clicks and keyboard events For relative analog recording events are recorded in relation to the top left corner of the application s window The events are recorded in a file of
86. tab key You ll notice that the RA dialog has changed Your actions clicking Log In and entering a username are listed in the grid Recording Activity for Inflectra Library Information System Windows Internet Explorer H Object Action Data Comment wi i Log In Click Glick on Log In T2 Usemame SeTet librarian Set Test librarian in Usemame The password for user librarian is also ibrarian Type the password in and then press the Log In button Two more rows should appear in the RA dialog one to represent the password entry and one to represent the button click 2015 Inflectra Corporation Rapise User s Guide Recording Activity for Inflectra Library Information System Windows Internet Explorer t Object Action Data Comment Log In dick Click on Log In Usemame Set Text librarian Set Text libranan in Usemame Password Set Test libranan Set Text librarian in Password ear a i ie tet Le i Ja wW a You should now be on the main menu of the Library Information System with the user s name listed in the top right LIBRARY IN FORMATION SYSTEM Welcome librarian Log Qut Book Management Author Management WELCOME TO THE LIBRARY INFORMATION SYSTEM This sample application lets you wew create and edit books in the libary catalog as well as view Greate and edit authors To view the library catalog or the authors list you will need to login as a borrower and to
87. the architecture looks like gt Mac OS X iOS Simulator KC 1 Configure the Mobile Profile To begin mobile testing when you create the new test make sure you choose the mobile methodology option Mobile Mobile Support 2015 Inflectra Corporation 14a Rapise User Manual RJ Create or Open Test htto doctor spirateam New Folder aad T gt Piy create new book J Ability to edit existing book a Ability to create new author New Test Case ey ept anc WOES on loan Test that the system lets you repor 1 Abily ta edit ewietind a thar Mobile Mobile nay Basic Manual Scripting Mode Create Locally Cancel Once you have entered the name for the new test with the mobile methodology selected you will be asked to choose the mobile profile Rapise ships with several default profiles for now select the one that is closed to the device you want to test you can always change it later Mobile Test Setup jPhoned When you click the OK button Rapise will create a new mobile test with this profile selected Now you need to modify the profile so that it correctly matches the type of device you are testing and also so that it correctly points to the Appium server that you are using to host the mobile devices Click on Options gt Tools gt Mobile Settings to bring up the Mobile Settings dialog box 2015 Inflectra Corporation Rapise User s Guide 145 Mobile Settings Sel
88. these products are marketed by Inflectra Comoration system and Rapise i ae a i e O a spiraTest Rapise _ inflectra Test Management Test Automation Inflectra Corporation Thi sample application has SOAP and REST web service APIs that can be tested by Rapise 3 The Select an Application to Record Dialog In the Rapise window press the Record Learn button on the Ribbon Record Learn Recording amp Learning 2015 Inflectra Corporation 14 Rapise User Manual The Select an Application to Record Dialog SAR dialog will open R Select an Application to Record Select From Running Applications el ei Inflectra Library Information System Windows Internet Explorer C Program Files Internet E Applications Path C Program Files amp 6 Microsott Office Office C Windows Sys WOW 64 rundlla exe CAWindows Sys WOW 64 rundllsa exe Gi Adobe Photoshop CS3 Extended Untitled I C Program Files amp 86 WAdobe Adobe Photost C Program Files Dell T Pad Apntex exe 33 C Program Files Dell T Pad Apnt Ex exe 8 Help AndSamples Microsoft Visual Studio C Program Files amp 6 Microsoft Visual Studio Html m C Windows explorer exe i E inilectra brary infermation System Wind Program Files Wntemet Eeplorer explore ex C Program Files amp 86 4 PRO VonagetX PRE _ Msg 6362 C Windows SysWOW 64 undll32 exe C TdmNotify C Program Files Wave Systems Com
89. this will be located in the C Users Public Documents Rapise Samples TwoDialogs TwoDialogs exe location 2 Start Rapise and create a new test and call it TwoDialogsAnalogAbsolute 3 Press the Record Learn button in the toolbar of Rapise 4 When the Select an Application to Record dialog is displayed choose the TwoDialogs exe application and ignore the library list we will not be using any library for analog recording Press the Select button 5 The Recording Activity dialog will be displayed with an empty grid NOTE this recording session is going o be a little different from previous sessions Previously we could interrupt our object related recording learning with other activities and because Rapise was recording activity related only to the target application our recording or object learning would be unaffected However in analog recording Rapise is monitoring the mouse and keyboard for the entire system for all applications This means that if you answer an email in the middle of analog recording or log in to a Secure system all the steps including mouse movement keystrokes etc will all be recorded However note also that screen contents are not recorded by Rapise 6 If the TwoDialogs UI has been occluded bring it back to the front so you don t have to hunt for it when you start recording 7 When you re ready to record the session hit Ctrlt 4 on the Recording Activity dialog Recording Actwity for Two Dialo
90. to the Manual Editor with the Manual Test Ribbon Visible Test Manual 2 Reload mA Add Step E View in Browser tb Release e Record Screenshots ial Save Local 9X Remove Step w3 New Incident 3 Whole Window Save Execute Record s ns Manual Manual With Cursor Spira Editor External Tools Playback Recording From here you can start creating your new manual test using the Manual Recorder then edit the created 2015 Inflectra Corporation Rapise User s Guide 161 test steps in the Manual Editor Finally you can save the test to Spira and then play it back using the Manual Playback and Incident Logging screens In addition to being used for manual testing the test step editor lets you view the test steps that define the test scenario so that when you automate the test case you can easily tie back specific verification points with test steps in Spira Finally you can also have the best of manual and automated testing in the same test script using semi manual testing That allows you to automate some of the repetitive tasks in a primarily manual test case Example For a full tutorial using the manual playback refer to the Exploratory Testing tutorial In addition a working sample of manual testing is available from Spira simply connect to the sample Library Information System project and open the Ability to Create New Book TC2 test case in the Functional Tests folder of the project That will t
91. to do this e Context This will display either Discovery Mode or Recording Mode UlAutomation Object This is the Spy dialog that is used for Ul Automation WPF Silverlight objects It is described in more detail in the UlAutomation Spy topic 2015 Inflectra Corporation Rapise User s Guide 267 LiAutomiation Object Tree Properties E List tem TypeProperty listBoxtemO Listitem LabeledByProperty fistBoxdtem3 ListItem Name Property Native WindowHandle Property Orientation Property Process dProperty Runtimeld Property Automation D Index In Parent Name Native Handle E ae erone Bas Pelai E The UlAutomation Object section of the Spy dialog shows properties of the object that are visible through the UlAutomation interface The spied upon object and its children are displayed here Object fields and field values are displayed here CA inddws hh ewe 1122 BEG g i ii AccessibleObject ROLE SYSTEM WINDOW mactis_updown Shel Embedding SysTreeView32 YF 244 62 1122 666 True WS_TABSTOP WS_CLIPCHILDREN WS CLPS The HWND Object section of the Spy dialog shows properties of the object that are visible with its HWND handle The spied upon object and its children are displayed here Object fields and field values are displayed here 2015 Inflectra Corporation 268 Rapise User Manual Tools e Mouse Button Click Emulate Left mouse click for the i
92. tokctecuvensestecscctactacestsevsav nssiuaedectidcac tabstedeusndesveesenbacctceds 255 DUAL PAGS carere a sued aaa E aE a E 255 Spira Dashboard sisian e aape aaa aaa aA Aaaa a aa aa Aaaa ee a A Aaaa AONNE 256 STADE oTo A 261 T stFiles Dial g eoii nnana nanana aaan naaa Aaa aaa aAa aa AAAA Ahaaa aa aaae anaa Aaaa a Kaa Naak ARENASA 268 Varlable Cal Stack VIEW ccedi ei aaa aaa a aa EE aE aa aa a 270 Verify Object Properties Dialog csiis ahaaa aaae aana aaaea a ia aaa aaa aa anaana aaa aana anaa baaa RAA 271 Warming VIEW saesae aAA ERa aAa Aaa E aAA ERa AAAA a Aeee aara 273 Watch Vie W cenir oiana ena iusa nna naaa a aaaea O aaa aaa aa AAAA aa Aaa Aaa AAK ENA AAAA Aa AE aa aa Aa AA AAAA AAS aA NAA ANA ANAKARA 273 Fle Menu arenneren Aaaa E E aA aa aa a aeaa aa aiaa aeaa aai 275 O HOWTOS cons a a aeaa a 275 Opena Testeiro a a eben aba a aa AEE 276 Create a New Te Stoniiniicia a a a a S 276 Re stormo the De Tall Cayo Ul orsa a aA aaa ene 278 Change Test ENV POINT a Aa A A 278 Do Absolute Analog RECOr Quin seisshen neasa ts etal esterase a ET 279 Do Relative Analog RecOrqing srba eee leeches ee ee ee 281 Gab ii alvOD le Gl EE E E E we cenasatsansdGactoascesoeneseaeeresieee 283 Deal with a Simulated ODJECE xc reaa cae cee sss aaa OA E EE A A EO 289 T INOCHMOIOGIO S serenas E E EE 292 Adobe Flek ocea a R a aaa aR aaea ERARE 292 Cross Browser Testing asiar a e E a a E E EE a EE 294 O F AID GW OT nicon a a cccee de ccacleceete eect ceeaie o 296 Java
93. type arf Analog Recording File 2015 Inflectra Corporation Rapise User s Guide 85 Application Under Test T2s amp Bar Value Not all applications can be recorded by locating and learning objects being used A very good example of this is free hand drawing in an application such as Microsoft Paint Start Menu gt Accessories gt Paint There are several reasons why this application cannot be recorded using object tracking learning and recording The most important is that when the mouse is moved free hand it is operating on the same object the whole time the blank canvas Another reason is that the application changes behaviour and the positions of the canvas change depending on the size of the canvas and the positions of floating toolbars Relative analog recording is provided by Rapise to make it possible to make it possible to design and implement tests for these types of applications See Also e Do Relative Analog Recording e Absolute Analog Recordin 2 4 1 4 Simulated Objects Purpose During normal recording Rapise Learns about the Objects you interact with If for some reason Rapise cannot learn an object you can create a Simulated Object Rapise identifies a simulated object by its location in the Window or Dialog and can perform certain generic actions on it such as Click and Fill In This works in the reverse sense also That is if Rapise cannot identify an object or for example you click outside
94. upper left margin of the utility and the color selection box that appears on the bottom left of the application window 4 Press Citrl 5 to spy onthe UI Press Ctrl G to spy on the Paint application Notice several things 2015 Inflectra Corporation 290 Rapise User Manual about the behavior of the MS Paint application under the Object Spy i As you move the mouse inside the tools box the entire surrounding box will show a red highlight but the individual tool buttons will not ii The same is true of the color palette and the bottom left of the screen ili As you move the mouse over the apparent buttons and controls the information in the spy dialog is more sparse than for other applications The tool buttons do not have default actions and they are not identified as buttons Rather they are identified only as child objects This combination makes it impossible for Rapise to identify and learn the objects as integral objects Furthermore notice that as you change the size of the Paint window the relative positions of the color palette and the tool box change The only way in which Rapise can be taught these controls and others we will discover later is by simulating them as though they were buttons that can accept commands such as the press event In fact Rapise will recognize these non objects without you having to take particular action Let s discover this and what it means 1 Open a new test under Rapis
95. will be displayed whenever you have the Manual Test Editor open Test Case Name Description Ability to create new book Tests that the user can create a new book in the system User is already logged in The book does not already exist EB 2 U A Aral AAO AY Y Eaa i a This section lets you edit the name and long formatted description of the test case The rich text editor lets you choose the font name font size text color highlight color style bold underline italic as well as provides easy ability to add links bullets and numbered lists In addition there is a button that lets you add screenshots Test Step Editor Stepld Description Expected Result Sample Data Step 1 Call TS 1 Step 2 User clicks link to create book TS 2 T Step 3 TS 3 User enters books name and author then clicks Next User taken to next screen in wizard User taken to first screen in wizard Macbeth William Shakespeare T Step 4 User chooses book s aenre and sub aenre from list User sees screen displavina all entered Plav Traaedv This section lets you add edit and delete test steps from the manual test case Each of the test steps contains four fields e Step ID this contains the position number of the test step e g step 1 as well as the ID of the test step as it exists in Spira If you click on the Ts xxx label it will automatically copy this into the Windows clipboard Th
96. with utility functions 2 SeSRunJSScript include and execute external function with its own object map UsingMSAccess UsingMSExcel UsingMSWord These samples demonstrate how you can work with Microsoft Word Excel and Access from scripts You ll learn how to test applications that expose a COM interface UsingMobile These samples demonstrate how to do the testing of mobile devices running either Apple iOS or Android UsingOCR 2015 Inflectra Corporation 12 Rapise User Manual This sample demonstrates usage of the Optical Character Recognition OCR functionality UsingRegistry This sample demonstrates usage of the windows registry The registry is queried to determine the OS XP 2003 Vista etc and owner UsingReporting This sample illustrates various reporting features 1 Regular reporting Tester Assert Tester Message 2 Custom attributes Tester SetReportAttribute Tester ResetReportAttribute 3 Stacked attributes Tester PushReportAttribute Tester PopReportAttribute 4 Nested Tests Tester BeginTest Tester EndTest 5 Inserting Links Text and Images into the report tags parameter SeSReportText SeSReportLink SeSReportimage UsingSpreadSheet This example shows how you can use Excel spreadsheets to create Data Driven tests This script reads test case data from an XLS spreadsheet to test Calculator UsingXML This sample demonstrates how to read modify and write XML files WebService
97. 0 path object_name Transaction Completed Successfully n nAccount 00000005 Balance 1046200 object classe Starve ob ject role YROLE SsYslEM_SIATICTIEXT object_name Transaction Completed Successfully n nAccount 00000005 Balance 1046 00 ob 7Vect Class State object role ROLE SYSTEM WINDOW ob yect_ name SmartreAIM obj lect class s32 70 object role ROLE SYSTEM DL eS Cais ale EIA bi lf True the object definition will be written in a manner that takes more space but is easier to read and change var saved_script_objects Balance Vere won Object type SesSimulared object_name Transaction Completed Successfully n nAccount 00000005 Balance 1046 00 tobJject elass So obae wey Mob ject arole 2 VROLE SYSorEM SrATTCOTRAT object_text Transaction Completed Successfully n nAccount 00000005 Balance 1046 00 locations o locator Enane t TYLroOcatironi vliocgation ef Mo Gate r omn te a ee window name TSmarteATM window class Ho 270Y section omitted for brevity 2015 Inflectra Corporation Rapise User s Guide 253 Objects that were learned in previous recordings are affected by the value of BeautifySavedObjects Capture Recording False Include in Report False Widget Onhy False e Capture Execution Set this to True if you want to save screen images for each recognized object during playback e Captur
98. 015 Inflectra Corporation Rapise User s Guide 49 MyRestTest Ls E LibraryinformationSystem rest 2o Z P Script Steps EEEEEEEEESE 4 function Test Is i d g load libraries Web Service The first task is to get a new Sessionld from the server using the Get_Session operation To do this drag the DoExecute operation from under the Get_Session object into the script editor in between the opening and closing braces of the Test function E MyRestTestLjs E LibraryinformationSystem rest EE Start Fage 2s 8844 Script Steps 444 44 4444 a function Test a 1 i a Li Li Ln I r l ses LibraryInformationsystem Get Session DoExecute null g load libraries Web Service This will execute the web serviced and return the Sessionld To actually access the retrieved value you need to drag the GetResponseBodyObject property to the script editor under the previous line Then add the JavaScript code var sessionId to actually store the value We will also adda Tester Message sessionId line afterwards to write out the value of the sessionld to the test report This will help us make sure we are getting back a valid response from the web service You should now have the following code function Test i se5 LibraryInformationSystem Get Session DoExecute null var sessionId Se5 LibraryInformation
99. 0O AT I Tahoma My wien a ee eee eee ee ee ee eee ee ee eee eee eee ee eee ee eee ee ee ee ee ee 2015 Inflectra Corporation 206 Rapise User Manual Image Capture this lets you discard the current image and capture a new screenshot instead Paste From Clipboard this lets you paste in an image from the Windows clipboard Open this lets you open an existing image saved on your local computer Save this lets you save the current image to your local computer Pointer this lets you select an annotation to edit arrow rectangle ellipse line text etc Arrow this lets you draw an arrow in the current color on top of the current image Rectangle this lets you draw square rectangle in the current color on top of the current image Ellipse this lets you draw a circle ellipse in the current color on top of the current image Line this lets you draw a straight line in the current color on top of the current image Pencil this lets you draw freehand in the current color on top of the current image Text this lets you add text in the current color and current font on top of the current image You will need to draw a rectangle to mark the size of the text box before entering in the text Undo this will undo the last operation Redo this will redo the last operation Font Name this will let you change the font family and size Select Font Font Family Style Stretch Tahoma Normal Normal Sylfaen CESCE eTe
100. 15 Inflectra Corporation 22 Rapise User Manual clipboard e The Copy button Shortcut CTRL C copies whatever text you have highlighted to the clipboard History Undo Redo _ ee aal e The Undo button CTRL Z reverses the last deletion or insertion made in the Source Editor e The Redo button CTRL Y reverses the last undo action Search bh Replace Search e The above text box is a search box J Pressing the find button opens the Find Text dialog e The Replace button opens the Replace Text Dialog Font Courier Mew Fil4dp Font e Use the above font and size drop down menus to change the text appearance The entire file will be affected Debug W Toggle Breakpoint e Press the Toggle Breakpoint button Shortcut F9 to insert or remove a breakpoint at the current cursor position 2 5 30 Ribbon Debugger Screenshot 2015 Inflectra Corporation Rapise User s Guide a Test Edit Debug P Run LZ Step Over StepIn WW Stop Debugger Step Out E Break Debugger Purpose The Debugger Tab provides tools for use with the Internal Debugger How to Open The Debugger Tab is available while the Internal Debugger is being used To use the Internal Debugger first enable it then Playback your script Instructions for enabling the Internal Debugger are HERE Debugger e Run F5 Continue executing the script e Step In
101. 192 DLL functions invoking 131 DLL objects creating and using 131 DLL Testing 131 Ee Engine 118 Enter Filter Criteria 199 Entry Point 278 Errors View 201 Events Dialog 192 Examples 9 Execution 99 100 Execution flow 122 Exeuction Pause 123 External Data 114 External Debugger 124 External Files 112 F Features 6 75 Filter Group 269 Filter Report View 105 Find 202 203 204 Find and Replace Dialog 202 Find Results View 203 Find Text Dialog 204 Functions 109 326 Rapise User Manual ee Getting Started 6 7 Global Variables 111 Guide Overvew 6 IDE 120 Include External Files 112 Including Functions 109 Internal Debugger 121 a Java Testing 297 Javascript IDE 120 vis Learning 79 Library 86 MbUnit 133 Menus 6 192 Meta Data 132 Multiple Recordings 90 Multiple Browser Testing 294 N NameValue Collection Editor 220 Naming Conventions 109 New Group 268 New Test 193 276 NUnit 134 0 Object Learning 79 Object Locator 102 Object Manager 97 Object Properties 227 Object Recognition 102 Object Spy 91 261 Object Tree 222 Objects File 108 Open 276 Open a Test 276 Open File 268 Options Dialog 223 Output Verbosity 125 Output View 226 Override Action 89 Overview 8 P Pause Execution 123 Playback 99 Properties Dialog 227 Q Qt Framework 296 R Rapise Overview 8 Recording 77 Recording Activity Dialog 228 Recording Library 86 Regex 112 Regression
102. 2 Start Rapise and create a new test and call it TwoDialogsLearn 3 Press the Record Learn button in the toolbar 4 When the Select an Application to Record dialog is displayed choose the TwoDialogs exe application Leave the library selection in its default state we will not be using it this time Press Select Wait for the Recording Activity dialog to appear in the lower right corner of the screen 5 Hover the mouse over the OK button of the TwoDialogs AUT but do not press the button 6 With the mouse positioned over the OK button press Ctrl 2 the Learn command You will see the OK button surrounded with a red highlight You will also see that the Recording Activity dialog has been updated with a Learn event Record ing Activity for Two Dialogs Sample Object Action Data Comment Learn OE Learned OK Analog Ctr Cancel Finish Ctrl 3 Learning object Transparent 7 Press the Finish button or Ctrl 3 to end the recording session You will now see that Rapise has learned about the OK button and the Object Tree in the upper left hand pane of the Rapise has a new entry called OK Shown here expanded The list of items contained under the OK button entry in the Object Tree is the set of methods and properties available for the OK object Methods are listed with purple icons read properties are listed with blue icons and write properties are listed with blue and purple icons Notice that the DoAction p
103. 4 Calculated e0000 a lt b 4 E 0 UlAWindow 0 0 320 480 Automation UiATarget local Target front MostApg 2A VERIZON 12 58 PM 1 UlAWindow 0 0 320 480 Id AUTIOS z IndexInParent 0 AU TIOS TagName UiAApplication Text AUTIOS P Title 0 UlAApplication 0 2011320 480 Master Detail Table View XPath UlAApplication 1 Table view with items 4 Layout Height 460 Basic Controls oe p Button TextField Label Picker Switch Slider Image Y 20 EE Advanced Controls hint WebView ScrollView TextView Search TabBar Pagel label AUTIOS name AUTIOS Value We now want to record a click on one of the menu options simply highlight one of the menu entries 2015 Inflectra Corporation 148 Rapise User Manual le Y s re Disconnect E Page Source Select Profile iPhone4 Get Snapshot leis KB GoTo Uri W Edit Profiles Ctrl G Object Test Locator Connection Device Profile 0 UlAApplication 0 20 320 480 4 Calculated 0 UlAWindow 0 0 320 480 Automation 0 UIANavigationBar 0 20 320 64 ld El 1 UlATableView 0 0 320 480 IndeaxlnParent F 0 UlATableCell 0 64 320 108 TagName 1 UlATableCell 0 108 320 152 Text 0 Uj AStaticText 0 108 320 152 Title 2 UlATableCell 0 152 320 196 XPath 2 UlAToolbar 0 480 320 524 Layout 1 UlAWindow 0 0 320 480 Height Width y Properties hint label name Value Rapise spy Recording Mode Select Context UIA Targe
104. 5ebe27eTe isShuttin gDown false sessionId a2da69c8 1e33 4a63 a898 5b196997cb6b GET wd hub status 7 921 ms 178 status 0 value build version 1 3 4 revision c8c79a85fbd6870cd6fcsd66d038al1l5ebe27efe isShuttin gDown false sessionId a2da69c 1le33 4a63 a3898 5b196997 cb6b debug Socket data received 38 bytes debug Socket data being routed debug Got result from instruments status 0 value UIAScrollView debug Responding to client with success status 0 value UIAScrollView sessionid a2da69c0 1e33 4363 3898 5b196997 cb6b 5 lt GET wd hub session a2da69c0 1e33 4363 a898 5b196997 cb6b eLement 74 name 145 722 ms 87 status 0 value ULIAScrol View sessionid a2da69c0 1e33 4a63 a898 5b196997 cb6b 5 gt GET wd hub session a2da69c0 1e33 4a63 a898 5b196997 cb6b element 74 enabled i debug Pushing command to appium work queue au getElement 74 isEnabled am J debug Sending command to instruments au getElement 74 isEnabled 1 debug You are now ready to start mobile testing of your iOS device 2 Using a Mac to Host Android Devices The first thing you need to do is go to the Appium website htip appium io and install the latest version of Appium Once it is installed you need to select the option for Android and click the Play button to start the Appiu
105. 9a Odd181b3ccel 14 49 04 334 Message Info 0 Get_Books DoExecute session_id c3d8dcd4 61254 14 49 05 051 Assert Pass Returned Value true 0 Book count matches 14 49 05 051 Assert Pass 0 Add_Book DoExecute session_id c3d8dcd4 6125 4 14 49 05 379 Assert Pass Returned Value true 0 Get_Books DoExecute session_id c3d8dcd4 6125 4 14 49 05 597 Assert Pass Returned Value true 0 Book count matches 14 49 05 597 Assert Pass 0 gt MyRestTest1 14 49 05 597 Test Pass Passed 6 Failed 0 TestPass Q Total 9 Pass 7 Fail 0 Info 2 Congratulations You have just created your first test script that tests a RESTful web service 2 3 Tutorial Mobile Testing Purpose Rapise lets you record and play automated tests against native applications on a variety of mobile devices using either Apple iOS or Android Rapise gives you the flexibility to test your applications on either real or simulated devices This tutorial is a simple example of using Rapise to record and playback a simple test against a sample Android application running on the Android Simulator on your local PC It does not require any physical mobile devices and only uses the PC that you have already installed Rapise on There is other documentation that describes the full range of mobile testing options 2015 Inflectra Corporation 52 Rapise User Manual 1 Setting up Appium and the Android SDK The first thing you need to do is go to the Appium website http appi
106. ANI ONE FES aeniea eat etre rar at tere rer eee cere re 112 POCA EXT CS S OMS nsr E sec vinsuaten capeaGtareueessismnie vaencneen nets teen acananmteene een eaapenes eee 112 2015 Inflectra Corporation Contents 3 PSS lo lal NGI lo n nusae rs ses curecne essed ne em in cesecguencctea aan E 113 DaD Ven Tosiaan A a N acer aienteetinr 114 CUSTONIZ AD Ie ENING aeoea n a ctiacieesnsiyiecumsnk a chetrieas coun sence ior eameans eh aera a 118 SCCM ANOS ana a cumini saagtodsonde E E touts itu ie tureiaeaaie aeolian eeeas are 118 Javascript IDE riisi venous Saeed Saws nu cad ta aid acc seuss canes cca atcha eee 120 Mema Debugger ee cictist serve ere eccer ni canectackascutetvarneteusoesin oc enick tebaset A A 121 MOOUIDS ddatec Pans Sababaidaiand T saiaeetane oe ae awek aes teats Ueda metas eee enanes 122 CONTE SCUO enen nr a N geste cease ecard eee eee ete 122 DECAMOOIMG co tisuhssseaupsentonsencduess sans caaceetaeot ra vensuetuem eeau oon ences vascentua tee iioreces sesepaneinate nenncomee acaceaceunaceuree 123 ExternaliDeDuiGg eG rxcancctes tciencrbernartwseosiuaetorscsdesitcscnade N 124 Vros IV LEV ClS vicics ina retin tirurneraaetnenennenunterduectoni seaman aresiak eapegrbeerinameeunteane E 125 SV Tala MOANING zu seecdSceoavaGienetacgdaesiene N aceeue tee Annet Eee 126 code m0 0 alo eeeneener ce maaeaaner ene mer Se cn etn chem ene ee eter Ene er eee mere a te pec eRe aes tere 126 NMI CEC MING r sau nsneaseensectsuuegdeusanses ao
107. Flex Application a tutorial explaining how to use Rapise to test an Adobe Flex application 7 Tutorial Mobile Testing a tutorial explaining how to use Rapise to test a mobile application in this case using Android 8 Tutorial Exploratory Testing a tutorial explaining how to use Rapise to do exploratory manual testing Features The features of Rapise are many The features have been designed to make all aspects of test automation as easy as possible Most of the features of Rapise fall into one of five categories 1 Building test scripts with little or no manual scripting 2 Reading and interpreting results and reports 3 Additional features and capabilities for sophisticated testing 4 Writing more involved or complicated tests using scripting 5 Extending Rapise to learn new or extended libraries of capabilities Depending on the application set being tested not all of these features are necessarily needed for every situation For each feature this document attempts to present 1 The reason you might use a given feature 2015 Inflectra Corporation Rapise User s Guide 2 A summary of the basic value of the feature 3 An overview of how the feature works from the perspective of using it 4 At least one useful sample that demonstrates how to use the feature Dialogs Views and Menus This section details the Rapise GUI Each subsection describes the function of a particular Dialog View or Menu The
108. Fretox for Testing test cases create and run test sets Scenario pas T Preparing Chrome for Testing view automation hosts and more Test v Pay User Functions eb Test 1 users Script Web Test 15 Sho ricuts Browse Samples Parameters RY Create New Test Tech Senpies Oven Existing Test AdobeF lax3 Browser Chrome HTML iy Start Recording AdobeFiex4 Record Titie inflectra Library information System AnalogRecorder Googie Chrome CrossBrow ser FarPoint Test Files Settings Object Tree HTMLS Properties J a java Java SwT RIE ad ef Output Warnings Errors Find Results Samme E ENUM linflectra Corporation _ 2 Open the AUT Application Under Test Open up Internet Explorer You will find it in Start gt All Programs gt Internet Explorer In Internet Explorer navigate to http www libraryinformationsystem org LIBRARY INFORMATION SYSTEM Log In Home Book Management Author Managerment WELCOME TO THE LIBRARY INFORMATION SYSTEM This sample application lets you view create and edit books in the libary catalog as well as view create and edit authors To view the library catalog or the authors list you will need to login as a bonmower and to make changes to the list of books or authors you will need to login as a hbranan Note This is not a real application but is just a sample application used in the popular SpiraTest test management fest automation system Both of
109. Guide 30 Recording activity for HelloFlex Windows Internet Explorer Object Action Data Comment Buttor Click Click FlexButton Button OF Click Click FlesButton OE Hello Flex Very trie Verity that E nabled true Learn Ctrl 2 ele Spy Ctrl 5 Analog Ctrl 4 _ Simulated Cancel Finish Ctrl 3 Last captured HTMLObject file C SHelloFlex HelloF lex html PF Transparent 7 Press Finish button on Recording activity dialog You now have recorded the test File Test Edit i Open Open Test from Spira No Debugging v gt Ra Ja Object Mgr e amp Search Help Gi Start Page z W Save As 2 Spira Properties te Level 4 Overflood v HelpIndex 5 Spira Dashboard Save Record Learn Play Options Find in YY Saveto Spira cy Web Services Spy Files D About Activation File Recording amp Learning Debugging Executing Tools Help fost Files 4 Gm Start Page S MyTest1 js 4 sul Test i Use Record Learn button to begin test recording gt al Reports 4 a Scripts function Test B MyTestt js i MyTestt objects js 5 H Click FlexButton Button 8 MyTest1 user js SeS Button DoClick Click FlexButton OK Se5 OK DoClick Verify that Enable true Tester AssertEqual Verify that Enable true SeS Hello Flex GetEnabie true Test Files Settings Object Tree Properties fi Execute the Test Execute the test by pressing the Play button in Rapise C
110. In either case you will see its test steps displayed underneath if there are any 2015 Inflectra Corporation Rapise User s Guide RJ Create or Open Test Server htto doctor spirateam Project Library Information System New Folder New Test Case T Ability to edit existing book Ability to create new author Ability to edit existing author Description Expected Result User opens up Intemet Explorer a The browser loads the login w User logs in to policaion User talon to main menu scre Hh Specify methodology Basic Manual Scripting Mode Rapise supports multiple testing methodologies Select one to be used for newly created test Create Locally Create from Spira Once you are satisfied that this is the correct test case choose the desired methodology Mobile or Standard Manual Scripting and then click the Create from Spira button Rapise will now create a local test folder and files based on this Spira test case Saving a Test to SpiraTest To save the a Rapise test into SpiraTest you need to make sure that the following has been setup first 1 You have a project created in Spiralest to store the Rapise tests in The Rapise tests will be stored in a repository located inside the Planning gt Documents section of the project 2 The user you will be connecting to SpiraTest with has the permissions to create new document folders 3 You have created the Te
111. Learning and creating Simulated Objects How to Open 1 Open the Select an Application to Record Dialog Instructions are HERE 2 You must select two things 1 which recording library to use during the recording session and 2 which process program to record Look HERE for more information on using the Select Application to Record Dialog 3 Press either Select or Run on the Select Application to Record dialog to open the Recording Activity Dialog The Grid As you interact with the AUT Application Under Test your actions are recorded in the grid of the Recording Activity dialog The following screenshot shows the Recording Activity dialog after two interactions with www google com 1 first Inflectra was entered into the query text box and 2 the Google Search button was then pressed 2015 Inflectra Corporation Rapise User s Guide 220 H Object Acton Data Comment 1 q SetText Inflectra Set Text Inflectra ing ws btrila Click Click on birni Context Menu If you right click in the grid you ll see a context menu with three options rT Fe a d Object ti Comment Spira Test ich Click on Spira Test Toals amp Demos n Edit Action Try Action Verify Ctrl 1 ce Canes e Delete Action removes the selected row e Edit Action opens the Action Editor Dialog This is also opened by double clicking a grid entry ae Se E Cc Object IL He Action Daviction Press button OK Save
112. LibrarylnformationSystem rest Get Session Get_Books Add Book This section lets you add open delete and clone REST requests in the definition file e Add request Adds a new REST operation to the current REST definition file e Open request Opens the currently selected REST operation in the current REST definition file This is the same as double clicking on the item name e Clone request Makes a copy of the currently selected REST operation and allows you to give the copy a new name e Delete request Deletes the currently selected REST operation from the current REST definition file See Also e For more info on REST Web Services see REST Web Services e For a tutorial on creating a REST web service test see the Web Services REST Tutorial 2 5 26 Ribbon Test Screenshot 2015 Inflectra Corporation Rapise User s Guide 237 File Tes Report z E Ope E Open Test from Spira i a No Debugging gt F 18 Object Mgr P amp Search Help G Start Page Ww sav As qs Manual Steps og Level 1 Minimal Spira Propertie HelpIndex S Spira Dashboard Record Learn Play Option Help pira gy Web Services Spy j 2 About Activation File Recording amp Learning Debugging Executing Tools Help Purpose The Test tab provides tools to help with creating and executing tests It also provides the options to add web services and or manual test steps to the current test How to Open The Test tab is always av
113. Link Based on the WebDriver standard it lets you find hyperlinks using a partial match of the link anchor text e Script For iOS testing this lets you enter raw script that will be sent to the iOS device to find the element 2 5 17 NameValue Collection Editor Dialog Screenshot TestParam Collection Editor DeftaultValue Description lsQutput False Name new test param Collection Vanable Purpose To specify Custom Strings and their values How to Open Open from the Settings Dialog TestParams option 2015 Inflectra Corporation Rapise User s Guide 221 TEES 3 items Servert 1 Server 1 Server 2 Recording Settings Test Params Test Parameters May be used for integration with oath Widgets e Add a custom string If you press Add you ll see this TestParam Collection Editor new_test_ param properties it Ello 1 ServerTestCaseFolderld Beer 2 ServerTestCaseld E new test param i e Remove removes selected custom string e OK Save changes and close dialog e Cancel Close dialog without saving changes 2015 Inflectra Corporation 222 Rapise User Manual 2 5 18 Object Tree Dialog Screenshot f Y id n idh 9 Object Tree C ProgramData Documents Rapise Sa Inflectra Library Information System Windows b ES Author_ Author t JA Book Management Book Management p ctl00SMainContent btnSubmit ctl00 SMainCo b B Genre_ Ge
114. M_LIST focused focusable Ox0007 1 aac EVENT OBJECT SELECTION AOLE_ SYSTEM SLIDER selected focused focusable selectable 000071 88c EVENT OBJECT FOCUS ROLE SYSTEM SLIDER selected focused focusable selectable Ox0007 1 8c EVENT OBJECT VALUECHANGE ROLE SYSTEM SLIDER selected focused focusable selectable 0s0007158c EVENT OBJECT VWALLUECHANGE AOLE_ SYSTEM SLIDER selected focused focusable selectable 000071 88c EVENT OBJECT VALUECHANGE ROLE SYSTEM SLIDER selected focused focusable selectable Ox0007 1 88 EVENT OBJECT _NAMECHANGE AOLE_ SYSTEM _CURSOR floating OxOO000000 H 1 2 4 4 z E T E g Ignore Mouse Move You can see that changing progress bar leads to generation of EVENT OBJECT VALUECHANGE events Not all accessibility events a processed and propagated by Rapise engine EVENT OBJECT VALUECHANGE is one of such events To consume this event and make an appropriate call to OnValueChange of Win32CustomListboxControl you need to add and register custom accessibility event handler function CustomRegisterAccessibleEvent evt etxt if etxt indexOf EVENT_OBJECT_VALUECHANGE gt 0 Var ao Ery ao evt AccessibleObject i1f _SeSisValidOb ject ac return false catch e Log Brror getting event object e Descriptiont etxt recura false var ro SeSCacheAccessibleObject ao it AS ee eo bogs Customer boxConcrolL op orovlLosrtramg iy itt ro l null amp OnValveChange ian 1o
115. Mobile Testing a tutorial explaining how to use Rapise to test a mobile application in this case using Android 8 Tutorial Exploratory Testing a tutorial explaining how to use Rapise to do exploratory manual testing 2 3 1 Overview Why Use Rapise Rapise was created to make software testing easy and manageable without being prohibitively expensive Rapise was made easy for software test professionals developers and professionals concerned with quality assurance to simply and quickly write a test to cover an application a web page or a single bug to prevent regression Make Testing Fast and Repeatable Consider for a moment what it is you do to test your software today Most likely it has some for of user interface Ul probably a graphic user interface GUI So you will run the application click around perhaps in some way that gives you complete coverage of all the features but probably not if it s a large application or web Then you will login if appropriate and you will fetch some data and modify some data test some more controls edit boxes buttons drop down lists links etc If you have just fixed a bug then you will focus on the area of the application where the bug occurred You will enter data that causes the bug or go through the control sequence that causes the bug Next time you come to fix a bug in this application you will do the same thing again Once again you will focus on the area where the bug wa
116. ModifiedFiles If set to True any files you modify outside of Rapise are automatically reloaded in Rapise e DefaultFolder specifies where new tests are kept before you explicitly save them The location is relative to the Rapise executable e DefaultSpy specifies which of the various types of Object Spy will be displayed by default e Enable Execution Monitor specifies whether the execution monitor dialog box will be displayed during playback 2015 Inflectra Corporation Rapise User s Guide 225 e FrameStyle Specifies which frame to draw around objects when you Record Learn and Spy The Basic frame is on the left and the Modern frame is on the right Google Search Google Search e LoadLastTestOnStartup If set to True Rapise will open the last test you worked on and saved If set to False Rapise will create a new test named My Test lt gt where lt gt is an integer A folder for My Test lt gt is created in the folder specified by the DefaultFolder option e NormalizeFileName If set to True files are referred to in the sstest file using a a path relative to the sstest file Otherwise their absolute path is used e RecentTests The maximum number of recent files displayed in the Recent Tests list To see the Recent Tests list open the Application Menu EN Rapise 2 1 3 33 CAP rogram Data Documents Rape Samples Creat Recent Teri Recent Tests Li Create From Spira Manual Test E ProgramDat
117. My Test My Test sstest Cipen ain exch Test E Open File C ProgranmData Documents Rapise Samples CreateNewBook CreateNewBook sstest Save C Users adam sandman Documents My Rapise Tests TwoDialogsTest TwoDialogsTest sstest m 1 Tr Save fie current fest Onen Test fom Seite C Temp SmokeTest SmokeTest SmokeTest sstest Save to Spira C Wsers adam sandman Documents My Rapise Tests Auto Test Auto Test Lastest a CA Usersadam sandman Documents My Rapise Tests REST Test Project REST Test Project cotest Save cument fiestas C Temp RapiseTests ECF_AutoProjectBackup DO NOT DELETE ECF_AutoProjectBackup DO NOT DELETE sstest cat Select the New Test option The Create New Test dialog will appear Follow the instructions on this dialog Open up the Rapise Start Page Spiraleam Documentation TE HTa a i i Open Spira Dashboard Spira New Testi Test Description Bapes Gusts Stari Gude Use the dashboard io link fests to Preparing Firg fox for Testing fest cases create and run test sets Propanng Chrome for Testing view aulomation hosis and more Pay User Functions Spira New Test veers Script Spin New Testl is Parameters ij Create New Test Mita Properties ID Open Exiting Test Project FROIN Stort Recording Test Foider TCODOO1 TestCase TCOOD006 Quick Start Guide HTMLS In the Shortcuts section click on the Create New Test option Shortcuts AG Create ate New Test Ly Open Existing
118. Now click the Send button and the request will get sent to the web service This will return the list of books serialized as a JSON array of objects 2015 Inflectra Corporation Formatted JSON Rapise User s Guide Author Age 125 Id 3 Name Arthur Conan Doyle Authorld 3 Genre la 2 Name Murder amp Mystery Genreld 2 id 1 Name Hound of the Baskervilles Author Age 125 id 3 Hame Arthur Conan Doyle b We have now completed the creation of our second test operation Click on the Save Requests button in the Rapise REST Ribbon to make sure our changes have been saved Now click on the Clone request icon in the REST request explorer in the right hand side of the screen Enter the name Add_Book in the dialog box and click the Clone button This will create a new REST request with this name E start Page E MyRestTesti js Lal LibraryinfonmationSystem rest REST Request Nanna Method Credentials Headers Farameters EES El Add_ Book a a Libreryinformation System rest E EREA FP A A E T ee aT ET ee SS Get_Session GET lt hthpo aww ibranniormatonsystem org Seniesa Resi Senos svobook session _d isession_idi 7 Send an Get Bocien ibranan a Add_Book Name Walye Opersinans Accept applicationison Content Type apmicalionison 2 wa Hame Value Opersinans session_id B2d99boo 37ed
119. Passed 7 Failed Pass W Balance DoAction 14 09 33 134 Assert Retumed Value true Pass U d OK DoClickl 1409 3340 Assen Retumed Value true Pass 0 CJ Balance 14 09 33 40 Test Passed 2 Failed Pass O ji a Application DoMenull AccountBat T 14 09 35 065 Assert Retumed Value true Pass 0 k CJ Ext 14 09 35 206 Test Passed Failed Pass 60 C Program Files 14 09 35 06 Passed Failed Test Pass O T tak33 Pass 33 Failt info Matching Criteria Matching criteria determine how to compare the filter string value you input with the values in the report You can select from 16 matching criteria Press the button marked A above the column you are filtering to see the possible criteria start Type A m Contains Ends with Does not start with W Does not contain Does not end with Does not match Not Like Predefined Filter Values lf we expand the filter cell s drop down menu we will see a list of predefined filtering options 2015 Inflectra Corporation Rapise User s Guide ent Status Iter ls a Custom 0 Blanks NonBlanks 0 Pass 0 e Custom This option has to do with the next section Custom Filter Options e Blanks Matches all rows where the value for this column is blank e NonBlanks Matches all rows there the value for this column is not blank e All other predefined values are copied from cells in the column you are filtering Custom Filter Option To create a filter
120. REST definition file rest that will store all of your prototyped requests against a specific REST web service The various REST requests are then created in the REST definition builder E MyRestTestLjs gE LibraryinformationSystem rest E Start Page e MyRestTest1_27013 06 19_14 49trp REST Request i ed ea 5 Name Get_Books 4 c LibrarylnformationSystem rest e Get_Session Method GET hbttp Avww libraryinformationsystem org Services RestService svc book session_id session_id v Send Get B Credentials librarian X Add_Book Headers A Name Value Operations Accept application json Content Type application ison gt Parameters ja Name Value Operations session_id 82499bec 37e4 4c64 820e a2d798cd1e84 InsertinURL X Body v Response Header Response Body Formatted JSON a Name Value Status Code 200 OK Content Length 2173 Cache Control private Cnntont Tuna sonhestanhenn rharcat H Q 2015 Inflectra Corporation 138 Rapise User Manual Each REST request can then include the following items e Method the type of HTTP request being made GET POST PUT DELETE etc e URL the URL of the web service request with any parameter tokens included e g session_id in our example above e Credentials Any HTTP Basic Authentication Headers e Headers Any other HTTP headers both standard and custom e Parameters Any parameters that hav
121. Rapise User Manual Version 3 0 Inflectra Corporation Friday April 17 2015 i inflectraZ 2015 Inflectra Corporation 2 Rapise User Manual Table of Contents Foreword 0 Part Company amp Copyright 9 Part Il Rapise User s Guide 6 1 AABDOULTNIS GUIG Ciiecaceariscece teenie teiceden a aa esti aauidewatebes 6 2 GIOSSANY ss tseieee Sateen a duh ewe l ea ctieden cadet ates a a a secermsteneretndeet 7 3 Getting Starte dirotia a eaa roaa ra a a a A a araa 7 Overview a a a a a E 8 Samples Nde X crai a a a a a a aa e E aSa aea a akae 9 P toriak WeD TESSIN aaa aE dere eva aa AEAEE AEE E E 12 UPORTAL Windows Testings e aa a ea aE E aa a EEAS 21 Tutorial Testing Adobe Flex Applications nunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnnm 31 Tutorial Testing REST Web Servite S oscri Aa aE a Conse eia a S Aa EEA aaa Eaa 40 TUCO Hale MODIS eS CLIN seran aes ca sie een ete aE aE EEEE Ea EE aA A rE 51 T torak amp pl ratory TES UNG riiai 64 4 Feature S cea A R ER A R 75 Recording and Learning sirenenet naroa aana aaaea a eaaa aAa Aea RE aa aAa a AORA aaa a a aaa a DA aA aaa AAAA ANa EAER AANA a RENGER SA 76 RECOM innean E a E a 77 LONO e ere tere metre rer ete meme ren eerie er err ser ter emerr rrr nereret ne crtter et Teer reer trrtrre 79 ANAO ROCOTO ocacccsevtscace causes sciee A E vemos mera eee 81 ADSolute Analog RECOrdNge areni A A menos 83 Relative Analog Recordihg
122. Start Tracking Ctri G MainForm AUTDothet MainForm a H propertyGrid1 System Windows Forms PrapertyGrid checked ListBox System Windows Forms Checked ListBox dateTimePickerl System Windows Forms DateTimePicker dataGridView1 System Windows Forms DataGrid View H too lStrip 1 System Windows Forms ToolStrip btAlias System Windows Forms Button listView2 System Windows Forms ListView Ill listView 1 System Windows Forms ListView contexthienuHolder System Windows Forms Label H autTabControl System Windows Forms TabControl treeYiewNoCRiSystem Windows Forms TreeView autLabel System Windows Forms Label treeViewCB System Windows Forms TreeView autEdit System Windows Forms TextBox radio2 System Windows Forms Radio Button z Features The Managed Spy has the following features ma il El ManagedSpy Properties Component Type Handle ls Managed E Misc Accept Button AccessibilityObject Accessible DefaultAction Descrpti Accessible Description Accessible Name Accessible Role ActiveContral Active MdiChild Allow Drop False Allow Transparency False Anchor Top Lett Auto Sci False cale Auto Scale Base Size 513 yg Mm 1180844 True Default e The Tree pane lets you view the hierarchy of NET objects available in the application e The Properties pane lets you view the exposed properties of the highlighted NET object Commands In addition to viewing the object hierarchy and object
123. System Release 1 SP2 E 1 0 2 0 0001 Iteration 001 1 0 2 0 0002 Iteration 002 2015 Inflectra Corporation Rapise User s Guide e Then click on the Execute icon to start manual test execution That will bring up the manual playback screen r 5 Executing MS Paint Test E epep ere eere eeg EB Z U A Aral A107 Aly y Bas ij Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 A Step 1 of 8 Please follow the directions outlined in the box below User starts up the MS Paint Application Expected Result The application loads with a blank canvas Sample Data Actual Result Please enter the actual test result if it differs then click the appropriate button WBZ U A Aral A310 Ay My Bas i i Add Attachment Log Incident On this screen we shall follow through the steps listed in the test case This involves opening up MS Paint creating a new canvas adding some lines using the pencil and then adding some text using the text tool As you perform these steps click on the Pass button to indicate that each step has passed You can also minimize the manual playback screen by clicking the gt button Once you get to Step 7 we shall pretend that MS Paint failed to display the text correctly Enter in the Actual Result a message to that effect 2015 Inflectra Corporation Rapise User Manual Pen 5 Executing MS Pa
124. T Learning an object refers to the process of Rapise collecting enough information about the on screen item to be able to reference the item when the test script is run without ambiguity and regardless of its location on the UI Value When Rapise learns an object it records the object s type its name and how to find the object again locator It saves everything it learns to the script so that the object can be identified when the test is run Rapise gives the object a simple name so that you can easily refer to it later if you decide to modify the script Usage Objects are learned in two ways 1 during recording or 2 explicitly Recording During a Recording session Rapise learns about each object with which you interact For details see Recording 2015 Inflectra Corporation s Rapise User Manual Explicitly 1 Open the Recording Activity Dialog Instructions are HERE 2 Place your mouse over the object you wish to learn It should become surrounded by a purple box 3 Press CTRL 2 4 You will see a new entry in the Recording Activity Dialog signifying that the object was learned Everything Rapise learns about an object is saved in saved_script_objects You can see this variable defined in the lt project name gt objects js file that will be listed in the Test Files tab of the Rapise The following shows what Rapise saved about the Please enter your name text box in the TwoDialogs example Please_ente
125. Test Start Recording The Create New Test dialog will appear Follow the instructions on this dialog 2015 Inflectra Corporation 278 Rapise User Manual 2 6 3 Restoring the Default Layout There are two ways to the restore the default layout 1 On Startup and 2 In the Options Menu On Startup Press the Shift key while you open Rapise Keep the Shift key down until Rapise is done initializing Options Menu In Rapise select the Options button It is on the Ribbon in the Tools section in a A JJ Object Mgr Options Find in ae Files Tools The Options dialog will appear Go to the Tools tab Build OCR Font Database Reset Layout Java Settings Mobile Settings Spira Connection Settings Select the Reset Layout button Rapise will restart 2 6 4 Change Test Entry Point Rapise assumes that the entry point of a test Test function is defined in a file specified in ScriptPath property of the Settings dialog If you want to place Test function in another file then do not forget to update ScriptPath property of the test 2015 Inflectra Corporation Rapise User s Guide 279 2 6 5 Do Absolute Analog Recording Let s once again use our trusty over simplified TwoDialogs sample application to learn how to use absolute analog recording and use it to discover the value as well as the dangers associated with absolute analog recording Steps 1 Run the TwoDialogs sample AUT By default
126. VD Manager Tools Android Virtual Devices Device Definitions AVD Name Target Name Platfor AFI Le CPU ABI F Lr AVD for Ne Android 5 11 1 2 ARM armeabi v a nusnonnenannnoannnsnnnnannnnannnannnnannnnnn CETEETEETTETY Refresh s A repairable Android Virtual Device B An Android Virtual Device that failed to load Click Details to see the error you can then click Start to start the device and then connect to it using Rapise 2 Configure the Mobile Profile To begin the actual mobile testing create a new test using the File gt New Test option in Rapise Make sure you choose the mobile methodology option Mobile Mobile Support 2015 Inflectra Corporation s Rapise User Manual RJ Create or Open Test htto doctor spirateam a Fitek create new book 1 Ability to edit existing book 2 Ability to create new author New Test Case wir agy eet aioe on loan Test that the system lets you repor 1 Anil ta edit eevietind a thor Mobile Mobile Suppe Basic Manual Scripting Mode _ Ceme Locally Once you have entered the name for the new test with the mobile methodology selected you will be asked to choose the mobile profile Rapise ships with several default profiles for now select the one that is closed to the device you want to test we recommend the android generic profile Mobile Test Setup When you click the OK button Rapise will create a new mobile test wit
127. X Severity ijg Detected Release None z Resolved Release None Verified Release None bg ptes B Z U A Arial Miy AY lal jea 4 Purpose The New Incident logging dialog box lets you log a new incident also known as a bug or defect into a connected SpiraTest instance If you logged the new incident during a manual test execution it will be linked to the current test run How to Open You can open the New Incident dialog box by either clicking New Incident in the Manual Ribbon or by clicking the Log Incident button on the Manual Playback dialog box Details Description Details Description Name This is a new incident Description B Z U A Arial Mioy AM BHSE ja was trying to create a new book in the system and it displayed an error message Type Bvo wa Detected By Fred Bloggs O O gt Z T Owned By NONE Priority None x Severity None Detected Release _ None Resolved Release Non niii Verified Release None The Details Description section lets you enter the short name and long description of the new incident as well as the following fields 2015 Inflectra Corporation Rapise User s Guide 29 Type the type of the incident e g bug Detected By who found the bug typically your user Priority how important the bug is Severity how crit
128. a Adana a Kaadaa 187 Tests ANG SUD TSS croire aa ao ra aaa a e eaa E a a E 188 5 Dialogs Views and MenusS sssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn mnnn 192 Accessible Events DIQIOG ecaciicicesccaseasesasccvasiasiaceteas co scaseiaasvevcscetteaeecsicdaetasber cea sescessass0sses2etee sucdcecasacasieveixoeccueteis 192 Add Web Service Dice Gy oetiiccccecccsns eek ee a ccs ca ocak ated a a 193 Create New TES t DialOG sisicisisis roaa e ad a E aaa 193 Create SUD TESt Dialog ironia a a A E AE 198 CONtenNt VIEW sssini p aE a a aie aaa a E 199 Enter TILER criteria for DN ALO Oire oia a aeaa aa ra aaa eE a e aa aa aaaea eaa EEEa aaea 199 Errors Vie W cetara a a a a a aaa a a 201 Find and Replace DIGIOG c ino enere teana eae a ea aaea aeae AAE aaea ai Ba aaa 202 PING Re SUITS VIEW noiire eaa Goce ns tate seca eee e ar ae EE Eaa 203 PNA Tex dlog as e E ee 204 image CaDtUre caoi Soc auce den edicecmansns cet dunaeisehanauenctmnues a scheuundenanwetvncicestuntins calienanssicoscevecuooseuraece 205 TNGIG SE EO GUN O mianra A E O r aED 207 Manual PlayDACK ssiiseiisesisenin aa A a eaea a sS aa 210 Manua TSU OO a a OE 212 Mobile Settings Malog iian a eaa aaa a a aE a A A aea aa oaa 214 Mobile Test Locator Dialog ana aa A E A ASORO 218 NameValue Collection Editor Dialog iisiscessscceccencescavcncdientasccensstateccccudstusecencscubceatectvesscdsaviedvsseccsseeseceseeuuexteatxntens 220 2015 Inflectra Corporation 4 Ra
129. a Doc uments Rapis Samples CreateNewBook CresteNewbook sstest 3 New Test i Create a new Test C ProgramData Documents Rapise Samples SampleA TM SampleATM sstest Open a tino Tet C Users adam sandman Documents My Rapise Tests Auto Test l Auto Test Lsstest Openan existing Tes C Program Files x86 nflectra Rapise Engine Engine sstest pen File San s i TE C Wsers adam sandman Documents My Rapise Tests Spira Mew Testl Spara Mew Test ssteH Save the coment fect C Users adam sandman Documents My Rapise Tests Web Test 1 Web Test L cstest e Coen Test from Sora Save to Spira C Users adam sandman Documents My Rapise Tests My Test My Testi sstest C Users adamsandman Documents My Rapise Tests TwoDialogsTest TwoDralogsTest sstest e Remember Debugger Layout If True Rapise will remember the window layout for debug mode separately For example this may be useful if you want to work full screen while authoring the Test and half screen to debug This way the AUT and the Rapise debugger fit on the screen e ShowDashboardOnStartUp If True the Spira Dashboard will open automatically when Rapise is opened e ShowStartPageOnStartUp If True the Start Page will open automatically when Rapise is opened e StyleLibrary determines the color scheme of the Rapise window If you click on StyleLibrary you ll notice that a drop down arrow appears to the right Press the arrow to see all of the Style options 2015 Infl
130. a choice between two strings ab ba describes the set ab ba Denotes a sub expression abc d describes the set albcd d Denotes one character chosen from all the abcde describes the set characters with the brackets You can use a b o d e a hyphen to denote a range A Z describes the set of all one character alphabetic capitalized strings A B G A Z n m Quantifier expression Meaning Between abc 1 2 describes the set n and m occurrences of whatever sub abc abcabc expression or character precedes A The beginning of a string a matches all strings that begin with an a The end of a string a matches all strings that end with an a Precedes a special character to take away represents the set any special meaning pn nge a g many J A string and regular expression match if the string is an element of the set described by the regular expression Usage In Rapise you must prepend regular expressions with the string regex So the regular expression describing all strings would be regex There are three uses for regular expressions in Rapise 1 in Object Locators 2 in action overriding code 3 in Custom Libraries 2 4 4 7 Assert Statements Purpose An assert statement is a special Boolean condition that represents an assumption about program state at a particular point in test execution When an assert is encounter
131. ab 2015 Inflectra Corporation 24a Rapise User Manual Spira a Reload E I z cal Save Local Save Spira e The main Save icon will save the current test to Spira both the manual test steps and any automated testing files e The Reload icon will refresh the current test from the copy helds in Spira e The Save Local will save the manual test steps and any open automation files locally You can use this to save files before doing a batch upload to Spira Editor QF Add Step X Remove Step E E ta m Editor e The Add Step icon will add a new test step to the current manual test case displayed in the manual test editor e The Remove Step icon will remove the highlighted test step from the current manual test e The icon will move the highlighted test step one position higher in the current manual test The amp icon will move the highlighted test step one position lower in the current manual test External Tools Ga View In Browser i New Incident External Tools e The View in Browser icon will display the current manual test inside the Spira web interface e The New Incident icon will open the Incident Logging dialog box so that you can log a new incident in Spira Playback D Release Execute Manual Playback 2015 Inflectra Corporation Rapise User s Guide 245 e The Execute Manual icon will execute the current manual test When you click the Execute Manual icon you will be asked to
132. ailable File Bi Open fe Open Test from Spira W Save As W2 Manual Steps Save Save to Spira ca Web Services File The File section provides the following options e Save saves the current test locally e Save As allows you to create a new differently named copy of the test you are editing e Save to Spira allows you to save the Rapise test so that it updates the version in your Spira test management repository e Open Test from Spira allows you to open a Rapise test that is stored in a Spiralest test management repository e Manual Steps displays the Manual Test Steps Ribbon that lets you view and edit the manual tests associated with this test e Web Services allows you to add a new web service definition to your Rapise test Clicking on this displays the Add Web Service dialog box Recording and Learning Record Learn iarere R SAPA Recording amp Learning e Press the Record Learn button to open the Recording Activity Dialog Debugging No Debugging Level 1 Minimal hi Debugging 2015 Inflectra Corporation 238 Rapise User Manual e The top drop down list specifies if you would like to use an External Debugger If so you can either connect on execution the Run with External Debugger option or only connect if an error occurs the Run External Debugger on Error option e The lower drop down list controls the Verbosity Level Executing Play Executing e Press Play to execute
133. alogs Test 1 Test execution done d Output Warnings Errors Find Results NUM inflectra Corporation 3 Choose HelloFlex application and press Select recording will start R Select an Application to Record Select From Running Applications Run Applicaton ei HelloFlex Intemet Explorer C Program Files intennet Exploreruexplore exe Applications Available Applications Path Uate Photoshop CS3 Untitled 21 C Program Files 86 Adobe Adobe Photashi C Program Files Dell TPad ontex exe B324 C Program Files DellT Fad Apnt Ex exe HelloHex Intemet Explorer PEIN C Program Files ntemet Eploreriexplore ex 5 8 Help AndSamoles Microsoft Visual Studio i 111756 C Proaram Files amp amp 6 Microsott Visual Studia 4 In HelloFlex application press Button and then press Ok in the alert message 2015 Inflectra Corporation 38 Rapise User Manual Button Pressed 5 Then press Verify button on Recording activity dialog and click on Hello Flex label In Verify Object Properties dialog check Enabled property M AutomationName Hello Flex I Bitmap Hello Flex BwBitmap Hello Flex Fi Class Internet Explorer Serve i ClassName ms controls Label T feo fra T omens fra DO DisabledColor 11187123 ra tue al 6 You have recorded three basic steps of your test 2015 Inflectra Corporation Rapise User s
134. ample we will parameterize the Test function we created in step one function Test function Logic searchterm our new function encapsulates the test logic Set Text using searchterm SeS Obj1 DoSetText searchterm nere we changed a hard coded value into a variable elnek of DENG Ses Ob42 2DeClick Hooe imt leotra ydeon t Forget ro Cali your new funcoi en 3 Create the test case data In an excel spreadsheet create a column for every variable in step two Add columns for any expected output values you wish to verify Each row is atest case In our google example we only have one input value searchterm and we re not comparing any expected output values so we will only need one column in our spreadsheet Save the spreadsheet in the test folder as searchterms xls A 1 SpiraTest 2 SpiraPlan 3 Spiraleam 4 Rapise 5 RemoteLaunch 4 Add spreadsheet to the test Use Add File s to add a spreadsheet to the test files Create File Create Spreadsheet New Group Reload Create Sub Test Remove from Test Del Remove All from Disk 2015 Inflectra Corporation ne Rapise User Manual 5 Attach Spreadsheet object to searchterms xls Drag the searchterms xls from files tree into appropriate place in your test source ane i igh Start Page E searchterms js Flas Test ls S eS Obj1 DoSetText thou Scripts fClick on btnG Neo Oh j
135. ample tests are described below ActiveX These samples demonstrate the testing of Microsoft ActiveX COM controls used in Visual Basic applications including the MSComCtl library The samples include the Microsoft FlexGrid Control MS Common Toolbar Control Microsoft Tabbed Dialog Control TabStrip and Microsoft Windows Common Controls 6 0 MSCOMCTL OCX AdobeFlex3 This is a set of regression tests for Adobe Flex 3 x controls AdobeFlex4 This is a set of regression tests for Adobe Flex 4 x controls AnalogRecorder This sample demonstrates Analog Recording FarPoint This sample script demonstrates using the FarPoint library to test the FarPoint SpreadSheet Control 2015 Inflectra Corporation 10 Rapise User Manual HTML5 This sample tests a HTML5 application This sample demonstrates the capabilities of the HTML5 DOM browser library The application under test contains various HIML5 specific controls such as color date datetime email range progress etc The sample is also available online at http www libraryinformationsystem org HtmI5 AUTHTML5 htm Java This sample tests a Java AWT SWING application This sample demonstrates the capabilities of the Java library The application under test contains various standard GUI controls such as button edit tree combo box menu etc Java SWT This sample tests a Java SWT RCP application This sample demonstrates the capabilities of the SWT and UlAutomati
136. aper Charles Dickens Historical Fcton ear 25 Peat onthe nile Agatha Gstie Murder amp Mystery Ect fia eetams Hotel Agatha Christie Murder amp Mystery Ean Click the Create new book link BOOK MANAGEMENT The following books exist in the systemg Create new book You should now be on the Create New Book page see image below Click the HOME button to go back to the main menu LIBRARY INFORMATION SYSTEM Welcome librarian Log Out Home Book Managemen CREATE NEW BOOK Please enter the book infonmation and click Insert Book Information Genre Science Fictian ka insert Cancel Now click the Author Management button 2015 Inflectra Corporation Rapise User s Guide 19 LIBRARY INFORMATION SYSTEM Book Management Author Management You should now be on the Author Management page see image below LIBRARY INFORMATION SYSTEM Welcome librarian Log Out Book Management Author Management AUTHOR MANAGEMENT The following authors east in the system Create new author a n eT a lasers ge Le Click the Create New Author link AUTHOR MANAGEMENT The following authors exist in the systen Create new author Create new author v author Fe ag 1 tanmeewan a it Charles Dickens Edit Arthur Conan Doyle m m Agatha Christie og Edit You should now be on the Create New Author page see below Click the Home button to go back to the main men
137. arameters GetRequestBodyObject GetRequestBodyText GetRequestHeaders GetResponseBodyObjec GetResponseBodyTesxt Fetbecnnonceteaaderc d Test dedko Object Tree esse aie Object Tree Each of the REST service objects in the tree has operations designed to let you call the method and access the returned body either in its raw text format or if it s a web service that returns data in JSON format it will be able to send receive data as native JavaScript objects Rapise provides you with access to the following attributes of the HTTP request before after the request has been executed e Request o Method o Url o Headers inc authentication o Body e Response o Headers o Body Rapise REST Test Scripts Once all the REST operations have been defined and saved as Rapise learned objects you can call the REST operations from within your Rapise test scripts 2015 Inflectra Corporation 140 Rapise User Manual function Test i ses LibraryInformationsystem Get Session DoExecute null var sessionId Ses5 LibrarylInformationSsystem Get Session GetResponseBodyObject Tester Message sessioonid seS LibraryInformationsystem Get Books DoExecute session id sessionIid var books Se5 LibraryInformationSystem Get Books GetResponseBodyObject Tester AssertEqual Book count matches 14 books length Var newBook newBook Name A Christmas Carol newB
138. arenij Fcolbarnirdowsz a HH Child Ho Shell DecObyect View HH SizeBar HH Child Sys TabControl32 Accessible Object This is the Spy dialog that is used for Accessible MSAA objects It is described in more detail in the Accessible Spy topic Becessible Tree Properties 4 ROLE SYSTEM CELL Pi State Tend Screenshoti ROLE _ STSI EM_TEXT 4 Primary select an application to record dialog ROLE_SYSTEM_GRAPHIC mk MSITStereC User ChidCount 55 ROLE _SYSTEM_TEXT Child CHILDID_ SELF PurposefROLE SYSTEM TEXT Defaur Action The ROLE_SYSTEM_TEXT J Description Select an Applicaton to Recomdj ROLE_STSTEM_TEXT BAD mel Explorer Server SAR Dialog appears before ROLE_SYSTEM_TEXT indexiaP arent P Recording ROLE SYSTEM_LINK mk MSIT Store C Wsers Public Documents Aapse Hel Locatien RECT t 246 108 Width 1101 Height 1966 t takes plece It quenes the user for which program to record es well as what ROLE SYST Hane 7 t Recording Library FOLE_STSTEM_LUNK mk MST Store C Users Public Documents Ra Fola AGLE_SYSTEM_CELL to use ROLE_SYSTEM_TEXT State i ROLE_SYSTEM_TET Value The Accessible Object section of the Spy dialog shows properties of the object that are visible through the Microsoft Active Accessibility interface Tree The spied upon object and its children are displayed here Properties Object fields and field values are displayed here Tools 2015 Inflectra Corporation 264
139. ary instead if your application was written using SWT e The Managed library is for use with Microsoft NET 2 0 applications It adds some additional NET 2 0 specific controls to the list supported in the Generic and UlAutomation libraries e The DevExpress library allows you to record and learn using the various controls provided in the DevExpress DXperience v1 0 component library This allows you to save time by having the system recognize the various controls directly e The Infragistics library allows you to record and learn using the various controls provided in the Infragistics component library This allows you to save time by having the system recognize the 2015 Inflectra Corporation Rapise User Manual various controls directly The Telerik library allows you to record and learn using the various controls provided in the Telerik RadControls for Winforms component library This allows you to save time by having the system recognize the various controls directly The Adobe Flex AIR library is for use with applications that are written using Adobe Flash Flex or AIR The Qt Framework library is for use with applications that are written using the cross platform Qt Framework The Web Services library is for use with API tests that connect to either REST or SOAP web services See the web service testing topic for more information See Also Recording To write an Object library specific to your application see Custom Libra
140. at value or content with what you expect it o be 2015 Inflectra Corporation Rapise User s Guide There are many methodologies with their own recommended approaches for designing testing strategies to ensure that application coverage is complete and meets the business requirements specification of the work being accomplished Inflectra in general recommends that you create a new test for each software requirement to track progress and for each issue in your issue tracking system to test for regressions Integration with Test Management To help you manage the requirements and issue tracking processes and to ensure that you have adequate test coverage Inflectra recommend that you use Rapise with a test management system such as Spiralest That way you can maintain all your requirements test cases and defects ina single place Once you have created the test you can playback your test from within Rapise run it from the command line or execute it remotely using RapiseLauncher in conjunction with Spiralest A report detailing the outcome of each step of the test will be automatically generated Recording playback the report and the Rapise engine are all customizable 2 3 2 Samples Index Rapise includes several sample tests that you are free to read modify copy and use They are located in RapiseDataDirectory Samples Unless you specified otherwise the RapiseDataDirectory will be C Users Public Documents Rapise The s
141. ated library and specify the purpose of each component in it e Matcher Rule it is used to recognize the object inside an application required for Record Learn and Playback e Events in Behavior Patterns handling events is required for Record e Actions in Behavior Patterns actions are used to examine or change state of the control required for Playback e Custom Accessibility Event Handler required for Record if some important events are not 2015 Inflectra Corporation 324 Rapise User Manual processed by Rapise engine as needed 2015 Inflectra Corporation Index 325 index A About this Guide 6 Accessible Events Dialog 192 Accessing Functions 109 Action 89 Active Accessibility 192 Add File 268 Add Web Service 193 Adobe Flex 31 Analog Recording 81 Assert 113 Automated Reporting 103 Bo Breakpoints 123 C Call Stack 270 Checkpoint 187 Create 113 Checkpoints 271 Code Completion 128 Code Folding 126 COM Testing 132 Command Line 100 Component Object Model 132 Content View 199 Control Execution 122 Create a new Recording Library 88 Create a New Test 276 Create File 268 Create New Test 193 Create Sub Test 198 Cross Browser Testing 294 Custom Library 88 Custom Recording Library 88 Custom Strings 132 220 2015 Inflectra Corporation D Data External 114 Data Driven Testing 114 Debugger External 124 Internal 121 Default Layout 278 Defining Functions 109 Dialogs 6
142. ates how to use the feature 2 4 1 Recording and Learning Purpose To understand what different objects might be found on a UI screen and how to recognize them record their characteristics and interact with them using Rapise Value A Ul screen entity object may consist of many different parts and components Actions on these objects and usage of these controls must be captured in different ways depending on the properties of the object Rapise provides five fundamental methods for capturing objects and corresponding user actions 1 Recording Rapise is able to track user interactions with AUT and automatically capture affected objects and corresponding user actions See Recording for more information 2 Learning there are cases when it is not necessary or is not possible to track user interactions with AUT In this case user can manually point to an object that should be captured by Rapise See Learning for more information 3 Analog Recording Absolute Relative this is for objects that are not standard in some important way and so activity on them cannot be captured using recording or cannot be specified after learning Absolute Analog Recording is used to track mouse usage movement and clicks and keyboard events For absolute analog recording the positions these events are recorded relative to the top left corner of the system screen In contrast in Relative Analog Recording the events are recorded relative to the up
143. automatically since there is a simple drawing canvas rather than discrete buttons and data elements to test To make sure that we have screenshots recorded whilst keeping the size of the screenshots reasonable use the following recording options 2015 Inflectra Corporation Rapise User s Guide 65 O W Record Screenshots Whole Window Record Manual w With Cursor Recording Now click the Record Manual button and choose MS Paint from the list of running applications in Select Application to Record dialog and then click Select to start recording As you click through the application the recording will display the list of steps and actions being captured Recording Activity for Untitled Paint Data Comment 37 1 User clicks at 47 11 in Application menu 42 12 User clicks at 42 12 in Application menu 44134 User clicks at 44 13 in New 15 9 User clicks at 15 9in Pencil 14 16 User clicks at 14 16 in Text 156 256 User clicks at 156 256 in This is some Change t t to This is some text 11 14 User clicks at 11 14 in Bald Merify Ctrl 1 Learn Cirl 2 Sam Spy Ctrl 8 Pick Object Analog Ctrl 4 _ _Simulated Caneel In this example we created a new canvas chose the Pencil tool created a drawing using the pencil entered some text and then made it bold 2015 Inflectra Corporation e Rapise User Manual
144. avaScript user function called function FunctionName in the Test user js file For example Wy Step 4 MyFunction EW BJU A Arial v A310 Ale Ye SIS Mobile Settings Dialog Purpose This dialog box displays the list of mobile devices that have been configured for use by Rapise and lets you create a new profile modify a profile or make a new profile based on an existing one Screenshot 2015 Inflectra Corporation Rapise User s Guide 215 Mobile Settings Select Profile android nexus7 Uri htto 127 0 0 1 4723 wdshub Details _ Primary Capabilities 6 app CA User Public Documents Rapise Samples sing Mobilet AUT AUT browserName device Name Nexus 7 platform Name Android platform Version 44a udid 015d24bc5d4fe05 Common Capabilities 3 auto Launch automation Name auto Webview Desired capabilities are a set of keys and values e a map or hash sent to the Appium server to tell the server what kind of automation session we are interested in starting up There are also various capabilities which can modify the behavior of the server dunng automation How to Open You can open this dialog box from two places e From the main Rapise Options dialog box when the Tools tab is selected e From the Mobile Spy tool when you click on the Mobile Profiles ribbon menu entry Menu Options This dialog box has the following menu options e Select Profile This dropdown list lets you select a d
145. b services make use of the Web Service Definition Language WDSL and communicate using HTTP POST requests They are essentially a serialization of RPC object calls into XML that can then be passed to the web service The XML passed to the SOAP web services needs to match the format specified in the WSDL SOAP web servces are fully self descripting so most clients do not directly work with the SOAP XML language but instead use a client side proxy generator that creates client object representations of the web service e g Java NET objects The web service consumers interact with these language specific representations of the SOAP web service 2 REST A RESTful web API also called a RESTful web service is a web API implemented using HTTP and REST principles Unlike SOAP based web services there is no official standard for RESTful web APIs This is because REST is an architectural style unlike SOAP which is a protocol Typically REST web services expose their operations as a series of unique resources which correspond to a specific URL Each of the standard HTTP methods POST GET PUT and DELETE then maps into the four basic CRUD Create Read Update and Delete operations on each resource REST web services can use different data serialization methods XML JSON RSS etc Why do we Test Web Services The purpose of Web Service Testing is to verify that all of the Application Programming Interfaces APIs exposed by your applicati
146. be created CAUsersvAll Users Public Rapise Tests Ci Users All Users Public Rapise Tests Public Rapise Tests sstest Specify methodology Basic Manual Scripting Mode Rapise supports multiple testing methodologies Select oneto be used for newly created test Create Ganecel You need to enter the following information and click Create e The name of the new test please enter the name of the new test that you wish to create e Folder please choose the folder on your local computer that you wish to store the Rapise test in e Specify methodology there are currently two methodologies available in Rapise 2015 Inflectra Corporation 198 Rapise User Manual o Mobile Mobile Support this should only be selected for mobile device testing o Basic Manual Scripting Mode this should be used for all non mobile testing e g Web Desktop Web Services Once you click Create the new test will be created and saved locally 2 5 4 Create Sub Test Dialog Screenshot You are about to create another Test inside the folder of current Test Please provide Test folder name PC CAUsers Public Documents Rapise Samples sampleAtTM Use Methodology Basic Manual Scripting Mode Rapise supports multiple testing methodologies Select ane to be used for newly created Test New Test should have own set of Objects If unchecked the test will re use objects from containing Test Le it will not have own file lt test
147. be in any text serialized format such as XML or JSON Response Response Header Formatted XML Name Value Status Code 200 OK Content Length 113 Cache Control private Content Type application xml charset utt amp Date Thu 20 Jun 2013 18 00 27 GMT SetCookie ASP NET_Sessionid 3ggghumykg54n4xb0 h Server Microsoft IIS 7 0 AspNet Version 40 30319 Powered By ASP NET 2015 Inflectra Corporation 236 Rapise User Manual Response Body Formatted XML po esa lt sting xmins hittp schemas microsott com 2003 10 Senalization gt 6c8a3e1e edel 42d0 bea4 7375604691 5 lt string gt Response Bady Formatted JSON 62499bec 3 e4 4c64 820e a2d 9hcd1e84 This displays the output from the last web service request It has several tabs e Response Header Displays a list of the HTTP response headers name and value If the request received a 200 OK code back it s displayed in green if it receives an error code back it s displayed in red e Response Body Displays the raw text of the HTTP response body received from the server e Formatted XML If the received body content is identified as XML this tab displays nicely formatted XML that is easier to read than the raw response body e Formatted JSON If the received body content is identified as JSON this tab displays nicely formatted indented JSON that is easier to read than the raw response body Operation Explorer ae jll 4
148. bity to report on books on loan Test that the system lets you repor 1 Abily ta edit ewietind a thar Mobile Mobile Suppo Basic Manual Scripting Mode Create Locally Cancel Once you have entered the name for the new test with the mobile methodology selected you will be asked to choose the mobile profile Rapise ships with several default profiles for now select the one that is closed to the device you want to test you can always change it later Mobile Test Setup Specify Mobile Profile android nexus When you click the OK button Rapise will create a new mobile test with this profile selected Now you need to modify the profile so that it correctly matches the type of device you are testing and also so that it correctly points to the Appium server that you are using to host the mobile devices Click on Options gt Tools gt Mobile Settings to bring up the Mobile Settings dialog box 2015 Inflectra Corporation 154 Rapise User Manual Mobile Settings Select Profile android nexus7 Uri Details _Prmary Capabilities app browserName device Name platform Name plattorm Version Common Capabilities auto Launch automation Name auto Webview P ir B iliti hittp 127 0 0 1 4723 wd hub 6 CA User Public Documents Rapise Samples Using Mobilet AUTAT Nexus 7 Android 44 015d24beSd4el5 3 Desired capabilities are a set of keys and values e a map or hash sen
149. bject 2015 Inflectra Corporation Rapise User s Guide 231 e The Cancel Button The Cancel button stops Recording closes the RA dialog and discards any actions recorded or objects learned during the Recording session e The Finish Button The Finish button ends the Recording session The RA dialog is closed and the information collected during Recording is used to create a script The script is displayed e Transparent Option While the RA dialog is open it is always on top The Transparent checkbox makes the RA Dialog transparent so that you can interact with objects behind it The image below illustrates the difference TGE LETE Ce TE d i CE r Q Hesa j di a Liki a pi Tire ina eee sj a Lihat actor Usa uri i bd TIN eT TG ae yj oe chk ot A Sa 118 Hms chk a 11 6m Reo Mire check oe GE TE Hae cik 1 die re 3 Moore chk at TOE Ga irim o PARTI PITH Fy drag ee ii fied SOP Lar cepts H Sp ee ee ee a rte iim Ok gt wh Im amg Lurk 1 LirA TE Pe j 3 Tar mir pea Tt Tete re jaim Ei 2 5 23 Replace Text Dialog Screenshot 2015 Inflectra Corporation 232 Rapise User Manual Find and Replace gt Find Ag Replace Find what SEEE Replace with Spira RestService_40 Project Look in Current Document ij Find options Match case Include sub folders Match whole word Include hidden Use Standard Search Replace Replace All Purpose Replace occurrences of the Sear
150. cFusion o FarPoint These libraries are not included in the free Rapise Express edition You can add your own Recording library one that understands the objects in your application e Selecting Auto as the application recording library will cause Rapise to select the one that it deems is most appropriate e UlAutomation Use this library with NET WPF and Silverlight applications When used with NET 2 0 applications you should also include the Managed library as well When used with older NET applications you should use the Generic library instead e Internet Explorer HTML Chrome HTML and Firefox HTML are used with Internet Explorer Google Chrome and Firefox respectively They understand only the DOM document object model and therefore capture interactions with the web application not the browser They also have access to passwords Tests recorded with either of the libraries can be run in any of the three browsers See Cross Browser Testing for more details e User refers to Custom Libraries e The DOM GWT library uses the Document Object Model to learn or record objects found in the Google Web Toolkit e The DOM GWT Ext library uses the Document Object Model to learn or record objects found in the Google GWT Ext library e The DOM SmartGWT library uses the Document Object Model to learn or record objects found in the Google SmartGWT library e The DOM jQuery UI library uses the Document Object Model to learn or record object
151. can be played back by a computer 2015 Inflectra Corporation 162 Rapise User Manual Step 1 Creating a New Test To start manual testing simply create your test as normal using the New Test dialog box Then once the test has been created click on the Manual Steps icon in the Test ribbon and then you will be taken to the Manual Editor with the Manual Test Ribbon Visible Test Manual e amp Reload qv Add Step E View in Browser tb Release RY Record Screenshots Save Save Local 9X Remove Step E3 New Incident Whole Window Execute Record te Manual Manual With Cursor Spira Editor External Tools Playback Recording The test step list will initially be empty G Start Page 3 MS Paint Test TC34 js 1 Manual Steps nmt Steplid Description Expected Result Sample Data Step 2 Recording Some Steps Now you should open up the application you want to record from In this example we shall be testing the built in Microsoft Paint application This is a good candidate for manual testing as a lot of the functionality is hard to test automatically since there is a simple drawing canvas rather than discrete buttons and data elements to test To make sure that we have screenshots recorded whilst keeping the size of the screenshots reasonable use the following recording options wa Record Screenshots Record Manual L With Cursor Whole Window Recording Now click the Record Manual button and choose MS
152. cedure for the destination test In this case click the on the right hand side marked Destination and choose the destination objects js file Selecting the Objects to Merge Once you have selected both the source and destination object files the system will display the dialog that lets you see all the objects defined the source and destination tests You can now choose which objects to add delete to from the destination test Se a ig ig eee Denain O EF CAUsersiPublicDoumens RapiseSamplesLoraryi 2 CAlsersi Public Qocuments Rapise Samples jQuery Uly i y e ID og In Usemame_ Paseoword e thd Book_Management JE Create mew bot Se Hame JE Author aa Genre_ Maincoment_grd Log_Out Slider SE datepicker A DatePicker Accordion For each object in the source test you will see an expand icon in the left hand side and for each object in the destination test you will see an expand icon in the right hand side To add an object from the source gt destination test simply click on the not equals icon and choose the equals option To remove an object from the destination simply click on the not equals icon and choose the remove X icon Warning All of the changes you make to the objects file are committed immediately so only delete objects in the destination test that you no longer want to be part of the test 2 4 2 Playback Purpose
153. ch Term text with the Replacement Text in the currently visible Source Editor How to Open Ribbon gt Edit Tab gt Search menu gt Replace button Replace Tab e Find what Place the string you would like to search for in the Find what text box e Look In this option specifies where the search will take place You can limit the search to current document current selection current test the entire test and subtests or a specific folder e Match case option If unselected case is ignored in the search e Match whole word option If set to true parts of words will not count as matches e Replace with text box All occurrences of the string in the Find what text box will be replaced with the string in the Replace with text box when you press the Replace button 2 5 24 Report Viewer Screenshot 2015 Inflectra Corporation Rapise User s Guide 233 R Gd anise 2 1 323 paramData Documents Rapi amp reasteNewBook Create ok sstest fe i pil x C ProgremData Documents Rapise Samples i gt fig gt X i Merge Calis Paal Collapse Plain Hierarchical Z a Save Layout 3 ME Expand port Export Choose Images to Excel toPDF Reset Layout Columns a Gi Start Page B CreateNewBook js JB CreateNewBook user is Qi CreateNewBook_2014 09 04_11 47 4p x ME ap Drag a column header here to group by that column al cel ide Type Start Name Status Browser Comment Iteration a F CreateNew Book objec
154. ck in the mobile device G Start Page Android Test 3js Android Test 3_2015 04 16 23 51 1p vy x Drag a column header here to group by that column Type Start Name Status Comment Iteration E E 4 Message 23 50 41 088 Starting scenario Test Info Assert 23 50 56 250 text1 DoClick Pass Returned Value true 0 Assert 23 51 05 477 edit_username DoSetText test user Pass Returned Value true 0 Assert 23 51 14 211 edit_password DoSetText test pwd Pass Returned Value true 0 Assert 23 51 18 253 android widget Button DoClick Pass Returned Value true 0 Assert 23 51 19 129 home DoAction Pass Returned Value true 0 T tt9 13nd et Ss a8 ald Test Pass If O Total 7 Pass 6 Fail 0 Info 1 This is the report of the test being executed Example You can find the Android sample tests and sample Application called AUTAndroid in your Rapise installation at the following locations Sample Android Tests e C Users Public Documents Rapise Samples UsingMobile AppAndroid testing a native App e C Users Public Documents Rapise Samples UsingMobile WebAndroid testing a web app Sample Application AUTAndroid e C Users Public Documents Rapise Samples UsingMobile AUT AUTAndroid we supply the sample application as both a compiled apk binary and an Android Studio Java project with source code See Also e Mobile Testing for an overvew of mobile testing with sub sections on testing o using iOS o using Android
155. column How to Open In the Report Viewer open the drop down menu for one of the filter cells select the Custom option see below nent Status Ite Aa H Custom 0 Blanks 0 NonBlanks 0 0 Pass 0 Conditions All ofthe following conditions Status DENull id Equals Does not equal lt Less than Less than or equal to G gt Greater than FJ gt Greater than or equal to Like Matches Regular Expression 2015 Inflectra Corporation Rapise User s Guide 201 You may specify as many conditions as you like Each condition has two properties a Matching Criteria on the left and a filter value on the right The filter value is a string and the matching criteria specifies what constitutes a match For more details look HERE Filter Aggregation There are two ways you can aggregate combine filter conditions All of the following conditions A Ay G e All All conditions must be true to constitute a match e Any At least one condition must be true to constitute a match Buttons e Add Add a extra condition row e Delete Delete the selected condition You can select a condition by clicking on the field name to the left of the matching criteria DBNull b e OK Close the dialog and apply the filter e Cancel Close the dialog Do not apply the filter 2 5 7 Errors View Screenshot Purpose The Errors View displays execution er
156. cording Activity dialog NOTE The key sequence Ctrl 4 starts an absolute analog recording session Press the Analog button to start the relative analog recording session When you press the Analog button two things will happen Firstly the status bar of the Recording Activity dialog will change to read Click on object to start analog recording 2015 Inflectra Corporation 282 Rapise User Manual Recording Activity for Two Dialogs Sample Object Acton Data Comment Werty Ctrl 1 Lean Ctl 2 Learn Ctrl 2 kz Spy Ctrl 5 Pick Object Pick Object Pause _ Simulated h Cancel Finish Ctrl 3 Click or TRET to start analog aera a Trangparent After the next mouse click Rapise is recording all mouse and keyboard activity until you stop the recording Secondly a minimized window will be created that indicates that analog recording is in progress and allowing you to stop the recording Analog Recording al z To Finish recording playback use Ctrl Break shortcut or press Close button Close 7 Go to the TwoDialogs AUT and click anywhere in the application s window to start the analog recording Click the mouse on the empty Please enter your name text box Type a name in the text box Hit the lt tab gt key or click the left mouse button to advance the input position to the second text box Type another name Move the mouse to the OK button and press the m
157. ctions js e behavior array of behavior patterns that define object actions properties and events e role accessibility role of the corresponding node in the accessibility tree of the control The role equals to a Role of the accessible element as displayed in the Spy e or_rules array of rules defining child nodes joined with logical OR Any OR rule can be satisfied to consider child nodes matched e and_rules array of rules defining child nodes joined with logical AND All AND rules must be satisfied to consider child nodes matched e save_to SeSObject created for accessibility tree node corresponding to this rule is assigned to the field with save_to name of the top level SeSObject l e if rule has save_to items element then you can access learned element using SeS ObjID items In many cases such named fields are used in behavior patterns e zero _to_many if this property is present in the rule and set to true then it means that parent rule may contain from zero to many of child nodes that match this rule 6 CustomListboxControl Behavior After defining the matcher rule we can proceed to behavior patterns Behavor patterns operate with SeSObject contents so they should not be aware about accessibility tree of the underlying GUI control and thus the same behawor pattern can be assigned to different matcher rules There are a plenty of behavior patterns defined in SeSBahawor js After looking at those patterns it is po
158. d Credentials button 2015 Inflectra Corporation Rapise User s Guide pa Header Parameter Credentials This will display the Add Credentials dialog box Add Network Credential Enter librarian as both the username and password and click Ada Now click the Send button and the request will get sent to the web service Lae ee Cat eee LibraryinformationSystem rest REST Request Mame Get_Session Method GET bttpswww_librarinformationsystem org Senrces RestService svc session Credentials librarian Body w j Response Header Formatted XML Name Status Code 200 OK Content Length 113 Cache Control private Content Type application eml charset utt 8 Date Tue 18 Jun 2073 20 01 05 GMT Set Cookie ASP NET_Sessionild acShexvcazumbo4tv4ng Server Microsoft lIS 7 0 AspNet Version 4 0 30319 X Powered By ASP NET The Response Header tab will display the headers coming back from the web service The Status Code 200 OK means that the request succeeded and that data was returned If you click on the Formatted XML tab you will see the XML serialized data returned from the web service 2015 Inflectra Corporation aa Rapise User Manual EE Start Page Fe eee LibraryinformationSystem rest REST Request Name Get_Session Method GET bttpswww libraryinformationsystem org Senaces RestService svc session lt Sena Send Credentials librarian X Body Response Bo
159. d sub test Record Start recording into selected sub test Save Save options of a sub test Show Objects Show objects form a sub test in the Object Tree Delete Remove reference to a sub test from its parent test 2 5 Dialogs Views and Menus This section details the Rapise GUI Each subsection describes the function of a particular Dialog View or Menu The purpose and consequences of all buttons options lists and check boxes are listed 2 5 1 Accessible Events Dialog This dialog was available in an older version of Rapise and has now been depreciated Screenshot Accessible Events Type i wind Va EWENT_OBJECT_SHO w ROLE_SYSTEM WINDOW Ox00d51 Ube 254 EWENT_OBJECT_LOCATIONCHANGE AOLE_SYSTEM WINDOW 0s00d510br EVENT OBJECT HIDE ROLE SysTEM_CARET invisible Ox0S3a1 000 EVENT OBJECT DESTROY ROLE Sy STEM_CARET invisible Ux0S3a1 000 aT 7 Ignore Mouse Move Purpose To display Microsoft Active Accessibility event notifications How to Open Press the Monitor Events button in the SeS Spy Dialog Widgets e Skip While the Skip option is selected the Accessible Events Dialog stops printing event 2015 Inflectra Corporation Rapise User s Guide 193 notifications The number of notifications skipped is printed to the right of the word Skip W Skip 195 e Ignore Mouse Move Do not print notifications of mouse movement e Clear Clear the Accessible Events dialog See Also e Microsoft Active Acce
160. d to the button Before we can expect DoLButtonDown and DoLButtonUp methods to work we have to first the mouse cursor to the button function Test Ses OK DoMouseMove 25 15 SeS OK DoLButtonDown SeS OK DOLButtonUup will accomplish that Notice that Rapise will actually move the mouse to the coordinates 25 15 within the OK button Also notice that if you move the mouse while the test is playing you will make the test fail As a last experiment in this arena try moving the mouse outside the boundaries of the OK button object before calling the DoLButtonDown function function Test Ses OK DoMouseMove 250 150 SeS OK DoLButtonDown SeS OK DoLButtonUp Once again the script will fail 2 6 8 Deal with a Simulated Object Example The toolbox of Microsoft s Paint utility c windows system32 mspaint exe is a compound object that contains custom buttons and is surrounded by a containing box To understand this completely start mspaint exe from the Rapise Steps 1 Open a new test under Rapise 2 Press the Record Learn button on the application bar 3 When the Select an Application to Record dialog appears select the Run Application tab Enter mspaint in the Full path to application edit box Press the Run button lf you are unfamiliar with MS Paint take a few minutes to play with it In particular notice the toolbox that appears in the
161. dd an HTTP basic authentication credential username and password to the request Saves you having to add the header manually which would require base64 encoding the username and password Add Network Credential Usemame libranan Password 2 5 33 Select an Application to Record Dialog Screenshot 2015 Inflectra Corporation 248 Rapise User Manual A Select an Application to Record Select From Running Applications ei Inflectra Library Information System Windows Internet Explorer C Program Files Internet E Applications Path C Program Files amp 86 Microsoft Office Office C Windows Sys WOW 64 rundll3 exe CAWindows Sys WO Wefrundl 32 exe Gl Adobe Photoshop C53 Extended Untitled 6601 C Program Files c86 Adobe Adobe Photos C Program Files DellT Pad Apntex exe EE C Program Files DellT PadApnt Ex exe 0 Help AndSamples Microsoft Visual Studio 471 C Program Files amp c86 Microsoft Visual Studio iz Html C Windows explorer exe teh Inflecta brary Information System Wind 260 Program Files wntemet Explorer explore ex 7 C Program Files amp 6 X PRO Vonage PRt _ Msg 6362 C Windows SysWOW 64 undll32 exe C TdmNotify KAH C Program Files Wave Systems Corp Truste 3 Tutorial Record and Playback Mozilla Fire C Program Files amp 86 Mozilla Firefox firefon e Windows Media Player i C Program Files k86 Windows Media Flaye TE XPRO Vonage C Program Files am
162. dy Formatted AML lt stning xmins hitp schemas microsoft com 2003 10 Senalization gt e46ee529 def 4oc1 9391 2deb370924 7 e lt string gt Since Rapise uses JavaScript as its scripting language it is usually easier to work with JSON JavaScript Object Notation serialized data rather than XML In the case of the sample Library Information System web service you can change the format that it accepts and retrieves by sending two special HTTP headers e Content Type application json e Accept application json To add these headers to the request simply click on the Add Header button in the REST ribbon tab This will display the following dialog box Add Request Header Choose the HTTP Header Accept from the list and enter application json as the value Repeat for the Content Type header You should now have the following populated request eee eS a Libra ationsystem res EF Start P Ed MyRestTesti LibraryInformationSyst t REST Request Method GET bttpAwwwlibraryinformationsystem org Sernices ResiSernice svc session Send Credentials branan Fa Headers A Hame Value Operations Accept application json Content Type application json gt Body Now click the Send button and the request will get sent to the web service 2015 Inflectra Corporation Rapise User s Guide 45 Response Header Formatted JSON Name Value Status Code 00 OK Content Length 38 Cache Control
163. e 2 Mouse over variables as you advance through the script A small box will popup displaying the variables values WAL Y o See Also e Breakpoints e Internal Debugger 2 4 5 1 2 Control Execution Purpose Control Execution allows you to manually direct the execution of the script 2015 Inflectra Corporation Rapise User s Guide 123 Usage 1 Set a Breakpoint where you want to take control of the execution 2 Use the buttons on the Debugger tab of the Ribbon to step through the script P Run Step Over SE Step In W Stop Debugger Step Out Break Debugger See Also e Ribbon Debugger 2 4 5 1 3 Breakpoints Purpose Breakpoints stop execution of the test at a specific line in the script They allow you to investigate program state and trace execution flow Usage To set a Breakpoint 1 Open the script you would like to debug in the Source Editor 2 Place the cursor at the line where you want a breakpoint 3 Press F9 or the Break button on the Ribbon Debugger tab Test Edit Debug P Run LZ Step Over SE StepIn WE Stop Debugger Step Qut g Break Debugger 4 lf the Debugger tab is not visible you can also use the Toggle Breakpoint option in the Edit tab Test Edit Debug lal Seve OA Cut e Undo Courier New 10 gt Toggle Breakpoint W Save As 3 Copy Redo Paste File Clipboard History Font Debug see Also e Ribbon Debugger e Control Execution 2015 Inflect
164. e 265 ES Start Tracking Ctri G H a z MainForm AUTDotNet MainForm EO ManagedSpy Properties a H propertyorid1 System Windows Forms Propertyorid Component Type checked _ListBox1 System Windows Forms Checked ListBox Handle 1180844 a dateTimePicker1 System Windows Forms DateTimePicker J sane True 3c dataGridView1 System Windows Forms DataGridView ak ai Accept Button E ia maelaiaieare caine AccessibilityObject btAlias System Windows Forms Buttan Accessible Default Action Descripti listView2 System Windows Forms Listview Accessible Description listView1 System Windows Forms ListView Accessible Name contextMenuHolder System Windows Forms Label AccessibleRole Defaut autTabControl System Windows Forms TabControl treeViewNoCB System Windows Forms TreeView caa w LInop alse autLabel System Windows Forms Label eeina i Li T Allow Transparency False treeViewCB System Windows Forms TreeView ictus Top Left autEdit System Windows Forms TextBox Auto Scale False radio2 System Windows Forms Radio Button B Auto Scale Base Size 513 The Managed Object section of the Spy dialog shows properties of the object that are visible through NET Framework reflection interface Tree The spied upon object and its children are displayed here Properties Object fields and field values are displayed here Mobile Object This is the Spy dialog that is used for Mobile objects It is described in more detai
165. e DoSetText librarian Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 13 862 Password DoSetText librarian Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 14 096 ctl00 MainContent LoginUser LoginButton DoClick Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 14 517 Book Management DoClick Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 15 063 Create new book DoClick Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 15 609 Name DoSetText The Restaurant at the end ofth Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 15 812 Author DoSelect Agatha Christie Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 16 015 Genre DoSelect Science Fiction Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 16 186 ctl0O0 MainContent btnSubmit DoClick Pass Internet Explorer HTML Returned Value true 0 Test Files Settings Object Tree Assert 11 47 16 654 Fallure in Test Fall Internet Explorer HTML 0 Properties Test Fail Output 22 88 Microsoft R Windows Script Host Version 5 8 Copyright C Microsoft Comoration All nights reserved SeS Player Starting Verbose level 1 Creating a locator Adobe Rex Adobe Flex Firefox library loaded 4 Output Warnings Errors Find Results NUM inflectra Corporation For more information on the report see Automated Reporting 2 3 4 Tutorial Windows Testing This section outli
166. e call it MSPaint 2 Press the Record Learn button on the application bar 3 When the Select an Application to Record dialog appears clear all selection boxes in the library list box You will have to scroll that section of the dialog box to make sure all selections are clear We are choosing no loaded libraries so that Rapise will not be able to cheat and know about any objects on the screen 4 select the Run Application tab Enter mspaint in the Full path to application edit box Press the Run button Applications that reside in C windows system32 can be started by their names because C windows system32 must be in the system path 5 When the Recording Activity dialog is displayed press Learn Ctrl 2 6 Do a small amount of things in Paint For example Click on the light grey color in the palette i Click on the tipping paint can Fill with color ili Click on the empty canvas iv Click on the red color in the palette v Click on the A tool Text vi Click in the canvas and type a few characters such as Hello vii Click in a blank place under the tool button 7 Look at the Recording Activity dialog grid It will be something like this 2015 Inflectra Corporation Rapise User s Guide 201 Recording Actrity for Untitled Paint Object Acton Data Comment Colors LClick 12 4 User clicks at 172 84 in Colors Fill with color LClick 5 10 User clicks at
167. e Recording Set this to True if you want to save screen images for each action during recording e Include in Report Set this to True to include the saved images in the execution report during playback e Widget Only Set this to True to only save the widget area in the screenshot as opposed to the whole window TestParams The TestParams section includes various custom test parameters Click to open the TestParams Collection Editor Dialog There is a build in set of test parameters for cross browser testing When you open up a test that uses one of the HTML libraries it will display the following built in test parameter that you can use to change the playback browser Command Line Entry Paint Test 4 TestParams 5 items Intemet Explorer HTML ism Record Title Intemet Explorer HTML in ServerProjectld Firefox HTML Server TestCaseFoldgChrame HTML Server lestCaseld 4 Execution CacheObjects False Command Interval 1000 teration Count 1 ibin l mle arm fH eet bed A Settings 2015 Inflectra Corporation 254 Rapise User Manual E Settings Metadata C Users Public Documents Shared Objects Path TwoDialogs Test objects js ReportPath TwoDialogs Test trp Script Path TwoDialogs Test js 2 5 39 S TestPath C Users Public Documents Shared UserFunctionsPath TwoDialogs Test user js UserFunctionsPath Path relative to the test directory to the file with user defined functions utilized in this te
168. e User Manual Mele aha eet 2 Libraryinformationsystem rest Gei_Books Method GET http Awew librarjpinfonmationsystem org Seraces RestSenice svc sesgoon Send Credentials hibraran E Headers Nare Value Operations Accept applicatonison Content Type zpplicationson x Body w For this request we need to pass through the SessionlD in the querystring Rather than hardcoding it in the URL we can make use of the parameterization feature of Rapise Click on the Add Parameter button in the Rapise REST Ribbon This will display the Add Request Parameter dialog box Add Request Parameter Parameters are used in the Request URL to genencize the REST request Name session_id Value 82499bcc 37e4 4c64 820e a2d798cd 1e84 Cancel Click the Add button and the parameter will be added to the request Now change the URL to URL http www libraryinformationsystem org Services R Then position the caret at the end of this URL and click the Insert in URL button This will insert the parameter token in the URL at the specified point REST Request Name Get_Books Method GET bttpswaww librarjinformationsystem org Senices RestService svc book session_id session_id ETE Credentials librarian X Headers A Hame Accept application json Content Type application json Parameters ja Name Value Operations session_id 82499bcc 37e4 4c64 820e a2d798ed 1284 InsertinURL gt
169. e been defined in the URL that will be called from the Rapise test script e Body The body of the request for POST and PUT requests This can be in any text serialized format such as XML or JSON When you execute the request it will return back the HTTP response headers and if it recognizes the MIME content type as either XML or JSON it will format it to make it more readable by the tester Cee ee gt eee LibraryinformationSystem rest REST Request Name Get_Session Method GET bttpswaw librarninformationsystem org Senices RestService svc session Ea Send Credentials librarian X Body Response Body Formatted AML lt stnng xmlins http schemas microsoft com 2003 10 Senalization gt e46ee529 7 def 4oc1 9391 2deb3 70924 7e sting gt Once you have finished with your prototyping of the web service test operations you can then save the request definitions and use the Update Object Tree option to populate the main Rapise Object Tree Web Service Object Recognition Each of the REST web service requests that has been prototyped in the REST definition editor is converted by Rapise into a scriptable object 2015 Inflectra Corporation Rapise User s Guide 139 Object Tree C Users adamsandman D et LibraryinformationsSystem a LibraryInformationsystem H 0 Get Books es DoExecute F Get Session i 0 ben GetCredential f Global GetMethod 4G User Functions GetName ar User Variables GetP
170. e shall pretend that MS Paint failed to display the text correctly Enter in the Actual Result a message to that effect 2015 Inflectra Corporation 168 Rapise User Manual Pen 5 Executing MS Paint Test E Si MS Paint Test a WBZ UA Aral A107 Aly My Basa ijl SS SSS Steo o EY REMY poes N GX A Step 7 of 8 Please follow the directions outlined in the box below Enters text This is some text Expected Result Sample Data This is some text SeS Text1 DoSetText This is some textir Actual Result Please enter the actual test result if it differs then click the appropriate button The text did not display correctly WBZ U A Aral A107 Ay ey Basa ij Add Attachment Log Incident Next we shall attach a screenshot of what actually happened and log a test failure and associated incident defect Step 3 Capturing and Annotating a Screenshot Click on the Image icon in the rich text editor associated with the Actual Result text box That will bring up the Drawing Tools screen that asks you to draw a rectangle to select a portion of the current screen to capture 2015 Inflectra Corporation Rapise User s Guide 169 HSA z e Ciega Nel Ema E Z F A size Color olg l 0 eee Oe al Pea i E i 2 aia bf y gos Na he p Fi fo ra Nil a A K ix 4 yi oa K Y Bi 4 ony j sa z a cae
171. e2 DoClick searchterms xs 15 l Logic Inflectra 7de Test Files Settings Object Tra 6 Use Spreadsheet to access the test case data In our example we use a Spreadsheet object and run the test logic once for every row function Test function Logic searchterm Set Text searchterm ing SeS Obj1 DoSetText searchterm Cliiek on DENG Ses Cpq2 AAPEEE Spreadsheet DoAttach searchterms xls Sheet1l Go through alill_cows while Spreadsheet DoSequential Read cell value from column 0 var term Spreadsheet GetCell 0 Jf Pease oc into hoegic funerion Logic term Using a Relational Database Rapise comes with the Database query global object that allows you to send SQL queries to a database and then iterate through the results The process for creating such a data driven test is as follows 1 Record a test The exact inputs you use for the recording will not matter as much as your interactions with the objects The following excerpt was recorded using www google com runeceuonm Test Set Text Inflectra ing Ses Ob gL 2bposetlext int lect ral 2015 Inflectra Corporation Rapise User s Guide Clack on btnG Ses 0b92 DoClick The actions recorded were 1 Type Inflectra into the search box 2 Press the Google Search button 2 Parameterize the Test function The Test function has all of the procedural log
172. eS home DoAction g_load_libraries Mobile This will click on the first menu entry then enter a username and password and then finally return back to the main menu Now to playback the test simply click Play in the Rapise test ribbon and the test will play back in the mobile device U Start Page Android Test 3 js wp Android Test3_ 2015 04 16 23 51 p v x Drag a column header here to group by that column Type Start a Name Status Comment Iteration o a A E Message 23 50 41 088 Starting scenario Test Info Assert 23 50 56 250 text1 DoClick Pass Returned Value true 0 Assert 23 51 05 477 edit_username DoSetText test user Pass Returned Value true 0 Assert 23 51 14 211 edit_password DoSetText test pwd Pass Returned Value true 0 Assert 23 51 18 253 android widget Button DoClick Pass Returned Value true 0 Assert 23 51 19 129 home DoAction Pass Returned Value true 0 spa isi9 8nd et Ss 8 a Test Pass Total 7 Pass 6 Fail 0 Info 1 2015 Inflectra Corporation 160 Rapise User Manual 2 4 9 This is the report of the test being executed Example You can find the Android sample tests and sample Application called AUTAndroid in your Rapise installation at the following locations Sample Android Tests e C Users Public Documents Rapise Samples UsingMobile AppAndroid testing a native App e C Users Public Documents Rapise Samples UsingMobile WebAndroid testing a web app
173. ect Profile iPhoned Uri htto adams4mac corp inflectra com 4 723 wa hub Details a _ Primary Capabilities 5 app Users elise brooks Ubrary Developer Xcode Derived Data AU TIO S gvdy device Name Goshen iphone plattom Name iOS platform Version TAA udid b54cfb 1c Ohad feb 95e 327 edid e4596 er Desired capabilities are a set of keys and values 4e a map or hash sent to the Appium server to tell the server what kind of automation session we are interested in starting up There are also various capabilities which can modify the behavior of the server during automation The example screeenshot above is for an iPhone 4 physical device running iOS 7 1 1 For any iOS device real or simulated you will need to provide the following e Uri this is the URL to your Appium server We shall discuss this shortly e app this needs to the path on the Mac running Appium to the Application being tested on the device e g Users user name Library Developer Xcode DerivedData AUTIOS gvdyymxgyzrigadivlylapawjoyd Build Products Debug iphonesimulator AUTIOS app e deviceName this needs to match the name of the device being connected e platformName this needs to be set to iOS e platformVersion this needs to be set to the correct version of iOS that the device is running In addition for physical devices only you need to specify e udid The unique device identifier of the connected physical device leave blank for simulated de
174. ect Tree button in the Rapise REST Ribbon to tell Rapise to update the Object Tree with our new requests me Ipdate Add Add Requests ObjectTree Header Parameter Credentials Rapise will open a command prompt window in the background and then display a confirmation message once the Object Tree has been updated Click on the Object Tree tab of the main Rapise explorer click the Refresh icon and you will see the LibraryInformationSystem heading displayed with the three saved REST request listed underneath 3 E Libraryinformationsystem H Get Books e DoExecute H a Get Session i i be GetCredential HO Global GetMethod ti User Functions GetName ar User Variables GetParameters GetRequestBodyObject GetRequestBodyText GetRequestHeaders GetRespornseBbodyObjec GetResponseBodyT ext ietbecnonceHeaaderc d gy 0 Test ieee Object Tree Medle Object Tree If you expand one of the REST requests e g Add_Book you ll see that it has a single operation DoExecute that executes the web services and a Series of properties available for inspecting or updating any part of the REST request prior to it being sent to the server In the next section we shall illustrate how you can write a test script using these learned objects 3 Writing REST Test Scripts Open up the main MyRestTestt1 js file in the Rapise editor It will initially consist of a single empty function Test 2
175. ectra Corporation 226 Rapise User Manual RecentT ests Show StatPageU nStartup StileLibrary StyleLibrary Path to a file having style library configuration Tools Tab ge Options 10 Office2007Blue Oftice 200 Black Office 2007 Blue Office 200 Sikver Build OCR Font Database Reset Layout Java Settings Mobile Settings Spira Connection Settings e Build OCR Font Database Pressing the Build OCR Font Database button updates the list of screen fonts that Rapise recognizes when using an OCR object Whenever you install new Fonts onto the computer you should click this button to have then added to the Rapise font database e Reset Layout Pressing the Reset Layout button restores the default layout Rapise will restart e Java Settings Pressing the Java Settings button displays the Install Java Access Bridge dialog box Installing the Java Access Bridge lets Rapise connect to Java AWT Swing applications so that they can be tested e Mobile Settings Pressing the Mobile Settings button displays the Mobile Settings dialog box This lets you configure the different mobile devices that are available for testing by Rapise e Spira Connection Settings Pressing the Spira Connection Settings button takes you to a dialog box that lets you change how Rapise is integrated with the Spiralest test management system It will let you change the URL username and password used to connect 2 5 20 Output View
176. ects in the user interface To start the Mobile Spy open the Spy icon on the main Test ribbon and select the Mobile option and the Mobile Spy will be displayed in Discovery Mode Now click the Get Snapshot button to display the application specified in the mobile profile on the screen ig Disconnect CJ Page Source Select Profile android nexus7 Discovery Mode A GoTo uri FP Edit Profiles Select Context NATIVE_APP Get Snapshot Ctri G Test Locator Connection Device Profile Context 4 0 android widget FrameLeyout 0 O 800 1205 4 Calculated oF 0 4 0 android view View 0 0 800 1205 Automation b 0 android widget LinearLayout 0 33 800 108 id AUTAndroid b 1 android widget FrameLayout 0 108 800 1205 oo aie msec Login 0 android widget FrameLayout 0 0 DropDownSelect XPath android widget FrameLayout 1 4 Layout Buttons Heigh 1205 TERN 800 Bars h 0 D Views 4 Properties checkable necked Kable bled t usable In the example above we are displaying the sample Android application that comes with Rapise AUTAndroid If you click on one objects in the user interface it will be highlighted in Red and the tree hierarchy on the 2015 Inflectra Corporation Rapise User s Guide os left will expand to show the properties of that object gt pise St py Ja R Disconnect CJ Page Source Select Profile android nexus7 Discovery Mode kB GoTo Url Edit Profiles Selec
177. ed the condition is evaluated A value of False indicates a program error In some languages execution will halt if an assertion evaluates to False In Rapise the result is logged to the report with failed status and execution continues Create a Checkpoint To create a checkpoint using an assertion you will have to manually alter the test script another way is to use the Verify Object Properties dialog during Recording 2015 Inflectra Corporation ona Rapise User Manual 1 Select a location in your script and a subset of application state to check 2 Query for the application state For images use the ImageWrapper class provided with Rapise For object properties Get lt gt methods For example var xx SeS 0kButton GetX X position of the object 3 Save the state If you are creating an image checkpoint you will want to save the image to a file lf you are looking at text data you could use a database spreadsheet or text file The SeSSpreadSheet class gives you access to excel spreadsheets 4 Compare Use the ImageWrapper class to compare images use Spreadsheet to read and compare spreadsheet data 5 Write an Assert Statement Make an appropriate call to Tester Assert method Besides a Boolean condition pass additional data to be placed in the Report Read about Tester Assert syntax in the Rapise Objects documentation part See Also e The test samples include a UsinglmageCheckpoint sstest e V
178. ed the expected result there were minor differences e Fail Either the current test step could not be performed successfully or the observed actual result did not match the expected result Test Step Expected amp Actual Result 7 5 Executing Ability to create new book gt Ets A Step 1 of 6 Please follow the directions outlined in the box below User opens up Internet Explorer and enters application URL http www libraryinformationsystem com beta Expected Result Sample Data The browser loads the login web page http www libraryinformationsystem com beta Actual Result Please enter the actual test result if it differs then click the appropriate button 5535S EB Z U A Arial A310 7 Ay My BES ii Add Attachment Log Incident This section displays the details of the current test step and lets you enter in the observed actual result e Description This displays the description of the action that the tester should carry out on the application being tested e Expected Result This contains a description of the expected result if the application performs as expected e Sample Data This optional field contains any sample data that should be used during testing e Actual Result This is a formatted text box where the tester should enter in what actually happened during testing It is required if you Fail Block or Caution the test step but is optional for steps that Pass
179. ee node_ modules appiumydocs an Version 6 7 BA1052q D aain ag Documents mobile web md node_ modules ium docs Get started with a playground in on aoa gas la J Explore new ideas quickly and easily troubleshooting md node_modules appium decs ean Create a new Xcode project f Start building a new iPhone iPad or Mac application J IntemationalMountains app zip ap Documents ios driver Check out an existing project start working on something from an SCM repository Open another project Please refer to the Apple tutorial https developer apple com library ios referencelibrary GettingStarted RoadMapiOS if you are writing your first iOS application and need an introduction into how to develop for iOS Since configuring Xcode to build and deploy an application to a physical or simulated iOS device is quite involved we have created a separate topic that explains the process Once you have the iOS environment configured you need to do is go to the Appium website http appium io and install the latest version of Appium Once it is installed you need to select the option for iOS and click the Play button to start the Appium server 2015 Inflectra Corporation 300 Rapise User Manual Appium Qq Ve Stop gt GET wd hub status debug Responding to client with success status 0 value build version 1 3 4 revision c8c79a85fbd6870cd6fc3d66d038a11
180. elect an item by name set value for a particular item you need to create a Custom Library Recording activity for CustomControl4pp Object Acton Data Comment String 2 LClick 189 5 Mouge click at 1859 5 in String 2 Global Sendk RIGHT Type Global Sendk RIGHT Type Global Sendk RIGHT Type tearm ctrl 2 S Spyictri 5 Pick Object Pause Analog Ctrl 4 Simulated Cancel Finish Ctri 3 Last captured SeSSimulated CustamControlApp F Transparent 2 LibUser A good place to start implementing a Custom Library is empty LibUser library included into Rapise All Rapise libraries live in C Program Files Inflectra Rapise Engine Lib folder and LibUser is not an exception LibUser library consists of two files 1 C Program Files Inflectra Rapise Engine Lib Lib User jslib which is a library declaration file 2 C Program Files Inflectra Rapise Engine Lib Lib User Lib User js which is a library definition file 2015 Inflectra Corporation Rapise User s Guide 317 3 Open Engine sstest Open the Engine sstest project in Rapise it is usually located in the C Program Files x86 Inflectra Rapise Engine folder Then find LibUser js in the project tree and open it You are about to start implementing a Custom Library to support CustomListbox Control Roa soWaes ihe Te j iy Open e Open Test from Spira 7 No Debugging f gt ra e uy Object Mor re fs Search Help ee Start s
181. en back to the test script with the Android objects listed 2015 Inflectra Corporation Rapise User s Guide 159 Dm ks wc E z toe at si TERE l te REAR e E Hapdi R y a D Fa Fa i Rapise 3 0 4 27 C Users adam sandman Documents My Rapise Tests Android Test 3 i Open E Open Test from Spira No Debugging i f O A By a ae Y Save As 1 Manual Steps Level 1 Minimal z E Save Record Learn a Flay Options Find in Save to Spira gy Web Services Spy Files File Recording amp Learning Debugging Executing Tools Object t Tree F x Start Page 2 TV id n Wi F aon C Users adam sandman D l F EREHE Script Steps FFEFEEEEEEETE gt ab E _widget_B tton android wan funct Test b abl edit_password edit_password cage PAR eap b labi edit_ username edit_usemame SeSConnectMobile gt laa home home i Recorded at Thursday April 16 2015 11 48 37 EM gt A text texti L t CI Global fg User Functions ar User Variables g load libraries Mobile Now that we have the objects we can drag them into the test script editor and write the following script HHHHHHFEHHE Script Steps FFFHTEFEFEH EF function Test i SeSConnectMobile SeS textl1 DoClick SeS edit_username DoSetText test user SeS edit_password DoSetText test pwd SeS android_widget_Button DoClick S
182. erifying Object Properties e Writing to the Report 2 4 4 8 Data Driven Testing Purpose Data Driven Testing is an automated testing technique in which test case data is separated from test case logic Each set of test case data consists of input values and a set of expected output values The actual output values are compared to the expected output values to determine whether the test passed You can perform data driven testing either using an MS Excel spreadsheet as the datasource or a relational database Using an MS Excel Spreadsheet The Spreadsheet object is useful for implementing data driven tests It allows you to connect to query and read an excel spreadsheet from your test script To create a data driven test you will 1 Record a test The exact inputs you use for the recording will not matter as much as your interactions with the objects The following excerpt was recorded using www google com TUNCEL TESEN bet Text Inflectra in g S69 Ob 71 DeoSerText intlect ra Click on LENG S69 Op sDoC lick The actions recorded were 1 Type Inflectra into the search box 2 Press the Google Search 2015 Inflectra Corporation Rapise User s Guide 115 button 2 Parameterize the Test function The Test function has all of the procedural logic for the test Replace input values with variables Encapsulate the logic in a nested function with one parameter for each variable you created As an ex
183. evice and get the latest snapshot from the mobile device and display in the right hand window e Disconnect This option disconnects the Spy from the mobile device and ends the connection e Learn Object This option is only displayed in Recording mode and lets you take the currently selected object and add it to the Object Tree for the current test It can then be used as a scriptable object in the test script e Page Source This lets you view the source of the mobile device in a text editor such as Notepad It will show the objects in the treevew represented as an XML document e Go to URL This will instruct the mobile device to navigate its built in web browser to a specific URL e Test Locator This will display the Mobile Test Locator dialog box that lets you try different locators to resolve specific objects in the object hierarchy It will include options such as using XPath and IDs e Select Profile This lets you change the profile of the mobile device you are testing while the Spy dialog is open e Edit Profiles This will open up the Mobile Settings dialog box You cannot be connected to do 2015 Inflectra Corporation 96 Rapise User Manual this e Context This will display either Discovery Mode or Recording Mode 2 4 1 7 4 Managed NET Spy Purpose The Managed Spy is used to inspect Microsoft NET applications that contain NET framework objects e g using Windows Forms Screenshot
184. ew to the right Properties Object fields and field values are displayed here Snapshot This displays a snapshot of what is displayed on the mobile device being tested The objects in the snapshot are clickable which allows you to visually select objects from the hierarchy Tools e Get Snapshot CTRL G This will connect to the mobile device and get the latest snapshot from the mobile device and display in the right hand window e Disconnect This option disconnects the Spy from the mobile device and ends the connection e Learn Object This option is only displayed in Recording mode and lets you take the currently selected object and add it to the Object Tree for the current test It can then be used as a scriptable object in the test script e Page Source This lets you view the source of the mobile device in a text editor such as Notepad It will show the objects in the treevew represented as an XML document e Go to URL This will instruct the mobile device to navigate its built in web browser to a specific URL e Test Locator This will display the Mobile Test Locator dialog box that lets you try different locators to resolve specific objects in the object hierarchy It will include options such as using XPath and IDs e Select Profile This lets you change the profile of the mobile device you are testing while the Spy dialog is open e Edit Profiles This will open up the Mobile Settings dialog box You cannot be connected
185. ewBook CresteeaaBook 35 A Ability to edi exishng book Click bo view AJ Ability to cresie new author Click be views A3 Ability to edi exiting author mS liek to view A Ability to reassign book to different suthor TCE Sere Hew Test iSows New Local Path read only C lTempiRapiseTests Spira New Test Spiraea New Test sstest Load Synchronize EEE Ss When you expand the folders to display the list of contained test cases it will display the name of the associated Rapise test script associated with it to the right Choose a test case that has the matching Rapise test case listed to the right of it in the Repository Path column Note Only test cases that have an attached Rapise test script will be displayed in this view Once you have chosen the appropriate test case click the Load Synchronize button to load the test case 2015 Inflectra Corporation 186 Rapise User Manual Synchronize Files Fides To Upload File Hame Archon th x Path Spira New Test user js C Temp RapiseTests Spira New Test Sore Hew Test sstest Download C Temp Raepsel esis Spira New Testi a Spira New Test objects 5 Download C lTempiRapise Teste Spira New Test T Sora Hew Testes Lhoswinkoad C Temp Rapselesis Spoira New Testi Repository json Download CilempFepse Tests Spira New Test Extensions of files foexclude lap tp log user amd A dialog box will be displayed that lists all the files on the server which will be d
186. f Rapise is installed on Test Sets My Assigned af td Name Description Action Tx000008 Functional Test Sets This set contains all the new features introduced in the last 3 sub cut versions Execute Execute C Txooooos Testing New Functionality TXOO0006 J Exploratory Testing Tx000009 LG Regression Test Sets L TX000003 ae Regression Testing for Windows amp Each test set will be displayed with the ID name and long description of the test set Clicking on the hyperlink ID will open up the test set inside Spira in your web browser For test sets that are marked as automated there will be an Execute button available Clicking on this button will execute the test in RapiseLauncher This is described in more detail in the SpiraTest Integration topic 2 5 39 Spy Dialog Screenshot Rapise Spy TEN Start Tracking CtHG Ulutemation Object Tree Properties 4 Rapise Documentation indow hem Type Property ToolBar a Pane Pane Pane 4 Fane Tabi a Rapise Documentation TitleBar System Menu Bar MenuBar Minimize Button Restore Eutton M i ihs ai HAD a Tree 4 Rapise Documentation HH Parent Foobar indyw a HH Child b Shell DocObyect View HH SizeBar a HH Child t SysTabControl3 Purpose LabeedtyFropesty Locaired orio Tyoe Fromeriy Name Progerty Orientation Property Process idProperty FuntimeldProgerty AutomahantD indan Pa
187. f the corresponding Automation Host in SpiraTest You need to be running SpiraTest SpiraTeam v4 0 or later to use the integration wth Rapise Creating a Rapise test from a SpiraTest test case 2015 Inflectra Corporation Rapise User s Guide To create a new Rapise test based on the manual test steps already defined in a SpiraTest test case click on the tab in the top left of the application and from the File menu choose the option New Test Create a New Test This will bring up the following dialog box R Create or Open Test http doctorspirateam Basic Manual Scrnphng Mois Rapise supports multiple testing methodologies Select one to be used for newly created test cree Lay 1 Select the project that has our new test case The list of test case folders will be displayed 2 You can create a new folder by clicking the New Folder button 3 Expand the folders until you can see the desired test case 2015 Inflectra Corporation 178 Rapise User Manual RY Create or Open Test 2 Ability to create new book oJ Ability to edit existing book n Ability to create new author s Ability to reassign book to different author Gl Renreseinm Teste asic Manual Scnpling Mode Rapise supports multiple testing methodologies Select to be used for newly created test Now either create a new test case by using the New Test Case button or simply click on a test case that you previously created in Spira
188. feel that your customizations are generally useful if we decide to integrate them into Rapise we will support them See Also e Custom Libraries e Scripting 2 4 4 10 Scenarios Purpose Scenarios are a way to create reusable building blocks that can be incorporated into your test scripts These scenarios can be either included as part of a purely automated test script or they can be included into a predominantly manual test script Usage in Automated Tests When you create a new test in Rapise it will contain a MyTest js file that contains the main test code and a My Test user js file that contains any user defined functions called Scenarios For example in the following test function Test 2015 Inflectra Corporation Rapise User s Guide no Login CreateBook g_book_name g_book_author g_book_genre Logout The test function calls three scenarios that comprise the main test The scenarios themselves are JavaScript functions function Login 7 Ciick on bog In SeS Log _in lt DeoCLick Set Text librarian in Username SeS Username_ DoSetText librarian Set Text librarian in Password SeS Password_ DoSetText librarian Click on ctll00SMainContent sloginUsersSloginButton SeS ct LOOSMainContent LoginUserSLogi DoClick function Logout f 7Clsck on Log Out ees Log Out DoClick 3 function CreateBook name author genre Click on Book Mana
189. fferent position on the screen when it is started Rapise must still be able to find the objects in the AUT window Secondly if the positioning of objects on the AUT window is proportional or relative to the screen size of shape Rapise must still be able to locate the object A secondary set of considerations relates to the fact that the AUT UI layout maybe sensitive to the context of the state of the application For example consider the case of a word processor Pressing the bold button doesn t predict what the result will be unless it is known whether the text highlighted is currently bold or not A far more illustrative example is that of the Microsoft Paint utility The Microsoft Paint utility is the subject of a Inflectra sample Simulated Object The most instructive way to identify the objects to Rapise is to practice with the tool and different types of objects The best methodology to use is as follows 1 First try to use Record Learn to learn the object and record actions in a single step 2 If learning recording fails to record actions in the grid use the Object Spy to observe the object carefully and discover what libraries and classes are being used by the AUT Use Verify Ctrl 1 from the Recording Activity dialog to get summary information about the object Use a more appropriate set of libraries when selecting the AUT prior to recording Use Analog Recording with absolute positioning to identify and locate the object
190. fined functions where lt TestName gt is the name of your Test You can have as many javascript files in your test directory as you like but lt TestName gt js is the test script unless you specify otherwise in the Settings Dialog When you record your interactions are written to lt estName gt js and objects are written to lt estName gt objects js when you Playback the test lt TestName gt s is the script that will run All Rapise test scripts must have the same basic structure Usage If you are going to modify the script or create a test script from scratch you will need to know the test script structure Basic Script The Recording tool creates a Rapise Script with three sections 1 lt TestName gt js A Test function HEHRFHEFHEE Script Steps FH FHEEHEEE function Test seripe logic 2 lt TestName gt js A list of required libraries g_load_libraries g_load_libraries Generic This script will load the Generic library 3 lt TestName gt objects js A list of learned objects in saved_script_objects Var saved secript ob jects JAMS Of Ob 7eCTS Used in Thee Script 2015 Inflectra Corporation Rapise User s Guide 109 All Scripts must have the above three sections Full script The following functions are also recognized by Rapise and may be present in the test script Put these functions either in lt estName gt js or lt TestName gt user js e Testinit Thi
191. flectra Corporation Rapise User s Guide 297 1 Copy the accessible directory and all its contents from the Qt SDK used to build the application under test installation folder to the folder of the automated application e g Program Files Your Application plugins If you do not have access to the Qt SDK which the Qt application is developed with please contact the developer of the application and request the accessible directory from him 2 Create a file called qt conf or append if the file already exists in the root directory of the automated application e g Program Files Your Application with following content copy and paste the following two lines Paths Plugins plugins 2 7 4 Java AWT Swing Purpose Rapise supports the testing of Java applications using either the Abstract Window Toolkit AWT or Swing graphic user interface toolkits For maximum flexibility Rapise can connect to your choice of JVM Usage In order to use a particular Java Virtual Machine JVM with Rapise you need to install Java Bridge into it Installation process consists of several simple steps 1 Click the Options icon in the Tools group of the main Rapise ribbon That will bring up the Options dialog 2 Click on the Tools gt Java Settings button This will launch the Java Bridge installation dialog Available Javea virtual machin a dava virtual machines found in common places cAprograrm fles avalidk1 b 0_274bin
192. for accepting such an invitation is typically https developer apple com programs start jointeam index pho success 2Fios 2Finutation 2Faccept action Click on this link and accept the invitation 2015 Inflectra Corporation Rapise User s Guide 309 Meanwhile back in XCode Use the Add an Account to login with your Apple ID Ba lt h AuTIOS L w AUTIOS Genaral Capabilities Info Build Settings Build Phases Build Rules Y Identity Bundle Identifier com inflectra AUTiIOS Version 1 0 Build 1 inflectra Corporation markovisev gmall com None Y Deployment Info Add an Account Deployment Target B Devices Universal Main Interface Main Device Orientation Portrait _ Upside Down Landscape Lefi Landscape Right Status Bar Style Default Hide status bar 3 Building and Deploying on a Simulated Device Now that you have signed into Xcode using your developer account you can select a simulated device and run the project on it 2015 Inflectra Corporation ao Rapise User Manual LO U iPad 2 E targets 0S SDK 8 1 D iPad Air T images D iPad Retina a Text png D iPhone 4s Tree png iPhone 5 Edit png iPhone 5s a ListView png jt iPhone 6 Plus a eee iPhone 6 i iPhone 6 a ComboBex png a Button png D Resizable iPad esizable iPhone Y P auTios Ep Resizable iPh ih AppDelegate h Once you have selected the simula
193. fox HTML Server TestCaseFoldg Chrome HTML Server lestCaseld 4 Execution CacheObjects False Command interval 1000 iteration Count 1 r Dibia l mnla arm AH mrar eta A Change the browser to either Firefox Internet Explorer or Chrome Once you have changed this setting Playback the script normally and it will playback in the selected browser Changing this setting will effectively set the value of the g_browserLibrary global variable Playback in Multiple Browsers SpiraTest Executing a test in multiple browsers is slightly more complicated We recommend that you use SpiraTest Test Sets where you may define multiple test cases pointing to the same Test with a different g_browserLibrary parameter value The separate help document Using SpiraTest with Rapise provides specific instructions on using Rapise with SpiraTest to handle the specific case of cross browser testing as well as more general Support for parameterized testing See the SpiraTest Integration topic for more general information on using Rapise with SpiraTest 2015 Inflectra Corporation 296 Rapise User Manual Playback in Multiple Browsers SubTests As another option it is also possible to use sub tests to organize multi browser testing where a single test executes itself in different browsers one after another 1 Record base test Put all the recorded actions into a User defined function and place it into lt testname gt user js file For e
194. g mode Recording Activity for Inflectra Library Information System Internet Explorer Press Cirl Break to Stop Analog Recording Your mouse and keyboard activity ig now being recorded Now when you use the mouse and keyboard to test the application Rapise is storing the coordinates of your mouse clicks and keyboard events and storing them in a separate ARF file that is part of your test project 2015 Inflectra Corporation Rapise User s Guide 3 Recording Activity for Inflectra Library Information System Internet Explorer Action Data Comment Analog Analog Ana Plays recorded events from Analog Analog0001 arf file Verify Cidi a Pause Analog Ctr 4 _ Simulated Cancel Finish Ctrl 3 Ready l Transparent Once completed the entire analog section is included as one step within the complete test script so you can include an analog sequence within a test script that contains other non analog events This lets you have the robustness of true object based recording for 95 of your test and analog when you need it for the remaining 5 This is the best of both worlds See Also e Recording Activity Dialo 2 4 1 3 1 Absolute Analog Recording Purpose Absolute analog recording is used to track mouse usage movement and clicks and keyboard events For absolute analog recording the positions these events are recorded relative to the top left corner of the
195. g that the OK button has been learned Secondly the action of clicking the OK button is recorded in the Recording Activity dialog That recording has a single entry Recording Activity for Two Dialogs Sample Object Actor Data Comment OK Action Fress button OE Analog Cele ETAT Finish Cta Last captured Wins2Button id K Transparent 7 Press the Finish button or press Ctrl 3 to end the recording 8 Rapise will return to be the foreground application and it will have selected the TwoDialogsRecording js or whatever name you gave the test when you created it 9 Notice that there is a single line or script that has been added to the script file SeS OK DoAction This line of script has two interesting parts The SeS OK is the identity not the locator or location of the OK button This is the object that was learned during recording The DoAction is the instruction to the running script to take the action associated with a button A normal button has only a single possible action to be pressed The Record Learn process has taken both steps for you and joined them together Now let s use normal object learning to learn the same OK button and to call a method for the object Steps 2015 Inflectra Corporation Rapise User s Guide 285 1 Run TwoDialogs sample AUT By default this will be located in C Program Files Inflectra Rapise Samples TwoDialogs TwoDialogs exe
196. gement SeS Book_Management DoClick Click on Create new book SeS _ Create _new_book___ DoClick Set Name SeS Name_ DoSetText name Select Author SeS Author_ DoSelect author Select Genre ses Genre_ DoSelect genre J Click on ceElLOOUSMainConrentsbinsSubmit Ses ee lo0sMainContentsbtnSubmit DoClick Verify that the Book is added to the grid We need to xpath query the grid to see if any added rows match the item added var tr FindRowByName name Tester Assert Book was added successfully TS 5 tr length 0 If you go to the Object Tree you will see these user functions scenarios displayed 2015 Inflectra Corporation 120 Rapise User Manual 2 4 5 a es erai CreateBook FindRowByName KillBrowser Login Logout You can then drag and drop those into the test script editor to include in the main test script Usage in Manual Tests When you create a new test in Rapise it will contain a MyTest js file that contains the main test code and a My Test user js file that contains any user defined functions called Scenarios For example you may have the following scenario defined in the My Test user js file onction Login Click on Log In 7 Se8 bea in DoClick Set Text librarian in Username SeS Username_ DoSetText librarian Set Text librarian in Password SeS Password_ DoSetText libraria
197. gs sample Object Acton Data Comment Press Chl Break to Stop Analog Recording Your mouse and keyboard activity is now being recorded Tranzparent NOTE Pressing the Analog button on the Recording Activity dialog starts a relative analog recording session Use the Ctrl 4 key sequence to start the absolute analog recording session Rapise will begin recording all mouse and keyboard activity until you stop the recording Note also that the prompt in the notification status area of the Recording Activity dialog is different from that for relative analog It tells you that Your mouse and keyboard activity is now being recorded 2015 Inflectra Corporation 280 Rapise User Manual A minimized window will be created that indicates that analog recording is in progress and allowing you to stop the recording F Analog Recording Lo mE To finish recording playback use Ctrl Break shortcut or press Close button Close 7 Go to the TwoDialogs AUT and click anywhere in the application s window to start the analog recording Click the mouse on the empty Please enter your name text box Type a name in the text box Hit the lt tab gt key or click the left mouse button to advance the input position to the second text box Type another name Move the mouse to the OK button and press the mouse left button 8 When you have recorded enough switch to the Analog Recording dialog box and press the close bu
198. h of the incident has been completed It is calculated from 100 Remaining Effort Estimated Effort e Projected Effort This the current measure of how long the incident is expected to take based on current information It is calculated from Actual Effort Remaining Effort Attachments a Attachments Filename Version Author Date Created Size This section displays the list of attachments associated with the new incident Since Rapise already has a screenshot capture utility built in this section is typically not used 2015 Inflectra Corporation 210 Rapise User Manual 2 5 13 Manual Playback Screenshot r S Executing Ability to create new book E a Ability to create new book gt Tests that the user can create a new book in the system 7 WBZ U A Aral A107 Aly My Baa ijl Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 p eee A Step 1 of 6 Please follow the directions outlined in the box below User opens up Internet Explorer and enters application URL http www _libraryinformationsystem com beta Expected Result Sample Data The browser loads the login web page http www libraryinformationsystem com beta Actual Result Please enter the actual test result if it differs then click the appropriate button WBZ U AAral A107 Aly My lai i Add Attachment Log Incident Purpose The Manual Playback dialog box lets you execute a series of man
199. h this profile selected Now you need to modify the profile so that it correctly matches the type of device you are testing and also so that it correctly points to the Appium server that you are using to host the mobile devices Click on Options gt Tools gt Mobile Settings to bring up the Mobile Settings dialog box 2015 Inflectra Corporation Rapise User s Guide Mobile Settings Select Profile android Save Duplicate Create Rename Delete hitte 127 0 0 1 4723 wd hub 4 _Prmary Capabilities 6 app CA User Public Documents Rapise Samples sing Mobilet AUTSAUT browserName device Name Android Emulator plattom Name Android plattorm Version 5 1 1 udid 4 Common Capabilities 9 auto Launch automation Name auto Webview deviceName The kind of mobile device or emulator to use Values iPhone Simulator iPad Simulator iPhone Retina 44nch Android Emulator Galaxy 54 etc On i05 this should be one of the valid devices retumed by instruments with instruments devices On Android this capability is curently ignored In the mobile profile screen make sure you change the following e app this needs to the path to the Application being tested on the device e g c Users Public Documents Rapise Samples UsingMobile AUT AUTAndroid bin AUTAndroid apk This path should be already correct but it is worth double checking e deviceName this needs to match the name of the device being connected e pla
200. he application is not behaving as described here please contact support and clarify the details before proceeding Now let s use Rapise to implement the first of these tests Step 1 Run the TwoDialogs application and leave it in its default start state Step 2 Start Rapise and make the window a conveniently large size Click on the U button top left Choose the first option there New Test 2015 Inflectra Corporation Rapise User s Guide 23 Recent Tests Recent Tests RI Create From Spira Manual Test C ProgramData Documents Rapise Samples CreateNewBook CreateNewBook sstest New Test R TEI te C Users adam sandman Documents My Rapise Tests Web Test 1 Web Test Lsstest C Temp SmokeTest SmokeTest SmokeTest sstest C Users adam sandman Documents My Rapise Tests Auto Test 1 Auto Test L sstest C Users adam sandman Documents My Rapise Tests REST Test Project REST Test Pre C Temp Rapiselests ECF AutoProjectBackup DO NOT DELETE ECF_AutoProjectBacku CA Users adam sandman Documents My Rapise Tests Spiraleam v4 0 REST API Testit CA FProgramData Documents Rapise Samples WebServicesREST WebServicesREST sste CA Users Public Documents Rapise Samples UsingInclude Using nclude sstest Step 3 Navigate to the desired path using the button on the Create New Test dialog a Leave the Use Methodology as Basic for now Press the Create button Please specify the name of the new test Specify
201. he first thing you need to do is to configure the connection to SpiraTest To do this click on the Options button in the Tools section of the Rapise Test ribbon Ey Open amp Open Test from Spira Run with Internal Debu gt AA thes 4 J3 Object Mgr GF amp Search Help Gd Start Page a BW Save As E 7 A S gt aVv 5 Spira Properties ps Level 1 Minimal X FP HelpIndex s Spira Dashboard ve Record Learn Play s Options Find in Help SW Save to Spira 4 Web Services gt py Files 2 About Activation File Recording amp Learning Debugging Executing Tools Help This will bring up the Options dialog box Click on the Tools tab to bring up the settings related to the various Tools 2015 Inflectra Corporation 176 Rapise User Manual Build OCR Font Database Click on the Spira Connection Settings button to bring up the dialog box that lets you configure the connection to SpiraTest Spira Connection Settings HRL User Name administrator Password Default Repository Path C Temp RapiseTests Token read only Enter the URL login and password that you use to connect to SpiraTest and then click the Test button to verify that the connection information is correct e The Default Repository Path is a folder that used to store local copies of the non absolute repositories e The Token is the identifier of the current machine that Rapise is installed on It needs to match the Token name o
202. hen display the sample manual test within Rapise UG Start Page Manual Steps nmt wv Ability to create new book YIX Stepld Description Expected Result Sample Data WH Step 1 Call TS 1 T Step 2 User clicks link to create book User taken to first screen in wizard TS 2 Fj Step 3 User enters books name and author then clicks Next User taken to next screen in wizard Macbeth William Shakespeare TS 3 T Step 4 User chooses book s genre and sub genre from list User sees screen displaying all entered Play Tragedy TS 4 information 1 Step 5 User clicks submit button Confirmation screen is displayed TS 5 e Manual Recording e Manual Playback e Exploratory Testing Tutorial e Dialogs Views and Menus o Manual Ribbon o Manual Test Editor o Manual Playback o Incident Loggin 2 4 9 1 Manual Recording Purpose As described in the main Manual Testing topic sometimes it is not possible to automate the testing of a specific application however Rapise is also a powerful manual test generation system that can help you create test cases 5x faster than simply creating test cases by hand step by step This section describes how you can record a set of steps automatically by simply using the application being tested Unlike an automated test however Rapise will store a human readable description of what was performed along with a screenshot rather than actual computer code that
203. hes 15 books lengt You should now have the following code 2015 Inflectra Corporation Rapise User s Guide 51 function Test i se5 LibraryInformationsystem Get Session DoExecute null var sessionId Ses5 LibrarylInformationSsystem Get Session GetResponseBodyObject Tester Message sessioonid seS LibraryInformationsystem Get Books DoExecute session id sessionIid var books Se5 LibraryInformationSystem Get Books GetResponseBodyObject Tester AssertEqual Book count matches 14 books length Var newBook newBook Name A Christmas Carol newBbook AuthorId 2 newBook GenreId 37 seS LibraryiInformationsystem Add Book SetRequestBodyObject mewBook ses LibraryiInformationsystem Add Book DoExecute ses33io0n 1d sessionid ses LibraryInformationsSystem Get Books DoExecute session i1d sessionId books SeS LibraryInformationsystem Get Books GetResponseBodyObject Tester AssertEqual Book count matches 15 books length Save this test and click Play to execute the test You should now see a report similar to the following E MyRestTestLjs LibrarylnformationSystem rest Start Page ET MyRestTest1_2013 06 19_14 49 trp Name Start Type Status Comment Iteration m m E l A Starting scenario Test 14 49 03 725 Message Info Get_Session DoExecute null 14 49 04 334 Assert Pass Returned Value true 0 c3d8dcd4 6125 427d 93
204. hoose a test case that has icon 1 and doeesn t have an associated Repository path If you are updating an existing test choose a test case that has icon 2 and the matching Repository path Note test cases wth icon type 3 cannot be used wth Rapise for adding or updating scripts Once you have chosen the appropriate test case click the Save Synchronize button That will bring up the Create New Repository dialog box 2015 Inflectra Corporation 182 Rapise User Manual E Create Test Repository in Spira Ragise wil create a new folder in the selected Spire project fo sore the les script and associated files Local Repository Fath C Users adem sandman Documents My Rapise Testai Sipra New Test Remote Folder Root Folder Spira New Testi This dialog box will let you know where the Rapise script will be stored in SpiraTest and also the location of the repository local directory used to store the working copy of the Rapise test Click Create to confirm Synchronize Files Fides To Upload Selected File Name Acton Path spira New Test ps Upload C Users adam sanimani Documents iy Hapse lests Spira New best Spira New Test objectsjs Upload C Usersiadem sandman Documents My Aapise Tests Seire New Test Spira New Testl sstest Upload C Usersiadam sandman Documents My Rapise Teste Spira New Test Spira New Tesi sstestus Upload C Usersiadam sandman Documents ty Aapse Tests Spira New Test Spira New Test user ys Upes C
205. iT Store C Users Public Documents Ra Role ROLE SYTS TEM CELL to use HOLE SYSTEM_TEAT tate i RULE SYSTEM _TEAT Walse gi Features The Accessible Spy has the following features e The Tree pane lets you view the hierarchy of MSAA objects available in the application e The Properties pane lets you view the exposed properties of the highlighted MSAA object Commands In addition to viewing the object hierarchy and object properties you can perform the following tasks e Parent This selects the parent object of the one displayed e Highlight This will attempt to Flash highlight with a red rectangle the object selected in the Spy e Refresh this simply refreshes the Spy view to reflect any changes that might have occurred in the application e Default Action this will perform the default action on the selected object in the Spy e Mouse Click this will perform a simple mouse click on the selected object in the Spy e Save to File this will save the properties of the currently selected object to a text file 2 4 1 7 2 Java Spy Purpose The Java Spy is used to inspect applications that contain Java Swing AWT objects Screenshot 2015 Inflectra Corporation oa Rapise User Manual J Start Tracking Ctri G panelO java awtPanel labelO java awt Label textAreal java awt TextArea listl fava awt List button1 java awt Button button2 java awt Button advAwtC ontrals java awtButton chec
206. i_2013 06 19_14 t01r0 2 MyRestTest2 4s 30 oiean a Object Tree CAUsers adam sandman Documents My Rapise Tests C Libraryinformationsystem TIREE HEE Script Steps FF REEERE EH HE Fo add Book 5 Get Books unction est We Get Session ineca Library Information System Windows Internet Explor AM Author Management A authors H Book Management SeS LibraryInformationSystem Get Booka DoExecute seasion_id sessionId Global i var books 5 5 LibraryInformationsystem_Get_Sooks GetResponseBodyObject U User Functions Tester AssertEqual Bock count matches 14 books length User Variables Se5 LibraryInformationsysvem_Gec_Session DoExecure null war sessionId Seh LabraryinformationSystem Ger Session GetResponseBbodyObject T ster Message S 55i0nTd War newBook newBook Hame AR Christmas Carol h min all l newBook Authorid 2 ee Objet Tree newBook Genreld 3 Pe Ses LibrarcyInformationsystem Add Book 3etRequestBodyObject mexBook SeS LibraryiInformationsyetem Add Book BoExecute Ze2310n Ld gessionrd i J z ole AN a Se5 LibraryInformationsSystem_Ger_Books DoExecute i session_id sessioniId Book Management books SeS LibraryinformationSystem Get Books GetResponseBodytbject 0 T ster ASSELCEqual Book count matches 15 Books length Intervet Explorer Server Se5 Bock_Hanagenmen
207. ic for the test Replace input values with variables Encapsulate the logic in a nested function with one parameter for each variable you created As an example we will parameterize the Test function we created in step one Toner ion Test function Logic searchrerm i our new function encapsulates the test logic Set Text using searchterm SeS Obj1 DoSetText searchterm nere we changed a hard coded value into a variable Click on DENG Ses Ob42 Declick bogie intleetra I donte forget to call your new funceion 3 Use Database to connect the test case data This assumes that you already have an ODBC or OLE DB compatible relational database that contains the necessary test data You drag the Database global object into the script editor Object Tree y ial Start Page S My Testis i id on ie fUse Record Learn button to beg a Object Tree C Users adam san a Cd Global Function Test J Database Database cit Global Global W Navigator Navigator Q Oc 0c i Spreadsheet Spreadshe t Tester Tester 1 User Functions ar Wer Vanables and then use e Database DoAttach to make the database connection and specify the SQL query e Database GetRowCount to verify that there is data e Database DoSequential to loop through the dataset row by row e Database GetValue to get that row s data Here is an example of the code needed to loop through a list of reco
208. ical the bug is Owned By who the bug should be assigned to or left unassigned Detected Release which version of the system was the bug found in Resolved Release which version of the system should the bug be fixed in Verified Release which version of the system was the bug retested in Custom Fields in addition any custom fields created in your Spira instance will be displayed Comments comments Add New Comment aces N haha Atio AW iii i No comments for this item The Comments section lets you enter a comment that will be logged with the new incident The field is a rich text field that can contain formatted text Schedule A Schedule Start Date Select a date End Date Select a date 15 Percent Complete 0 Estimated Effort hours minutes Projected Effort 0 hours 0 minutes Actual Effort hours minutes Remaining Effort hours minutes The Schedule section lets you enter in schedule effort related information for the new incident Start Date This is the planned start date of the new incident End Date This is the planned completion date of the new incident Estimated Effort This is the number of hours the incident is expected to take Actual Effort This is the number of hours that were actually expended Remaining Effort This is the number of hours remaining to fix the incident In addition the following calculated fields will be displayed e Percent Complete This is the measure of muc
209. ice protocols such as SOAP and XML RPC A RESTful web API also called a RESTful web service is a web API implemented using HTTP and REST principles Unlike SOAP based web services there is no official standard for RESTful web APIs This is because REST is an architectural style unlike SOAP which is a protocol Overview Creating a REST web service test in Rapise consists of the following steps 2015 Inflectra Corporation Rapise User s Guide oat 1 Using the REST query builder to create the various REST web service requests and verify that they return the expected data in the expected format 2 Parameterizing these REST web service requests into reusable templates and saving as Rapise learned objects 3 Writing the test script in Javascript that uses the learned Rapise web service objects We shall discuss each of these steps in turn 1 Using the REST Query Builder Create a new test in Rapise called MyRestTest1 sstest Once you have created it click on the Web Services icon in the Test ribbon to add a new web service definintion to your test project i Ly Open y Spira Properties Y Save As fy Open Test from Spira z p Save to Spira Gy Web Services Sav This will display the Add New Web Servce dialog box al Add New Web Service Enter the name of the web service that you re going to add in this case enter LibrarylnformationSystem rest and click Create This will add the REST web serv
210. ices definition file to your test project Test a eae Persea LibraryinformationSystemrest cel Test RESTR f Wee sad Scripts SAN ala B myrestresttjs Name New_Request 4 i LibraryinformatonSystem rest g MyRestTestLobjects s A gt lin Foonel B my ere Method GET Send B MyRestTestluserjs a Body A LidraryinformationSystem rest a i Response Header Response Body Test Files Btsuestehe a cd a Name Value FM A You will see on the right hand side there is a new document editor for the rest file This is the REST web services query form It lets you send test HTTP requests to the web service under test and inspect the output being returned If you open up API documentation for our sample application www libraryinformationsystem org services RestService aspx you will see that it exposes several operations for retrieving adding updating and deleting books and authors in the system For this tutorial we shall perform the following operations 2015 Inflectra Corporation oa Rapise User Manual 1 Get the special SessionID to identify our test session 2 Get a list of books in the system 3 Add a new book to the system and verify that it was added According to the documentation that means we will need to send the following requests i Get a Unique Session http www libraryinformationsystem org eos Services RestService svc session Meth
211. id TV ARM EABI via System Image 22 Installed E8 Android TY Intel x86 Atom System Image 2 Installed F EE ARM EAB via System Image Installed Show W Updates New Installed Select New or Updates T Obsolete Deselect All Done loading packages If you are going to be testing a physical Android device you will need to do the following 2 Locate the Google Android USB drivers that came with the Android SDK c Program Files x86 Android android sdk extras google usb_driver and when you connect your Android device to the PC choose to install these drivers rather than the standard ones 3 Make sure you have enabled Developer mode in the Android device itself a Open Settings gt About on your Android phone or tablet b If you have a Samsung Galaxy S4 Note 8 0 Tab 3 or any other Galaxy device with Android 4 2 open Settings gt More tab gt About and tap it c If you have Galaxy Note 3 or any Galaxy device with Android 4 3 go to Galaxy Note 3 from Settings gt General gt About and tap the Build version 7 times d Now scroll to Build number and tap it 7 times e After tapping the Build Number 7 times you will see a message You are now a developer If you have a Galaxy S4 or any other Samsung Galaxy device with Android 4 2 the message reads as follows Developer mode has been enabled Now when you try and connect to the device using the Rapise mobile spy y
212. ider of iha lasi L m Using Comments to Suggest the Type In some cases variable type is not clear from its definition or assignments is not static var vl input var v2 To deal with such cases the code should be instrumented For example if we know that input is string and v2 will be used as number then we may explain it to Rapise by placing variable type using special comment lt var_type right together with var definition It should be placed right either between var keyword and variable name or right after an assignment operation if any l e var vil string input var number v2 So now Rapise will be able to display the list of available methods and properties 2015 Inflectra Corporation 130 Rapise User Manual v2 ii toExponential x toE xponentiall toFimed x toPrecision x toString radix valueOi constructor gy MAX_VALUE gy MIN_VALUE NEGATIVE_INFINITY Ret urn string The toExponentiall method converts a number into an exponential notation Another common case is a function parameter If you have function that is defined function my_func patient_index patient_name The type of parameters patient_index and patient_name are not Known but may be explained in a similar way function my_func number patient_index string patient_name So it becomes known to Rapise
213. ies Mobile Testing section that describes the necessary steps for both physical and simulated devices Rapise runs on Windows computers PC and Android devices both real and simulated can be tested on either an Apple Macintosh Mac computer or a PC e If using a Mac it is necessary that you install Appium and Android Studio onto the Mac and connect to Appium over the network from Rapise running on your PC e If using a PC you can either install Appium and Android Studio onto a separate PC or you can simply use the same PC that is running Rapise The only difference will be whether the URL used to connect to Appium is a localhost URL or one pointing to the other PC For Physical iOS devices the architecture looks like Mac OS X Windows Android Device Android Device For simulated iOS devices using the Xcode iOS Simulator the architecture looks like 2015 Inflectra Corporation Rapise User Manual R Mac OS X Windows Android Simulator Appium Rapise Appium Android Simulator 1 Configure the Mobile Profile To begin mobile testing when you create the new test make sure you choose the mobile methodology option Mobile Mobile Support 2015 Inflectra Corporation Rapise User s Guide 153 RJ Create or Open Test htto doctor spirateam New Folder aad T gt Piy create new book J Ability to edit existing book a Ability to create new a New Test Case A
214. ifferent mobile profile to be displayed in the dialog e Save This button will save the changes to the current mobile profile Test URL This button will test the Connection URL from Rapise to Appium which is used to manage the devices and the connection from Appium to the physical or simulated device Duplicate This button will create a new mobile profile based on the currently viewed one Create This button will create a new empty mobile profile that you can edit Rename This button will change the name of the current mobile profile being edited Delete This button will delete the currently displayed mobile profile There is no undo so be careful Connection This section lets you enter the URL used to connect to the Appium server which hosts the mobile devices being tested It is typically of the form e http server 4723 wd hub Where the port number used by Appium is 4723 by default and the ed hub suffix is added 2015 Inflectra Corporation ae Rapise User Manual Details This section has various settings some of which are used by all mobile devices some only by simulated devices some only by physical devices and some are specific to the type of device iOS vs Android e Primary Capabilities o app The absolute local path or remote http URL to an ipa or apk file or a zip containing one of these Appium will attempt to install this app binary on the appropriate device first Note that this capab
215. il button and the test case will be marked as failed 2015 Inflectra Corporation 172 Rapise User Manual EBZ U A Aral v A7107 Aly My BES iE m ee ee Be a ee ee B A boce a Fai dK gt Fins A Step 8 of 8 Please follow the directions outlined in the box below User clicks on the Bold button Expected Result Sample Data B SeS Bold DoLClick 11 14 Actual Result Please enter the actual test result if it differs then click the appropriate button EWB Z U A Aral A10 AY My lial i c Add Attachment Log Incident fIN 71 Did not display the correct text Finally click on the Finish button and the results will be posted to Spira Step 5 Viewing the Results Now to view the results in Spira click on the Spira Dashboard item in the main Rapise Test ribbon Then under the My Created test cases click on the link for the test case you execute That will bring up the test case in Spira Now click on the Failed hyperlink in Spira and the new test run will be displayed Test Run MS Paint Test TR 000041 Overview Attachments Incidents v Details Release 1 0 0 0 Library SystemRelease1 3 Estimated Duration hours Tester Name Fred Bloggs v Oo Actual Duration Ca hours Test Set Execution Date 3 31 2015 1 54 11 PM Test Case TC000034 X Execution Status Failed Build None v Test Run
216. ility is not required for Android if you specify appPackage and appActivity capabilities see below Incompatible with browserName Values abs path to my apk or http myapp com app ipa o browserName Name of mobile web browser to automate Should be an empty string if automating an app instead Values Safari for iOS and Chrome Chromium or Browser for Android o platformName Which mobile OS platform to use Values iOS Android or FirefoxOS o platformVersion Mobile OS version Values e g 7 1 4 4 o deviceName The kind of mobile device or emulator to use Values iPhone Simulator iPad Simulator iPhone Retina 4 inch Android Emulator Galaxy S4 etc On iOS this should be one of the valid devices returned by instruments with instruments s devices On Android this capability is currently ignored o udid Unique device identifier of the connected physical device Values e g 1ae203187fc012g e Common Capabilities o automationName Which automation engine to use Values Appium default or Selendroid o newCommandTimeout How long in seconds Appium will wait for a new command from the client before assuming the client quit and ending the session Values e g 60 o autoLaunch Whether to have Appium install and launch the app automatically Default true Values true false language Sim Emu only Language to set for the simulator emulator Values e g fr locale Sim Emu only Locale to set for the simulator emu
217. inParent AUTiOS TagName Applica Tile UlAApplcationfO 201300 480 Master Detail Table View XPath UAApplication 1 Table view with items 4 Layout Height 460 Basic Controls Witt 321 Button TextField Label Picker Switch Slider Image Oe Advanced Controls hint WebView ScrollView TextView Search TabBar Pagel lab Al name UT In the example above we are displaying the sample iOS application that comes with Rapise AUTIOS If you click on one objects in the user interface it will be highlighted in Red and the tree hierarchy on the left will expand to show the properties of that object ay apli Spy me R Disconnect CI Page Source Select Profile iPhone4 v Discovery Mode s GoTo Url WF Edit Profiles Select Context M Get Snapshot Ctrl G Test Locator Connection Device Profile Context 4 0 UlAApplication 0 20 320 480 4 Calculated cabin thaw i OC gt p 4 0 UlAWindow40 0 320 480 Niiair UlATarget local Target frontMostApg verizon 12 31 PM gt 0 UlANavigationBar 0 20 320 64 id Basic Controls Button TextField Lak J 4 1 UlATableView 0 0 320 480 indexinPare 0 AUTiOS gt 0 UlATableCell 0 64 320 108 TagName UIAStatic Text 4 1 UlATableCell 0 108 320 152 Text Basic Controls Button TextField Lak P x 0 UiAStaticText 0 108 320 152 Title 0 UlAStaticText 0 10811320 152 Master Detail Table View gt 2 UlATableCell 0 152 320 196 XPath UlAApplication 1 UlAWindow 1 Tab
218. ind files via wildcard valid only if IsFilterGorup is True e FilterWildcard Filter wildcard valid only if IsFilterGorup is True e IsFilterGroupt True if directory should show the list of all files matching FilterWildcard belonging to FilterPath e Name Group name 2 5 41 Variable Call Stack View Screenshot Functhony Var H Test C Program i JScript global code TAdmin Wrappers Engine Player js 411 WiScript each 5esWait Lal _Se5GetObjectinfo Lad Variables Watch Output Warnings Errors Fine Results Purpose Lists the functions in the current call stack Beneath each function variables objects local to that function are listed with their value and type How to Open Begin debugging a script The Variable Call Stack View will open automatically Go to a function definition Double click on a function to go to its definition 2015 Inflectra Corporation Rapise User s Guide 271 2 5 42 Verify Object Properties Dialog Screenshot Name Bil map BWBil map Class Heighi 29 Name 1 ObjectT ype Win32Button State 0 i al ut Width A i E a a a Window ex Purpose Use the Verify Object Properties dialog during recording to add checkpoints How to Open 1 First open the Recording Activity Dialog 2 Position the mouse over an object and press Ctrl 1 or 3 Press the Verify button and then click the target object with the mouse cursor Create a Checkpoint You
219. ing objects for identification The location is stored as a period separated list of indexes For instance 1 2 3 would be the third object in the second object in the first object The name class and role of the object are also stored e LocationPath This locator remembers name class and role property information for the object and all of its encapsulating objects e LocationRect This locator stores screen coordinates e Ordinal This locator creates an array of object name object class combinations Each object is assigned an index in the array Usage The locator for each object is specified in saved_script_objects in lt scriptname gt objects js your test script Locator information is highlighted in the simulated object example below ODIL On version sO object type Sessimulated object _ mame regex Paint vobject class MSPaintApp object role TROLE SYSTEM WINDOW OD JeGCE texen regex n Aon Paane window_name regex Paint window_class MSPaintApp Locator Parameters lf a piece of information in the locator matches a piece of object info object_name object_class object_role object_text then it is stored in the locator as param lt object_info gt For example object nane param object_name vobject class param ob ect_class Vobyject_role s iM param ob ject role Over riding Locator Parameters You can over ride the information used to locate your object
220. int Test E Si MS Paint Test a WBZ UA Aral A107 Aly My Basa ijl SS SSS Steo o EY REMY poes N GX A Step 7 of 8 Please follow the directions outlined in the box below Enters text This is some text Expected Result Sample Data This is some text SeS Text1 DoSetText This is some textir Actual Result Please enter the actual test result if it differs then click the appropriate button The text did not display correctly WBZ U A Aral A107 Aly My Basa jE Add Attachment Log Incident Next we shall attach a screenshot of what actually happened and log a test failure and associated incident defect Step 6 Capturing and Annotating a Screenshot Click on the Image icon in the rich text editor associated with the Actual Result text box That will bring up the Drawing Tools screen that asks you to draw a rectangle to select a portion of the current screen to capture 2015 Inflectra Corporation Rapise User s Guide HSA z e Ciega Nel Ema E Z F A size Color olg l 0 eee Oe al Pea i E i 2 aia bf y gos Na he p Fi fo ra Nil a A K ix 4 yi oa K Y Bi 4 ony j sa z a cae ee a lt _ lt al a 4 a Select a screen region to take snapshot or press ESC to abort If the MS Paint application is not in the foreground just click ESC on your keyboard to abort rearrange your windows a
221. ipt global code The conients of ihis fie are subject la the SmareSof Pubit License Vorsiq 4 00 License Vou may obtains copy of he License al hbo oven amantesi com SPL Any use of thie file other than as sulhini under the License or copyright taw ie prohibita ver g_helpar new AcivexObject SeSttelper g_helper SetHost Scnpt gm Singlelin An nstance ol SeStrapp rs Ll wirch is an entry pant for all windows AP access rolaled iliras I var g utl new ActiveXObjact SeSWrappers Utt Running Daewminti n B C Windowa ryrtern 2 csc rept as l E Players ai ge MySeripeHasel3 aye bey ScriptHoutd ai all Mycripebostt 28 CA diet lva Soript vv SC VorBo Bf Pelleguine J ae My SeriptHioakd il TAAdmin Wrapper iiin Smarte indin ere e See Also e Internal Debugger e For instructions on using the Microsoft Script Debugger try this link http msdn microsoft com en us library ms532989 aspx 2 4 5 3 Verbosity Levels Purpose The Verbosity Level affects the amount of information written to the Output View Usage The Verbosity Level is set on the Ribbon Test tab gt Debugging menu See below No Debugging Level 1 Minimal Debugging See Also e Ribbon Test Tab 2015 Inflectra Corporation 126 Rapise User Manual 2 4 5 4 Syntax Highlighting Purpose With Syntax Highlighting words in a program are displayed so as to immediately indicate their function Reser
222. is allows you to easily paste the ID of the test step into your automated test scripts which allows Rapise to report back test results to Spira against specific test steps e Description this is a description of the test procedure that the tester should perform e Expected Result This is a description of the expected result that should be observed if the system being tested performs correctly e Sample Data This is an optional field that contains any sample data that should be used in the test Each of the fields provides a rich text editor lets you choose the font name font size text color highlight color style bold underline italic as well as provides easy ability to add links bullets and numbered lists In addition there is a button that lets you add screenshots to the test step 2015 Inflectra Corporation ata Rapise User Manual 2 9 15 For ease of editing you can navigate between the rows and columns using the ALT Arrow keys on the keyboard Automating Test Steps Sometimes you have a primarily manual test case that you want to automate certain steps of For example you may want to automate the setup of the test data or login to the application before carrying out manual testing Such a test is called a semi manual test To do this you enter the syntax runctionName in the Description box of the test step Then when you run the test that step will be executed automatically The eFunctionName refers to a J
223. istribution App Store Resource Center iTunes Connect Submit and manage your apps on the App Store Leam about how to prepare for App Store Submission Select Devices 2015 Inflectra Corporation Rapise User s Guide 313 Certificates Identifiers amp Profiles ee a lt ie kal Certificates WE Identifiers Devices FET Provisioning Profiles Learn More a App Distribution Guide Add your device s UDID to the list of registered iOS devices in the developer account Certificates Identifiers amp Profiles Denis Markovtsev iOS Apps IOS Devices 7 Q Y Certificates You can register 98 additional devices All cia UDID Pending Denis s iPhone cd68f85 9a6ff2 7fc68dcl 642cb988db065 137f89 Developrient Inflectra b6789598c42703429379d1 47a6f8 1 ecea9Sedb66 Production You can find out the UDID by connecting it to the Mac and viewing the device inside Xcode 2015 Inflectra Corporation aia Rapise User Manual 8 0 8 Devices i Device Information i My Mac eee 10 935 Lara Name Goshen iphone Goshen iphone Model iPh 4 COM 7 1 1 11D201 ia EOE REON Capacity 13 52 GE 12 89 GB available SIMULATORS iOS 7 1 1 11D201 Eae Identifier b54cfblc05a4438eb95e322a7ed8df3e45978654 aa iPad 2 E aa p 3 1 128411 View Device Logs Take Screenshot iPad Air Tipler al iPad Air 3 1 128411 Installed A
224. it proxy sh Documents VVe CO y C to XC Od eC a E R Version 6 1 GA1 052d hybrid md fnode_modules appium docs an a InternationalMountains Documents Get started with a playground 5 i Explore new ideas quickly and easily mobile web md node_modules appiunydocs an Create a new Xcode project fas Start building a new iPhone iPad or Mac application troubleshooting md node_modules appium docs an Check out an existing project we IntemationalMountains app zip Start working on something from an SCM repository ar Documents ios driver Open another project Open the AUTIOS project and select the root node ea a P AUTIOS Am amp a O E amp A ey AUTIOS 2 targets IOS SDK 6 1 T Images a Text png Tree png Feit nan Before you can actually build and deploy this project you will need to register for an Apple ID and setup an Apple Developer account You should check with your company to see if they have already joined the Apple iOS Developer Program if not you will need to join yourself and become a member You can learn more about this at the Apple developer website https developer apple com 2 Join Your iOS Development Team Assuming that either you or your company already has signed up for the iOS Developer Program you will need to ask the administrator of your account it might be you to send an invitation to you if you are not already a member The link
225. ity to create new book Tests that the user can create a new book in the system WBIU AAral A310 Av My Baal i amp Stepld Description Expected Result Sample Data Step 1 Call TS 1 qv Step 2 User clicks link to create book User taken to first screen in wizard TS 2 2 Step 3 User enters books name and author then clicks Next User taken to next screen in wizard Macbeth William Shakespeare TS 3 T Step 4 User chooses book s genre and sub genre from list User sees screen displaying all entered Play Tragedy TS 4 information Step 5 User clicks submit button Confirmation screen is displayed TS 5 WStep4 MyFunction Purpose The Manual Test Editor lets you create and edit manual test cases that are stored in Spira These manual test cases contain a high level description of the test case as well a detailed set of steps and associated expected results that make up the manual test script These manual tests can be executed manually in Rapise or in Spira as well as used as the basis for creating a related automated test script 2015 Inflectra Corporation Rapise User s Guide 213 Such automated test scripts may be linked to individual test steps by means of the test scenario approach How to Open You can open the Manual ribbon by either clicking on the Manual Steps icon on the main Test ribbon or clicking on the ManualSteps rmt file in the Test Files tab The Manual Ribbon
226. ium Values abs path to webdriver o autoWebview Timeout Amount of time to wait for Webview context to become active in ms Defaults to 2000 Values e g 4 o IntentAction Intent action which will be used to start activity default android intent action MAIN Values e g android intent action MAIN android intent action VIEW o IntentCategory Intent category which will be used to start activity default android intent category LAUNCHER Values e g android intent category LAUNCHER android intent category APP_CONTACTS o IntentFlags Flags that will be used to start activity default Ox10200000 Values e g 0x 10200000 o optionallntentArguments Additional intent arguments that will be used to start activity See Intent arguments Values e g esn lt EXTRA_KEY gt ez lt EXTRA_KEY gt lt EXTRA_BOOLEAN_ VALUES etc o unicodeKeyboard Enable Unicode input default false Values true or false o resetKeyboard Reset keyboard to its original state after running Unicode tests with unicodeKeyboard capability Ignored if used alone Default false Values true or false o noSign Skip checking and signing of app with debug keys will work only with UiAutomator and not with selendroid default false Values true or false o ignoreUnimportantViews Calls the setCompressedLayoutHierarchy uiautomator function This capability can speed up test execution since Accessibility commands will run faster ignoring some ele
227. ivacy access permission alerts e g location contacts photos automatically if they pop up Default is false Values true or false nativelnstrumentsLib Use native intruments lib ie disable instruments without delay Values true or false nativeWebTap Sim only Enable real non javascript based web taps in Safari Default false Warning depending on viewport size ratio this might not accurately tap an element Values true or false safariAllowPopups Sim only Allow javascript to open new windows in Safari Default keeps Current sim setting Values true or false safarilgnoreFraudWarning Sim only Prevent Safari from showing a fraudulent website warning Default keeps current sim setting Values true or false safariOpenLinksInBackground Sim only Whether Safari should allow links to open in new windows Default keeps current sim setting Values true or false keepKeyChains Sim only Whether to keep keychains Library Keychains when appium session is started finished Values true or false localizableStringsDir Where to look for localizable strings Default en proj Values en lproj processArguments Arguments to pass to the AUT using instruments Values e g myflag interKeyDelay The delay in ms between keystrokes sent to an element when typing Values e g 100 showlOSLog Whether to show any logs captured from a device in the appium logs Default false Values true or false sendKeyStrateg
228. js file with the following code function LaunchMsPaint 2015 Inflectra Corporation 174 Rapise User Manual Global DoLaunch C Windows system32 mspaint exe Now go to the Manual Steps section of Rapise by clicking on the Manual Steps icon in the test ribbon Inside the first test step for example change the Description to the following LaunchMsPaint User starts up the MS Paint Application This will be contained within the actual test step itself stepld Description Expected Result T Step 1 15 45 11 Step 2 TS 46 The application loads with a blank LaunchMsPaint Canvas lUser starts up the MS Paint Application User clicks the main Application menu CEF Now when you execute the test using the normal Execute button on the main Test ribbon not the Execute Manual icon on the Manual Steps ribbon what happens is that Rapise will execute the main Test function that contains tttHHHHHHHE Script Steps E RERERRHERERH function Test Global DoPlayManual g_load_libraries Generic this instructs Rapise to use the manual playback system However when it gets to the first step it will see the ampersand symbol that denotes that this is actually an automated scenario and then call the following code User starts up the MS Paint Application LaunchMsPaint Once the scenario has completed Rapise will then return back to the manual test pla
229. kbox java awtCheckbox textField2 java awt TextField Features The Java Spy has the following features El Primary Handle IndexIn Parent Name VmID accessibleContext alignment alignment background component componentCount components bo 790046 0 panell E 463120 java awt PanelSAccessibleAW T Panel df oF 1 java awt Colorfr 200 g 220 b 255 9 Liava awt Component cf40F5 e The Tree pane lets you view the hierarchy of Java objects available in the application e The Properties pane lets you view the exposed properties of the highlighted Java object Commands In addition to viewing the object hierarchy and object properties you can perform the following tasks e Parent This selects the parent object of the one displayed e Highlight This will attempt to Flash highlight with a red rectangle the object selected in the Spy e Refresh this simply refreshes the Spy view to reflect any changes that might have occurred in the application e Save to File this will save the properties of the currently selected object to a text file 2 4 1 7 3 Mobile Spy Purpose The Mobile Spy is used to inspect applications running on connected Mobile Devices e g Apple iOS and Android devices Screenshot 2015 Inflectra Corporation Rapise User s Guide os rr Y Spy gu R Disconnect EY Page Source Select Profile iPhone4 Discovery Mode k gt Go To Url A Edit Profiles
230. l test steps with the embedded screen captures Gi Start Page eSI Manual Steps rmt x CP Ct ee tate Stepid Description Expected Result Sample Data Step 1 User clicks at 37 11 in Application menu EEn SeS Application meny DoLClick 37 R 11 Vj Step 2 User clicks at 42 12 in Application menu EEn SeS Application_menu DoLClick 42 12 Step 3 2 Step 4 User clicks at 15 9 in Pencil WW Step 6 User clicks at 156 256 in l aN SeS Simulated Dol Click 156 256 i You will notice that the description of each test step will use the form User action at coordinates in object name and the expected result will include the screenshot of what the user was doing In addition the sample data will contains the equivalent Rapise automation code for reference This can be useful later if you decide to automate this test r SeS Pencil Dol Click 15 9 M Step 5 User clicks at 14 16 in Text User clicks at 44 13 in New SeS New DoL Click 44 13 A SeS Text Dol Click 14 16 Step 3 Editing the Steps Typically you may want to add some additional steps e g we added a line to describe the process of starting up MS Paint delete any duplicate unnecessary steps and reword them so that they make the most sense to the tester In our example we used the manual editing screen to update the steps as follows
231. l U4 C Program Files EC Software Help4ndk fe Program Manager fOs2 CW indows explorer exe sample ATM Login Windows Intermet Ex 000 C Program Files Internet Exploreriexplon The Available Applications table lists all of the processes running at the time you open the SAR dialog If the process you would like to record is already open you can select if from the table Pick the appropriate recording library above first before you pick an application to record your application choice will become unselected if you do not do it last Widgets e The Cancel button closes the dialog e Show All While unchecked only top level application windows reflected in the Windows Task Bar are shown in the Available Applications list Check this and press Refresh to see all top level windows available on the screen e Refresh List Press to refresh the Available Applications table After refreshing you will see processes that began after the SAR dialog was opened e Select button To record a process from the Available Applications table select the process and then press the Select button Run Application Tab 2015 Inflectra Corporation 250 Rapise User Manual R Select an Application to Record Full path to application CAUsers Fubliict Documents Rapise Samples SampleATMiSampleAT M exe ieg clwindows system32icalc exe Use working directory e Path drop down list If the program you would like to record i
232. l be minimized You will achieve best results in recording if you observe the following guidelines 1 Work slowly while recording Perform one action and wait for the results to be recorded in the Recording Activity dialog as a new grid line item before going to the next item 2 Use the mouse to select controls and operate them Avoid using keyboard shortcuts and keyboard commands Step 6 Click in the first edit box in the TwoDialogs application Type a name in there Watch the Recording activity dialog as you operate the AUT interface As you press a button or fill a field notice that the grid in the Recording activity has entries added to it 2015 Inflectra Corporation 26 Rapise User Manual i Inflectra Rapise Two Dialogs Sample Please enter your name Please enter someone else s name Summary Thank you Your name is chris face stone As you take these actions you will see the Recording Activity grid update accordingly Recording Activity for Inflectra Rapise Two Dialogs Sample H Object Action Data Comment 1 Please enter SetText chris Please enter your name Change text to chris wa OK Action Press button OK Verify Ctrl 1 Lear Ctrl 2 S Spy Cirl 5 Pick Object _ Analog Ctrl 4 _Simulated 7 Cancel Finish Ctri 3 Last captured Win32Button OK For a full explanation of the controls on this dialog refer to the reference for Rec
233. l in the Mobile Spy topic A gt Rapise Spy Spy ga Disconnect CJ Page Source Select Profile iPhone4 Discovery Mode gt Edit Profiles Select tex xi Get Snapshot GoTo Uri A Edit Profiles Select Context Ctrl G Test Locator Connection Device Profile Context 4 0 UlAApplication 0 20 320 480 4 Calculated Ty b 0 UlAWindow 0 0 320 480 Automation UlA Target local Target front Most App SSROE SEEN S F04 PM gt 1 UlAWindow 0 0 320 480 id AUTIOS indexinParent 0 AUTiOS TagName UiAApplication Text AUTIOS 4 f Title 0 UAApplication 0 201 320 480 Master Detail Table View XPath UIAApplication 1 Table view with items 4 Layout gt Height 460 Basic Controls Width az Button TextField Label Picker Switch Slider Image La a Advanced Controls lt hint WebView ScrollView TextView Search TabBar Pagel label AUT alue The Mobile Object section of the Spy dialog shows a snapshot of the screen displayed on the connected Mobile device as well as the properties of the currently selected object You can selected the object either by clicking on the screen snapshot or the control hierarchy displayed to the left The properties displayed will depend on the type of mobile device being tested iOS vs Android 2015 Inflectra Corporation 266 Rapise User Manual Tree The spied upon object and its children are displayed here When you click on an object it will also be highlighted in the snapshot vi
234. lator Values e g fr_CA orientation Sim Emu only start in a certain orientation Values LANDSCAPE or PORTRAIT autoWebview Move directly into Webview context Default false Values true false noReset Don t reset app state before this session Default false Values true false fullReset iOS Delete the entire simulator folder Android Reset app state by uninstalling app instead of clearing app data On Android this will also remove the app after the session is complete Default false Values true false O O O O O e For Android Only o appActivity Activity name for the Android activity you want to launch from your package This often needs to be preceded by a e g MainActivity instead of MainActivity Values MainActiuty Settings o appPackage Java package of the Android app you want to run Values com example android myApp com android settings o appWaitActivity Activity name for the Android activity you want to wait for Values SplashActivity o appWaitPackage Java package of the Android app you want to wait for Values com example android myApp com android settings o deviceReadyTimeout Timeout in seconds while waiting for device to become ready Values 5 o androidCoverage Fully qualified instrumentation class Passed to w in adb shell am instrument e coverage true w Values com my Pkg com my Pkg instrumentation My Instrumentation o enablePerformanceLogging Chrome and webview only E
235. le view with items b 2 UlAToolbar 0 480 320 524 4 Layout gt 1 UlAWindovw0 0 320 480 Height 44 Basic Controls se Button TextField Label Picker Switch Slider Image OY ae ran Advanced Controls hint WebView ScrollView TextView Search TabBar Pagel label Basic Controls Button TextField Lak name Bas als TextField Lak lue If you want to view the contents of the Spy as a text file just click the Page Source button and you will 2015 Inflectra Corporation Rapise User s Guide see the contents of the Spy properties window as a text file Assuming that you can see your application in the Spy and that the objects can be inspected similar to that shown above you can now begin the process of testing your mobile application Click on Disconnect to end your Spy session and close the Rapise Spy dialog You will now will be returned back to your test script 3 Recording and Playing a Test With the new Rapise mobile test script open click on the Record Learn button in Rapise and that will display the recording activity dialog Recording Activity for Device Now click on the Pick Object button and the Rapise Spy will be displayed in Recording Mode 2py gla R Disconnect Ci Page Source Select Profile iPhone4 X Recording Mode s KB GoTo Url J Edit Profiles Select Context Get Snapshot Learn Ctrl G Object S Test Locator Connection Device Profile Context 0 UlAApplication 0 20 320 480
236. le_apis sys img xml If you are going to be testing a physical Android device you will need to do the following 1 Make sure you have enabled Developer mode in the Android device itself a Open Settings gt About on your Android phone or tablet b If you have a Samsung Galaxy S4 Note 8 0 Tab 3 or any other Galaxy device with Android 4 2 open Settings gt More tab gt About and tap it c If you have Galaxy Note 3 or any Galaxy device with Android 4 3 go to Galaxy Note 3 from Settings gt General gt About and tap the Build version 7 times d Now scroll to Build number and tap it 7 times e After tapping the Build Number 7 times you will see a message You are now a developer If you have a Galaxy S4 or any other Samsung Galaxy device with Android 4 2 the message reads as follows Developer mode has been enabled Now when you try and connect to the device using the Rapise mobile spy you may get the following message 2015 Inflectra Corporation Rapise User s Guide a3 te new session could not be created Original error Could not find adb Please set the ANDROID_HOME environment variable with the Android SDK root directory path 33 This means you need to use a MacOS X Shell window to add a environment variable called ANDROID_HOME and set it to the path of the installed Android SDK typically something like users my user Downloads android sdk macosx lf you want to test using the Android simulat
237. learned object definition stored in the Test objects js file 2 5 19 Options Dialog Screenshot ae Options General Tools Beat Directories Help Files C Users Public Documents Rapise Help Samples C Program Data Documents Rapise Sample User Libranes C Program Data Documents Rapise Scripts Lib User Scripts C ProgramData Documents Rapise Scripts Misc Splash Screen True Settings Auto Reload Modified Files False Default Folder C Users adam sandman Documents My I Enable Execution Monitor Frame Shuda Default folder for creating new tests Purpose Use the Options dialog to change Rapise settings Your changes will apply to all tests How to Open Press the Options button on the Ribbon Test tab gt Tools menu 2015 Inflectra Corporation 224 Rapise User Manual Options Find in 44 Object Mgr ES Spira Properties Spy Files Tools Misc Misc SplashS creer Tre e SplashScreen A splash screen is the image that appears while a program initializes The Rapise splash screen looks like this apise Loading module Accessibility 5 ae 2 seconds remaining 1 1 24 Set SplashScreen to False to prevent the splash screen from appearing Settings A Settings AutoReload odifiedF ile True DetaultF older Temp FrameS tile Modern LoadLastT estUnStartup True NormalzeFileN ames True Recent ests 10 ShowStatPagelnStartup True StyleLibrary e AutoReload
238. lf you want to view the contents of the Spy as a text file just click the Page Source button and you will see the contents of the Spy properties window as a text file Assuming that you can see your application in the Spy and that the objects can be inspected similar to that shown above you can now begin the process of testing your mobile application Click on Disconnect to end your Spy session and close the Rapise Spy dialog You will now will be returned back to your test script 3 Recording and Playing a Test With the new Rapise mobile test script open click on the Record Learn button in Rapise and that will display the recording activity dialog Recording Activity for Device 2015 Inflectra Corporation Rapise User s Guide Now click on the Pick Object button and the Rapise Spy will be displayed in Recording Mode m y S CJ Page Source py pe R Disconnect gt Go To Url Get Snapshot Learn Ctrl G Object Test Locator Connection Device android widget FrameLayout 0 0 800 1205 0 android view View 0 0 800 1205 0 android widget LinearLayout 0 33 800 108 1 android widget FrameLayout 0 108 800 1205 0 android widget LinearLayout 0 108 800 1205 E 0 android widget LinearLayout 21 129 779 453 0 android widget ListView 21 129 779 453 0 android widget TextView 21 129 7 73 193 1 android widget TextView 21 194 779 258 2
239. list Je 3 See Also e Source Editor 2 4 5 6 Syntax Checking Purpose An editor performs Syntax Checking if it notifies the user of syntax errors in their program script Usage Rapise performs Syntax Checking as you type into the Source Editor Messages regarding syntax errors can be found in the Warning View For example you begin writing a function MyTest 1 js 3 1 i function aj i C Proagram Filestintlectra Rapise 6in Temp My Testy Testi 11 mismatched input 9 expecting RPARENM We have a typo here We used instead of Once the error is corrected the warning view clears automatically 2015 Inflectra Corporation 128 Rapise User Manual 1 E function alli a Ly See Also e Source Editor 2 4 5 7 Code Completion Purpose Rapise provides Code Completion for class method and field names Usage Begin typing a class method or field name Press CTRL space to open a list of possible completions Ses Editbox De DoActon b DoAnalogFlay path left i F Dicki i y DeErsureVisiblel 7 Enit Hox Q Dol Button Denant This 18 link Dol ButtonUp r Change text to testi 3e5 E4itbex De i DoLChickix y finis is amp lin DeLOClick x y i Change text to test 3eS Edicbox De DoMButtonDown SeS Editbox De D MEL Unt Advanced Rapise has built in code completion logic that lets it suggest the available list of functions for a s
240. m server 2015 Inflectra Corporation Rapise User s Guide 301 Appium gt GET wd hub status debug Responding to client with success status 6 value build version 1 3 4 revision c8c79ab5Tbd687Ocd6fc3d66d838all5ebe2Zefe isShuttin gDown false sessionId a2da69c8 1e33 4a63 a898 5b196997cb6b GET wd hub status 7 9271 ms 178 status 6 value build version 1 3 4 revision c8c79a85fbd687Ocd6fc3d66de38allsebe22efe issShuttin gDown false sessionId a2da69c0 1e33 4a63 a898 5b196997cb6b debug Socket data received 38 bytes debug Socket data being routed debug Got result from instruments status 0 value UIAScroLlView debug Responding to client with success status value UIAScrollView sessionId a2da6 9c0 1e33 4a63 2898 5b196997cb6b lt GET wd hub session a2da69c0 1e33 4a63 a898 5b196997 cb6b eLement 74 name 145 722 ms 87 status 0 value UTAScrollView sessionId a2da69c0 1e33 43a63 a898 5b196997 cb6b gt GET wd hub session a2da69c0 1e33 43a63 a898 5b196997 cb6b element 74 enabled debug Pushing command to appium work queue au getElement 74 isEnabled ee 1 debug Sending command to instruments au getElement 74 isEnabled debug i Once that is installed you will then need to install the
241. make changes to the list of books or authors you Will need to login as a libranan Mote This is not a real application but is just a sample application used in the popular SpiraTest fest management 5 test automation system Both of these products are marketed by Inflectra Corporation stem and Rapise 2 __ a r spiraTest Rapise inflectra Test Management Test Automation inflectra Corporation This sample application has SOAP and REST web service APIs that can be tested by Rapise Click the Book Management button It is highlighted in the next screenshot LIBRARY INFORMATION SYSTEM Home Book Management Author Management You should now be on the Book Management page see the below image Click the Home button to go 2015 Inflectra Corporation Rapise User Manual back to the main menu LIBRARY INFORMATION SYSTEM Welcome librarian Log Out Home Book Management Author Management BOOK MANAGEMENT The following books exist in the system Create new book ID Nene Author Genre SS i 1 Hound ofthe Baskeriles_ Arthur Conan Doyke_ Murder S Mystery 2 amsterdam lan McEwan contemporary Fiction Eat S the comfor of suwangers ian mewan contemporary Fiction Eat fe ches seach lan McEwan Contemporary Fiction Edt 7 atonement intawn Historical Fiction at 20 Nicholas Nickleby Chaves Dickens Historical icon an a2 the Pickwick P
242. ments The ignored elements will not be findable which is why this capability has also been implemented as a toggle able setting as well as a capability Defaults to false Values true or false O O O O e For iOS Only o calendarFormat Sim only Calendar format to set for the iOS Simulator Values e g gregorian o bundleld Bundle ID of the app under test Useful for starting an app on a real device or for using other caps which require the bundle ID during test startup To run a test on a real device using the bundle ID you may omit the app capability but you must provide udid Values e g io appium TestApp o udid Unique device identifier of the connected physical device Values e g 1ae203187fc012g o launchTimeout Amount of time in ms to wait for instruments before assuming it hung and failing the session Values e g 20000 o locationServicesEnabled Sim only Force location services to be either on or off Default is to keep current sim setting Values true or false o locationServicesAuthorized Sim only Set location services to be authorized or not authorized 2015 Inflectra Corporation zis Rapise User Manual O O 0 O for app via plist so that location services alert doesn t pop up Default is to keep current sim setting Note that if you use this setting you MUST also use the bundleld capability to send in your app s bundle ID Values true or false autoAcceptAlerts Accept iOS pr
243. n 7Click om cElLUUSMainContent sloginUser gt LoginButtcon SeS ct LOOSMainContent LoginUserSLogi DoClick You can now include that in a manual test step by simply making the test step description start with an symbol to denote that it is a scenario Login Then when the manual test is executed that one step will be passed to the scripting engine for automated execution Example If you open the CreateNewBook sample located in c Users Public Documents Rapise Samples CreateNewBook you will see a test that has multiple scenarios See Also e Semi Manual Testing e Object Tree Javascript IDE Purpose The Javascript IDE includes an editor and a debugger 2015 Inflectra Corporation Rapise User s Guide 121 Usage Simply open a script to view the editing features create a breakpoint and play the script to vew the debugging features See Also e Learn about MS Jscript HERE 2 4 5 1 Internal Debugger Purpose The Internal Debugger provides Persistent Breakpoints Control Execution a Watch View a Variable Call Stack View and Tooltips Usage To use the internal debugger you must first install Microsoft Script Debugger You can choose the Internal Debugger on the Rapise Ribbon Test tab gt Debugging menu No Debugging bi Level 1 Minimal ka Debugging The top drop down menu has four options Choose the Run with Internal Debugger option When you Playback your test script with a
244. n With FlexLoader4 you do not need to modify your application to make it testable by Rapise You will need to choose between FlexLoader 3 and FlexLoader 4 according to which Flex SDK version your application uses To use FlexLoader 4 just copy FlexLoader4 html and HexLoader swf from c Program Files Inflectra Rapise Extensions Hex FlexLoader4 bin to your web server near your application Then type in browser URL to FexLoader4 hitml and supply additional query parameter with the name of your SWF file e g http localhost HexLoader4 html automationswfurl Sample swf You can find sample application for testing here C Users Public Documents Rapise Samples Adobe Hlex4 AUTFLexFP4 bin debug assets See Also e Adobe Flex 2 3 6 Tutorial Testing REST Web Services In this section you shall learn how to test a RESTful web services API using Rapise We shall be using a demo application called Library Information System that has a dummy RESTful web service API available for learning purposes You can access this sample application at http www libraryinformationsystem org and its RESTful web service API can be found at www libraryinformationsystem org Services RestService aspx What is REST and what isa RESTful web service REpresentational State Transfer REST is a style of software architecture for distributed systems such as the World Wide Web REST has emerged as a web API design model that offers greater simplicity over other web serv
245. n 001 1 0 2 0 0002 Iteration 002 Then click on the Execute icon to start manual test execution That will bring up the manual playback screen z F Executing MS Paint Test 2 2 Goagrcccscewscecsnewcveces ener esevevevewescreveveneseseseseccvesesesescveveveveres epeseneseneseseseveveneperessseveneseweseceseseveresesesevevenesesenesevenesesesesesecevenesesesevesenesesescrevevevesesesesevevensssnesenevenenesesesevenevesenenesesevesescsevevevevesesessnevenesenepesevenesesesesevevevesesesesesevesesesesesesees WBZ U A Aral A107 Aly My Eaa ij Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 B A Piockea aanl R A Step 1 of 8 Please follow the directions outlined in the box below User starts up the MS Paint Application Expected Result Sample Data The application loads with a blank canvas Actual Result Please enter the actual test result if it differs then click the appropriate button WBZ U A Aral A107 Aly ey Eas ii Add Attachment Log Incident On this screen we shall follow through the steps listed in the test case This involves opening up MS Paint creating a new canvas adding some lines using the pencil and then adding some text using the text tool As you perform these steps click on the Pass button to indicate that each step has passed You can also minimize the manual playback screen by clicking the gt button Once you get to Step 7 w
246. n cannot be undone so please make sure you really want to unlink the current test Using the Spira Dashboard In addition to using the ribbon options described in this page you can interact with SpiraTest using the Spira Dashboard that is available from the Start Page This provides a convenient way of interacting with SpiraTest allowing you to quickly create save and open test cases from SpiraTest Using RapiseLauncher RapiseLauncher is a separate application that installs with Rapise It allows you to remotely schedule the automated tests in SpiraTest and have RapiseLauncher automatically invoke the tests according to the schedule Details on using SpiraTest with RapiseLauncher to remotely schedule and execute tests is described in the separate Using SpiraTest with Rapise guide This guide can be found in the Rapise program files folder Click on Start gt Programs gt Inflectra gt Rapise in Windows and you will see the shortcut for the guide 2 4 11 Checkpoints Purpose A Checkpoint is defined by two things 1 a location in the test execution path and 2 a subset of AUT state Each time the checkpoint executes the AUT state is compared to a predefined value Discrepancies are noted and may show a regression in program behavior 2015 Inflectra Corporation 188 Rapise User Manual Usage A checkpoint can be added in two ways 1 during recording with the Verify Object Properties dialog or 2 by manually adding an
247. n either the 4 Record Learn Recording amp ribbon or on the toolbar It has an icon like this You will see an application selection dialog like the following Ri Select an Application to Record Select From Running Applications Available Applications CAUsers Fublic Documents Rapise Sa O Join my network on Linkedin Message H E Menu 12 C Program Files 26 PRO Vonage X y IO RE Emails Message HTML rga C Program Files w86 Microsoft Office Ot i Sp Snipping Tool D TdmNotify Cg TdmNotify ay Infectra Rapise Two Dialogs Sample 979 4 T CA Program Files 86 Microsoft x Description Detect library automatically Java support for AWTISWING 2015 Inflectra Corporation Rapise User s Guide 25 Select the Inflectra Rapise Two Dialogs Sample entry Leave the library selection as Auto Press the Select button at the bottom right Step 5 Record the activity in the application Rapise will pause while it starts the necessary background processes and hooks into the running AUT Once those tasks are complete you will see the following Recording Activity for Inflectra Rapise Two Dialogs Sample dialog Recording Activity for Inflectra Rapise Two Dialogs Sample bear Cirl 2 Son Spy Cirl 5 Pick Object Pause _Simulated Cancel Finish Ciria The AUT will be brought to the foreground and Rapise wil
248. nable Chromedriver s performance logging default false Values true false o androidDeviceReadyTimeout Timeout in seconds used to wait for a device to become ready after booting Values e g 30 o androidDeviceSocket Deviools socket name Needed only when tested app is a Chromium 2015 Inflectra Corporation Rapise User s Guide 217 embedding browser The socket is open by the browser and Chromedriver connects to it as a deviools client Values e g chrome_deviools_ remote o avd Name of aw to launch Values e g api19 o avdLaunchTimeout How long to wait in milliseconds for an avd to launch and connect to ADB default 120000 Values 300000 o avdReadyTimeout How long to wait in milliseconds for an awd to finish its boot animations default 120000 Values 300000 o avdArgs Additional emulator arguments used when launching an awd Values e g netfast o useKeystore Use a custom keystore to sign apks default false Values true or false keystorePath Path to custom keystore default android debug keystore Values e g path to keystore keystorePassword Password for custom keystore Values e g foo keyAlias Alias for key Values e g androiddebugkey keyPassword Password for key Values e g foo chromedriverExecutable The absolute local path to webdriver executable if Chromium embedder provides its own webdriver it should be used instead of original chromedriver bundled with App
249. name gt objects js and will refer one from its parent T New test should have own User defined functions If unchecked the test will re use functions from containing Test Le it will not have own file lt testname gt userjs and will refer one from its parent a Purpose Create a sub test e New test should have own set of Objects Uncheck it if you want to create a scenario re using objects from parent test e New test should have own User defined functions Uncheck it if you want to create a scenario re using utility functions from its parent test The Sub Test is always created inside the folder of its parent test If parent test is saved to a new location then sub test is also saved as a sub folder of a new location 2015 Inflectra Corporation Rapise User s Guide 199 How to Open Choose Create Sub Test in the context menu of a folder in Test Files dialog 2 5 5 Content View Screenshot Rds ed ae Wy Open Open Test from Spira No Debuaain Fs F JJ Object Mar Ge oA Search Help ir Start Pans al O a a l 3 k Save As iy Spira Properties Level 1 Minimal A Fd Help Index S1 Spira Dashboard Save Record Learr Play e Options Find ir Help A Save te Spira cg Web Services PY Files V About f Activation Test Files Start Page s Sper a Dashboard B SampleATM js 4 wal Test function Test 4 lad Applicaton p CI SampleATM exe jee 4 wd Data fileOverview f Databasen Thi
250. nd HTTP response body and then covert into a parameterized set of Rapise objects that can be scripted against in the main Rapise JavaScript editor 2 SOAP Web Services We are planning on adding SOAP web service testing functionality to Rapise in the near future 2 4 7 1 Testing REST Web Services What is REST and what is a RESTful web service REpresentational State Transfer REST is a style of software architecture for distributed systems such as the World Wide Web REST has emerged as a web API design model that offers greater simplicity over other web service protocols such as SOAP and XML RPC A RESTful web API also called a RESTful web service is a web API implemented using HTTP and REST principles Unlike SOAP based web services there is no official standard for RESTful web APIs This is because REST is an architectural style unlike SOAP which is a protocol How does Rapise test REST web services Creating a REST web service test in Rapise consists of the following steps 1 Using the REST definition builder to create the various REST web service requests and verify that they return the expected data in the expected format 2 Parameterizing these REST web service requests into reusable templates and saving as Rapise learned objects 3 Writing the test script in Javascript that uses the learned Rapise web service objects Rapise REST Definition Builder When you add a web service to your Rapise test project you get a new
251. nd then try again Once you have selected the rectangle the drawing tools will display your selected image in the image editor aal Draw Tools Untitled Vo E lS File Edit Draw Help a Dga k omo AT A Tahoma wen 3 A at ya oe 4 VOO0G ee wi A s C7 Resize Ta gt Ti NOYd Q gt go path my Paste d Select Pr Brushes s h Rotate N I You can now use the annotation tools to add labels text and other items to explain the issue that you found 2015 Inflectra Corporation Rapise User Manual ial Draw Tools Untitled File Edit Draw Help jee y e900 4T w P Tahoma 9 My woh 3 A wa Crop gt N Ay OOOGA tom d Resize KO OOD ana BF Q G 000 i i 2 Shapes wrong Scale 1 In the example above we added a red ellipse arrow and text to mark the issue that was seen in MS Paint Once you are happy with your image click Accept and the image will be included in the test Actual Result 5 Executing MS Paint Test MS Paint Test BZ UJA Aral A107 Aly My Baa ES ES Stea sei Boeie En Fail AJ Step 7 of 8 Please follow the directions outlined in the box below Enters text This is some text Expected Result Sample Data This is some text SeS Text1 DoSetText This is some textir Actual Result Please enter the actual test result if it differs then click the appropriate but
252. nection Settings Test Cases and Test Sets Project Description Library Information System w ample application that allows users to manage books authors and lending records for a typical branch library a Create From Spira Manual Test Test Cases My Assigned Name PScription Action Yi on Descript ai Tco00001 E Functional Tests C Tcoooooz B Ability to create new book Tests that the user can create a new book in the system cocoon WD Ahility to edit existing book Tests that the user can login view the details of a book and then if 1 Teooooo3 i i he she desires make the necessary changes Each of the sections is explained separately below Spira Login Sign Up This section will display the name of the currently configured Spira user if there is one together with the option to either login to an existing Spira instance or to sign up for a new one Spira Login Sign Up Sign Up Auto Login L e Login this will log you into the instance of Spira listed in the Connection Info section e Sign Up this link will take you to the Inflectra website where you can sign up for a Spira account e Auto Login if you select this option Rapise will automatically login to Spira when it first starts up Once you login to the instance of Spira the widget will change to the following 2015 Inflectra Corporation 258 Rapise User Manual Spira Login Sign Up Welcome administrator Logout Auto Login E
253. nes the usage of Rapise for testing a simple Windows Desktop Application Under Test AUT Please run the application now You will find it in the samples directory where you installed Rapise By default that will be c Users Public Documents Rapise Samples TwoDialogs TwoDialogs exe You will see the following 2015 Inflectra Corporation 22 Rapise User Manual ri Inflectre Rapise Two Dialogs Samp Please enter your name Please enter someone else s name summary s Please run the application a few times and observe its behaviour If you press the OK button with the first edit box empty the application will complain and return you to the dialog box If you put text in the first edit box but not the second you will be shown a single line of text in a read only edit box If you enter text in the second edit box as well as the first pressing OK will put two lines of summary information in the read only edit box An adequate testing strategy for this over simple application might be to 1 Put data in the first text box but not the second and verify that the summary information is correct 2 Press the OK button with no data in either text box and verify that a message box is displayed 3 Verify that if the success Thank You message is displayed the edit box input fields are cleared but not the summary information lf at this point you do not understand what the application is supposed to do or t
254. ng Close button Now prior to playback you move the AUT to a different location on the screen and hit playback All the activity within the AUT will be faithfully reproduced However the mouse motion outside the AUT will be relative to the position so the following activities will not be accurately reproduced Try this for yourself but be sure to minimize all applications before starting so you don t cause mouse events where they will do harm to other applications on the screen 2 6 7 Learn an Object To illustrate learning an object we return to the TwoDialogs sample 2015 Inflectra Corporation 284 Rapise User Manual First let s learn the OK button using recording We have done this before in the TwoDialogs sample Steps 1 Run TwoDialogs sample AUT By default this will be located in C Program Files Inflectra Rapise Samples TwoDialogs TwoDialogs exe 2 Start Rapise and create a new test and call it TwoDialogsRecording 3 Press the Record Learn button in the toolbar of Rapise 4 When the Select an Application to Record dialog is displayed choose the TwoDialogs exe application and in the library list select only the top library on the list Auto Press the Select button 5 In the TwoDialogs AUT use the mouse to press the OK button Dismiss the alert message box complaining about the empty name 6 Notice that two things will happen Firstly the OK button will be surrounded with a red marker indicatin
255. ngMSeExcel s 1 13 mismatched input 9 expecting RPAREM Double click on an error message to go to the corresponding source line Widgets e The text box is a search box i The icons from left to right are Find Next Entry 4 Copy Selected si Clear All Text D and Select All Text See Also e Syntax Checking 2 5 44 Watch View Screenshot 2015 Inflectra Corporation 274 Rapise User Manual Expression Value Purpose To input expressions and view their values as the script executes How to Open Begin debugging a script The Watch View will open automatically Inputting an Expression 1 Click the first blank line 2 Double click on the highlighted line under the Expression column A text box will appear Expression 3 Input the expression you wish to investigate Press Enter Expression l Value g_commandinterval 100 2015 Inflectra Corporation Rapise User s Guide 275 J 11 a e From left to right Copy an entire row a Copy Watch Value Delete a 4 E a a 2 5 45 File Menu Purpose The File menu provides quick access to all the File management functions in Rapise Many of these are also available on the main Test ribbon Screenshot Rapise 3 0 4 25 C Users Documents My Rapise Tests Web Color Test Web Color Test sstest Recent Tests Recent Tests New Test Create a new Test C Users Documents My Rapise Tests Web Color Te
256. nre t LogIn Log In b Name_ Name t C Library Information System Log In Windows Int t C Library Information System Book Management b Global fO User Functions ar User Variables Test Files Settings Object Tree Purpose Display learned objects How to Open The Object Tree dialog is part of the Default Layout Context Menu root node Right click the Object Tree node to see Refresh Collapse all Expand all Filter Refresh checks for new objects to display Collapse all collapses the entire object tree o e Expand all expands the entire object tree e Filter filters the object tree Context Menu object Right click on an object in the Object Tree dialog to see 2015 Inflectra Corporation Rapise User s Guide 223 Flash Re Learn Remove Clone Add Pararneter e Flash opens the application url where the object is located A frame will blink around the object to show you where it is on the page e Re Learn will open up the Recorder allowing you to re learn the object This is useful if the AUT has changed and the object definition will no longer correctly locate the object e Remove simply removes the selected object from the tree e Clone makes a copy of the object definition and adds the cloned version into the tree You can then make changes to the cloned copy e Add Parameter opens up a dialog box that lets you add a custom parameter to the
257. nsions Unit Testing NUnit SeSNUnit SeSSamplesNUnit bin Debug SeSSamples NUnit all See Also e NUnit and related documentation can be found at www nunit org 2 4 6 3 4 TAP Results Purpose Rapise supports the Test Anything Protocol TAP TAP specifies communication between unit tests and testing frameworks such as MbUnit or NUnit Usage The results of a Rapise test are saved to a TAP file in the same directory as the test Tap files have a tap extension See Also e More information about tap is available at the TAP wiki www testanything org e MbUnit e NUnit 2015 Inflectra Corporation 136 Rapise User Manual 2 4 7 Web Service Testing What is a Web Service A Web service is a unit of managed code that can be remotely invoked using HTTP that is it can be activated using HTTP requests So Web Services allows you to expose the functionality of your existing code over the network Once it is exposed on the network other application can use the functionality of your program Web Services allows different applications to talk to each other and share data and services among themselves Other applications can also use the services of the web services For example VB or NET application can talk to java web services and vice versa So Web services is used to make the application platform and technology independent What types of Web Service are There There are two broad classes of web service 1 SOAP These we
258. ntent Installer will appear Select the components for the language you will use and then click Next Syntax Use both the NUnit Framework and the SeSNUnit namespaces using NUnit Framework using SesNuUnic NUnit uses the class attribute Test to identify test methods The corresponding attribute for SeSNuUnit is SeSNUnitTest lt path to sstest gt Note that the SeSNUnitTest attribute has a parameter the file path to the test that will be invoked The following example uses a test method simply as a wrapper for calling an sstest 2015 Inflectra Corporation Rapise User s Guide 135 SeSNUnitTest T Samples Cross Browser CrossBrowser sstest public void TestIEandFirefox int exitCode SeSNUnitHelper TestExecute Assert AreEqual 0 exitCode Templates SeSNuUnit vsi will install a template for Visual Studio called SeSNUnitTests The template includes the appropriate using statements and a blank test method You can insert additional SeSNUnitTest methods by right clicking in the editor in Visual Studio and selecting Insert Snippet gt SeSNUnitTest The following code will be added SeSNUnitTest Insert path to sstest file which must be run public void TestSeS int exitCode SeSNUnitHelper TestExecute Assert AreEqual 0 exitCode You ll need to specify the file path Samples There is a sample dll you can run in NUnit From the Rapise directory you ll find it at Exte
259. ntrol about cross browser execution using available APIs and configuration variables You can also run the recording in multiple browsers in succession Both options require modification of the script The necessary modifications are described below First open the script for your test using the Test Files Dialog Locate the line where g_load_libraries is initialized lf you recorded your script in IE you will see g legad libraries sq_browserLibrary Internet Explorer HIML2 lf you recorded it in Firefox you will see 2015 Inflectra Corporation Rapise User s Guide 295 g load libraries sq_browserLibrary Firetox HIML This line tells Rapise to use the browser library specified in the special g_ browserLibrary variable setting and if no value is set default to the named browser Internet Explorer or Firefox in this example Changing the Playback Browser In the File explorer pane of Rapise choose the Settings tab E Settings Metadata C Users Public Documents Shared ObjectsPath TwoDialogs Test objects js ReportPath TwoDialogs Test trp E Script Path TwoDialogs Test js C Users Public Documents Shared UserFunctionsPath TwoDialogs Test user js e Expand the Test Params option and click on the Browser dropdown list Settings JHS 4 Advanced ip CommandLine Entry Paint Test 4 TestParams 5 items Intemet Explorer HTML m Record Title Intemet Explorer HTML ServerProjectld Fire
260. nts Rapise Samples CreateNewBook CrsteNewBookuse x Type Start Name status Browser comment iteration TE E A E iA E Assert 11 47 13 659 Username DoSetText librarian Pass Internet Explorer HTML Returned Value true a Assert 11 47 13 862 Password DoSetText librarian Pass Internet Explorer HTML Returned Value true Assert 11 47 14 096 ctlo0sMainContent LoginUsersLoginButton DoCick Pass Intemet Explorer HTML Retumed Value true Assert 11 47 14 517 Book Management Doclcki Pass internet Explorer HTML Returned Value true 0 Assert 11 47 15 063 Create new book DocClick Pass Internet Explorer HTML Returned Value true a Assert 11 47 15 609 Name DoSetText The Restaurant at the endofth Pass Internet Explorer HTML Returned Value true a Assert 11 47 15 812 Author DoSelect Agatha Christie Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 16 015 Genre DoSelect Soence Fiction Pass Internet Explorer HTML Returned value true a Assert 11 47 16 186 ctloOsMainGontentsbtnsubmit Dodick Pass Internet Explorer HTML Returned Value true i Assert 11 47 16 654 Failure in Test Fail Internet Explorer HTML g Test Fail Total 15 Pass 11 Fail 2 Info 2 See Also e For more information about the report see Automated Reporting e For information about recording a test see Recording e For instructions on using the Command Line look HERE 2 4 2 1 Command Line Purpose Rapise test script
261. o search The Directory path text box cannot be accessed and is ignored if the Test files checkbox is checked e Check the Include sub folders option to search recursively from the directory specified in the Directory Path text box The Include sub folders option cannot be accessed if the Test files checkbox is checked e Match case option If unselected case is ignored in the search e Match whole word option If set to true parts of words will not count as matches e Look at these file types Search only files with the specified file type s Find and Replace Tab There is only one significant difference between the Find in Files Tab and Find and Replace Tab the Replace with text box e Replace with text box All occurrences of the string in the Find what text box will be replaced with the string in the Replace with text box when you press the Replace button 2 5 9 Find Results View Screenshot C Users Public Documents Rapise Samples AdobeAlex AdobeHex js 8 1 Tester Asset Equal Veny that Text Moved to New Fol C Users Public Documents Rapise Samples Adobe Hex AdobeHexjs 1 1 Tester AssetEqual Verify that Label Paste SeS pb CA Users Public Documents Rapise Samples Adobe Rew Adobe Rex js 95 1 Tester AssertEqual Venfy that Visible true Se SOK CAUsers Fublic Documents Rapise Samples AdobeHex AdobeHex js 101 1 Tester AssertEqual Venfy that Visible true SeS 0K C Users P
262. od GET Unique session ID that is passed to other Returns requests to keep data separate for different demo users ii Get this list of books http www libraryinformationsystem org URL Services RestService svc book session_id session_id Method GET Returns Array of book objects iii Add a new book to the list http www libraryinformationsystem org Services RestService svc book session_id session_id Method POST Pass a populated book object URL Name Book Name MPS Or bee ss Cente lo fay Body Returns Single book object that has its Bookld populated The first request will be to get the unique session ID that we will need to pass to the other requests This is needed by our sample application to prevent testing by different users interfering with each other To create this request simply enter the following information on the REST Request form e Name Get_Session e Method GET e URL hitp www libraryinformationsystem org Services RestService svc session You should now have it populated as illustrated below FE Start Page E MyRestTestLjs al LibraryInformationSystem rest REST Request Name Get_Session Method bttps www_libraryinformationsystem org Sernices RestService svc session Body Response Header This web service request requires that we pass credentials by means of HTTP Basic authentication So click on the REST tab in the Rapise ribbon and click on the Ad
263. of the mouse pointer cursor inside the image 2 5 32 Ribbon REST Screenshot ye z Update Add Add Add Requests ObjectTree Header Parameter Credentials 2015 Inflectra Corporation 246 Rapise User Manual Purpose The REST tab is for use with editing REST web service definition files How to Open The REST tab is available anytime you have a REST definition file rest file visible in the Content View File d Swe Update Requests Object Tree e Save Requests Saves the current request request definitions to the rest file e Update Object Tree Updates the main Rapise Object Tree with the current REST definitions This turns each of your REST requests into Rapise learned objects that can be scripted against Edit Te Add Add Add Header Parameter Credentials e Add Header Allows you to add a standard or custom HTTP header to the current REST request Add Request Header Lait Name Accept Value application json e Add Parameter Allows you to add a parameter name value to the current REST request This is useful when you want your test script to be able to pass through different values e g get book 1 vs book 2 2015 Inflectra Corporation Rapise User s Guide 247 Add Request Parameter Parameters are used in the Request URL to genencize the REST request Name session_id Value 82499bec 37e44c64 82le a2d798ed 1ef4 e Add Credentials Allows you to a
264. on 276 Rapise User Manual 2 6 1 Open a Test You can open a test in two ways 1 From the Ribbon and 2 From the Application menu Ribbon Select the Open option from the File menu on the Test Tab of the Ribbon Bi Open re Open Test from Spira Y Save As 1 Manual Steps Save W SavetoSpira Gj Web Services File You can also open a test that is stored in SpiraTest our web based test management system instead of the local filesystem This is done by clicking on the Open Test from Spira option instead More details on using Rapise with SpiraTest can be found in the SpiraTest Integration section Application Menu Open the Application Menu by clicking on the Tab at the top left of the Rapise window The Application menu has an Open Test option and a list of Recent Test from which you may choose lt Rapise 2 1 3 53 C Users adam sandmaniDocuments My Rapise Tests Spira New Testli Recent Tests Recent Tests fi Create From Spira Manual Test C Wsers adam sandman Documents My Rapise Tests Spira New Test Spira New Test sstest a Mew Test R Crecte ao new Te Ja F 1 7 1 Fair tn ad igt mie C Wsers adam sandman Documents fly Rapise Tests Web Test 1 Web Test Lsstest Open y Teci C Users adam sandman Documents My Rapise Tests MyTest My Test sstest er OF Ex eG es Open File CA ProgramData Documents Rapise Samples CreateWewBook CreateNewBook sstest ae G Users adam sandman Documents My
265. on make sure that mxmlc exe is available in command line window If Flex Builder 3 is installed then it is available at c Program Files Adobe Flex Builder 3 x sdks lt SDK Version gt bin mxmlc exe lf Flash Builder 4 is installed then it is available at c Program Files Adobe Hash Builder 4 x sdks lt SDK Version gt bin mxmlc exe a Open CMD window in C HelloHlex directory b Run command mxmic HelloHex mxml ci IC WINDOWS syvetemS iombe Miceaseft Windows HP Version 5 1 7 KOR KC Copyright 1985 27081 Microsoft Corp iC He LloPlexdexcmlo He lloPles mxnl l i dading configuration File C Program Fil essAdobesFies Builder Jssdko53 3 0f ron eworks lt f lex conf idxal Coste lloPlexsHWelloPlex sWwf 181661 hijbes i SHe Ll loP lex a 5 Test the application by opening C HelloHlex HelloHlex html in Internet Explorer 2015 Inflectra Corporation 34 Rapise User Manual fz HelloFlex windows itene Eslen pr iniz xE Live Search pag P k al C HelloFlex HellaFlex OOo Bile tat view Favorites g Favorites E HelloFlex Hello Flex Button JE a Enable HelloFlex Application for Testing To make HelloFlex application testable by Rapise you need to link it with automation libraries Link HelloF lex with Necessary Libraries For Flex Builder 3 x recompile the HelloFlex application using the following command line that links automation swc and automation_agen
266. on libraries The application under test contains various standard GUI controls such as button edit tree combo box menu etc jQuery Ul This sample illustrates using the jQuery HTML DOM extension library that allows you to record playback test scripts against web applications using widgets from the jQuery Javascript library framework Library Information System These tests can be used to test the sample library information system web application hosted at http www libraryinformationsystem net This is the same sample application used by Spiralest and illustrates how you can use Spiralest to manage and execute automated Rapise tests A copy of these tests is also available in new installations of SpiraTest v3 2 Managed This sample tests a NET 2 0 application This sample demonstrates the capabilities of the Managed library The application under test contains various standard GUI controls such as button edit tree combo box grid listbox listvew menu etc QtFramework TThis sample tests a sample QT Framework cross platform application This sample demonstrates the capabilities of the QtFramework library The application under test contains various standard Qt widgets such as button edit tree combo box etc Silverlight This sample tests a Silverlight web application This sample demonstrates the capabilities of the UlAutomation library The application under test contains various standard GUI controls such as
267. on operate as expected In some ways they are similar to unit tests in that they test specific pieces of code rather than user interface objects Unlike simple unit tests however web services tests will normally need to be developed for each of the Supported versions of the API so that when a new version of a product comes out you can regression test the latest version of the API and all previous versions This ensures that legacy clients using the older version of the API don t need to make any changes Also unlike unit tests web services are being called across a network using the HTTP HTTPS protocol rather than simply calling code that is resident on the same system as the test script In that sense they are similar to testing web sites Finally in situations where you have an AJAX web application as well as testing the front end user interface using the appropriate Ul library you may need to test the web service that is providing the data to the user interface at the same time In these situations you have a hybrid web user interface and web service test Testing Web Services with Rapise 2015 Inflectra Corporation Rapise User s Guide Rapise contains a built in web service module that can currently test the following types of web service 1 REST Web Services Rapise contains a built in REST definition builder and object library that allows you to prototype out your REST web service requests inspect the returned HTTP headers a
268. ongratulations You have successfully completed this tutorial and now know basics of testing Flex applications with Rapise Using FlexLoader for Flex 3 Applications If you do not want to compile your Flex 3 application with automation libraries you have an option to use FlexLoader FlexLoader is a Flex 3 application compiled with the required automation libraries and capable of 2015 Inflectra Corporation 40 Rapise User Manual loading any given SWF application With FlexLoader you do not need to modify your application to make it testable by Rapise You will need to choose between FlexLoader 3 and FlexLoader 4 according to which Flex SDK version your application uses To use FlexLoader 3 just copy FlexLoader html and HexLoader swf from c Program Files Inflectra Rapise Extensions Hex FlexLoader bin to your web server near your application Then type in browser URL to HexLoader html and supply additional query parameter with the name of your SWF file e g http localhost HexLoader html automationswfurl Sample swf You can find sample application for testing here c Program Files Inflectra Rapise Extensions Flex FlexLoader bin Sample swf Using FlexLoader for Flex 4 Applications lf you do not want to compile your Flex 4 application with automation libraries you have an option to use FlexLoader4 FlexLoader4 is a Flex 4 application compiled with the required automation libraries and capable of loading any given SWF applicatio
269. ook AuthorId 2 newBook GenreId 37 ses LibraryInformationsSystem Add Book SetRequestBodyObject newBook ses LibraryInformationsystem Add Book DoEzecute ses3io0n id sessionid ses LibraryInformationsSystem Get Books DoExecute session id sessionId books SeS LibraryInformationsystem Get Books GetResponseBodyObject Tester AssertEqual Book count matches 15 Bbooks length As well as simply calling the DoExecute method of each REST web service object to call the previously defined operation you can use the various properties on the REST service object to send through specific parameter values add remove headers change the authenticated user change the request body as well as inspect all of the attributes in the request and response This allows you unparalleled control over the web service request with the ability to debug and diagnose web service issues in addition to being able to quickly call the learned operations Since the REST objects are just like any other Rapise object you can have hybrid test scripts that call web service methods and also test GUI objects This is very useful when you want to test how the user interface changes in response to specific web service API interactions or when you have a user interface that connects to the sever using a web service for example with a JSON based AJAX web user interface gy EE Libraminormationsystemrest EF start poge WI MyrestTest
270. op down menu e Learn Object 2 4 1 3 Analog Recording Concept Sometimes you have to automate the testing of an application that contains some controls or elements that are not standard objects that can be recognized by Rapise For example you may have a drawing canvas inside an application that allows you to annotate a diagram You can use the standard Rapise 2015 Inflectra Corporation e2 Rapise User Manual libraries for the rest of the controls but the actual drawing events cannot be captured that way Analog recording is available to fill in the gaps in such scenarios During Analog Recording Rapise records mouse movements keyboard inputs and clicks and stores them in a special ARF Analog Recording File format file ret ib Ligh Start Page Fy Analog Test js 7 AnalogOO01 art 4 gal Test a G Analog C sersiadam sandman Documents My cP AnalogO001 arf There are two types of Analog Recording Absolute and Relative e Absolute Mouse coordinates are recorded relative to the top left corner of the screen e Relative Mouse coordinates are recorded relative to the top left corner of the object beneath the mouse cursor Usage When you are recording your test using the application you may come to a point where there are user actions that you need to record that don t have any identifiable objects for example drawing a signature You can click on the Analog button on the recorder to engage Analo
271. or In most cases SeSExtendAction should be called from within Testinit Calling Base Actions The function you are overriding is called the BaseAction You can call it like this this BaseAcltion arguments You may override actions several times For example FUNeta on DOACE DOME this BaseAction TOSE LON DOACEL ONC this BaseAction SesExXLendAction Wins Zzbucron DoAction DoAcr Tone SeScExtendActron Wins Buttont Dekct ion DoActionCc When DoAction is called for the Win32Button the following sequence is executed DoActionC gt DoActLonB gt DoAction See Also e To see what actions can be extended look in SeSBehavior js in the Rapise Engine 2 4 1 6 Multiple Recordings Purpose Every time you record the script recorder updates your test script Be cautious about what changes you make to the test script some changes could be lost if the recorder is re run see Usage Usage The test script path can be found in the Settings Dialog under Settings gt ScriptPath Unless you specify otherwise the test script is named testname js where testname is whatever you named your test 2015 Inflectra Corporation Rapise User s Guide oot Note that the Script Recorder only has knowledge of four functions and two data structures function Test function TestlInit function TestFinish function TestPrepare array g_load_libraries
272. or make sure you have installed it using the SDK manager Then you can launch from the main menu of the Android SDK Manager the Android Virtual Device AVD Manager 808 Android Virtual Device AVD Manager List of existing Android Virtual Devices located at Users elise brooks android avd T Rev Status AVD Name Target Name Platform API Level CPU ABI Create z 0 emulator64 Android 4 3 1 4 3 1 18 ARM armeabi v7a Start 24 0 2 E Update available rev 24 1 21 Update available rev 22 22 0 1 Not installed Edit 21 1 2 Installed 21 1 1 Not installed Repair 21 1 Not installed Delete 21 0 2 Not installed 21 0 1 Not installed Details 21 Not installed 20 Not installed 19 1 Not installed 19 0 3 Not installed 19 0 2 Not installed 19 0 1 Not installed nm I Alea Le ee t Install 27 packages re Delete 14 packages Refresh packag amp A repairable Android Virtual Device An Android Virtual Device that failed to load Click Details to see 1 cE In this case you can just create the Android Virtual Device Start it and then connect to it using Rapise You are now ready to start mobile testing of your Android device 3 Using a PC to Host Android Devices The first thing you need to do is go to the Appium website http appium io and install the latest version of Appium Once it is installed you can start it up
273. ording Activity Dialog When you have finished recording the activity for the AUT press the Finish button or CTRL 3 Note Do not terminate the TwoDialogs application When you do this the Recording Activity dialog will be closed and the AUT will lose focus Rapise will change the view to display the newly recorded script It will look something like the following 2015 Inflectra Corporation Rapise User s Guide E Open E Open Test from Spira Run with Internal Debu gt Pe ty 5 l Object Mgr Q p G Start Pag z W Save s iy Spira Properties SOP Level 1 Minimal X j3 s Helpindex S Spira Dast d Save Record Leam Play y Options Find in Help W SavetoSpira d Web Services P File 2 f Activa ecording amp Learn gg g eip A Object Tree 1l T Start Page B TwoDialogsTestjs x i n 8 a W Object Tree CAUsers adam s 7 J itt titt Sc t Ste 2222222 22 af J infiectra Rapise Two Dialo Stteeset cript Steps s teeseee gt OKIOK g On function Test gt jebi Please_enter_your_na t gt O Global O User Functions eee s es s Recorded at Thursday 04 September 2014 12 06 24 we ser Variables P ve User Variables Please enter your name Change text to chris SeS Please enter_your_neme_ DoSetText chris Press button ORK SeS OK DoAction g_load_libraries Generi ah Test Files Settings Object Tree Notice that the two steps of the script are automatically documented and that they
274. ording screenshots of the objects and screens you interact with From this Rapise will create a fully formed test script ready to use Step 1 Creating a New Test To start manual testing simply create your test as normal using the New Test dialog box Then once the test has been created click on the Manual Steps icon in the Test ribbon and then you will be taken to the Manual Editor with the Manual Test Ribbon Visible File Test Manual e Reload Ej Add Step E View in Browser tb Release R Y v Record Screenshots Ls a x l Er ial Save Local 9X Remove Step w3 New Incident A Whole Window Save Execute Record a n Manual Manual With Cursor Spira Editor External Tools Playback Recording The test step list will initially be empty G Start Page 3 MS Paint Test TC34 js 1 Manual Steps_nnt CPt wcwccccccccccccccccccccccccccccccccccccccccccccccccccsceccccwcccccccccccccsccccccsccccccccccccsccccccccccccccccccccccosccescccccccccccccoceccscccscccccccccessccccccccescccccccccccecccccccccccccccccescccccesccccccccccccccccccsccccccecccccccccesccccccccccccccccsccscccccccccoscccccesccccceccccccccccccccccccsccscoscccescccecs Stepld Description Expected Result Sample Data Step 2 Recording Some Steps Now you should open up the application you want to record from In this example we shall be testing the built in Microsoft Paint application This is a good candidate for manual testing as a lot of the functionality is hard to test
275. ou may get the following message 2015 Inflectra Corporation 306 Rapise User Manual te new session could not be created Original error Could not find adb Please set the ANDROID HOME environment variable with the Android SDK root directory path 33 This means you need to use the Windows control panel to add a System environment variable called ANDROID_HOME and set it to the path of the installed Android SDK typically c Program Files x86 Android android sdk lf you want to test using the Android simulator make sure you have installed it using the SDK manager Then you can launch from the Windows Start Menu the Android Virtual Device AVD Manager Android Virtual Device AVD Manager Tools Android Virtual Devices Device Definitions List of existing Android Virtual Devices located at C Users adam sandmani android avd AVD Name Target Name Platfor API Le CPU ABI No AVD available Refresh d A repairable Android Virtual Device B An Android Virtual Device that failed to load Click Details to see the error In this case you can just create the Android Virtual Device Start it and then connect to it using Rapise You are now ready to start mobile testing of your Android device See Also 2015 Inflectra Corporation 2 7 5 1 Rapise User s Guide 307 e Mobile Testing for an overview of mobile testing with sub sections on testing using iOS and Android
276. ouse left button 8 When you have recorded enough switch to the Analog Recording dialog box and press the close button or press the key sequence Cirl Break If you use the close button on the Analog Recording dialog the movement of the mouse to the Analog Recording dialog and the mouse click on the Close button will be recorded as part of the analog recording output This might not be a desirable outcome at playback time because the Analog Recording dialog will not be present and the mouse click will be played in a potentially random place on the screen For thjis rason Ctrl Break is probably a better option to terminate analog recording NOTE The grid will have no entry added until you end the analog recording with the Close button in the Analog Recording dialog When you do it will add an entry to the grid 2015 Inflectra Corporation Rapise User s Guide 283 Recording Activity for Two Dialogs Sample Object Acton Data Comment Please enter Analog Analogna Plays recorded events from Analog 4nalog0002 art tile Analog Ctrl 4 _Simulated Cancel Finish Ctrl 3 Ready Transparent 9 You can now record additional analog sessions if you wish 10 You can record normal object activity before and or after the analog recording When you have finished all recording press the Finish button or hit Ctrl 3 11 The Rapise screen will now be restored and will have placed focus in the editor pane of
277. own on the OK object we would expect this would be the same as DoClick However go back to the AUT fora moment Using the mouse press the left mouse button over the OK button but don t take your finger off the left mouse button What happens is that the button takes its pressed state in appearance but the button is not clicked The reason for this is that the DoClick or DoAction events cause the mouse button top be clicked as well as released Therefore we would need to have a pair of events SeS OK DOLBUETONDOWN SeS OK DoLButtonUp in order to make the click happen Try this in the test script you have created by adding those two lines of code in place of the DoClick line It doesn t work Let s play a little with this problem When you press the Play button leave the mouse alone Just press the left mouse button on the Rapise Play button and take your hand away from the mouse 2015 Inflectra Corporation Rapise User s Guide 289 The script does not press the OK button in the TwoDialogs AUT Now press the Play button on the Rapise and quickly move the mouse to hover over the OK button in the TwoDialogs AUT Now it works What s going on here is that the DoLButtonDown and DoLButtonUp methods are pressing the mouse irrespective of where the mouse cursor is positioned The other functions DoClick and DoAction are methods that are applied to the button and so they are applie
278. ownloaded from SpiraTest You can change which files are to be downloaded Once you are happy with the list of files being checked out click the OK button The system will display the message that it s downloading the files from the server If an error occurs during the download a message box will be displayed otherwise the dialog box will simply close Viewing the SpiraTest Properties of a Test To see which SpiraTest project and test case the current Rapise test is associated with click on the Spira Properties icon in the Tools section of the Rapise Test ribbon This will bring up the Spira Properties dialog box 2015 Inflectra Corporation Rapise User s Guide _S CreateNewBook Properties Spira Properties Spira Project Library Information System Test Folder Functional Tests Test Case Ability to create new book gt Unlink from Test Case Close This will display the name of the current Rapise test together with the name of the SpiraTest project test folder and test case that this test is associated with lf you would to save the current Rapise test into a new SpiraTest project or if you want to save it against a new test case in the same project you must first unlink the test To do this click on the Unlink from Test Case button This will tell Rapise to remove the stored SpiraTest information from the sstest file so that it can be associated with a new project and or test case in SpiraTest Warning This operatio
279. p 6 4 PRO VonagetX PRE Purpose The Select an Application to Record SAR Dialog appears before Recording takes place It queries the user for which program to record as well as what Recording Library to use If you are recording the same application for the second time then SAR is not shown The recording proceeds to last used application if it is still available on the screen How To Open To open the SAR Dialog press the Record Learn button on the Ribbon Test tab gt Recording amp Learning menu 2015 Inflectra Corporation Rapise User s Guide 29 B F n m Record Learn Recording amp Learning Libraries Library Description Auto Detect library automatically NET MET 1 1 2 0 3 0 3 5 with Accessiiity MW Internet Explorer HTML HTML OOM based recorder for Internet Explorer Firefox HTML HTML DOM based recorder for Mozilla Firefox Generic Generne libran contains basic definitions for most commo The Library table lists the available Recording Libraries Select the one appropriate to the process program you will record If you select Auto Rapise will attempt to choose the correct recording library for you See the Recording Library section for more information Available Applications Available Applications FIL Fath jh r Uz2 Cw ndowssesplorer exe arde C Program Files GQoogleGoogl T oolbart E Co Windows ystemae cmd exe 4796 CAMWindows sustems2 cmd exe Ed Help amp Manua
280. pecific object However since JavaScript is fundamentally an un typed language for the code completion to work there are some tips and tricks that you can use One may define a variable as simple as var p In this example p is just a variable with undefined type It may be used as number string or object So Rapise has no idea of how to deal with it So if you type a dot after p no code completion window appears Rapise scans for variable definitions when one saves the js source file So if anything goes wrong then first thing is to save the file There are several ways of giving Rapise a hint about the variable type 2015 Inflectra Corporation Rapise User s Guide 129 Static Assignement First is static assignment Suppose you specify some constant value when defining a variable var p some string In this case Rapise knows the type of p So it would assist you when you type a dot after p F Start Page 2 Calculator j ul E fUse Record Learn button to begin test recording function Test DA Chav Ab nde i i charCodeAt index concat siring1 sining indexOfsesnchs ting start lastindexOf searchsirmng start i match regexp replace regex Or String news tri j search regex shoe begin end 1 soltiseparston lna i The chaf method retume the character at the specihed index in a shing The mabek ot the first Character ts 0 and the m
281. per left corner of the selected objecs The events are recorded in a file of type arf Analog Recording File 4 Simulated Object Recording a Rapise user can use simulated objects when some objects are not natively supported by Rapise e g their internal structure properties and actions are unknown In this case what is recorded are mouse clicks and keyboard activity Compare to Analog Recording when all mouse and keyboard actions are recorded including mouse up down mouse move events See Simulated Objects for more information 5 Manual Recording In addition to providing automated testing functionality Rapise enables you to create manual tests ones that will be carried out by a human tester rapidly without having to laboriously enter in test steps and screenshots by hand It does this by using the same recording mechanism used for automated testing to create a manual test case that contains a list of the tester s interactions and screenshots of what was performed This is useful for exploratory testing and is a huge time saver Usage Before an operation press enter text select click etc can be performed on an object automatically Rapise must be able to identify the object That identification must be able to locate the object definitively and it must be able to duplicate the action or operation precisely This carries several 2015 Inflectra Corporation Rapise User s Guide implications Firstly ifthe AUT is in a di
282. pise User Manual Object Tree Dialog sirieias aape aaa seed desea beac vacieei wanes aaa e a Naa aaa aa aa aaa a a aS aaa Raa 222 Qpuons Dal osisssa Eaa aE eaaa aE ai 223 Output VIEW crn aeara a aaa apaa aa Aaa E Aa A Aaaa aeaa eaaa aa a aaaea aa ahaaa aAa aaa iaae 226 Properes Dalo O a ar aaa paaa a aaa aa aa aa aa Aaaa a anera aaa Aaaa aana aaae Ei 227 Recording Activity Dialog oenina anena anaana anana anaa a aana aa aaa aAA Aaa aAA EA aaa aaa Raae A A AA AAE AAAA AEA aAa SEERA EAA 228 Replace Text Dialog sinia a reece Eaa a aaa EA Ear aaaea 231 Re p rt VICW ON ecreoo iinnat danne eanan aaan aaan aa aaa aa Aaa aaan EAE aa aaaea Aaaa xesusuuanceccddeactenseestventeeweddewencaiaces 232 REST DefMtUON BOOT oiii r a aa AEE 233 PID DON TOS tanaoa eee eed a aAa A E a Oana aa eet aO Aaa ees ies 236 RID DON Re DOM BET SAA EA A EE AA E P E E E A E TATT 239 RIDDON SpreadSHhe Ol PE E P E E A E E T 240 ADDON B a a a a ene eee ee ee eae eee eer see 241 PIDDON DE DUGG CN MPPE E A ATE E A E tea E A A A eaves E ae haere TTT 242 PUD DO Wan Wall es a a e a aa a E a 243 gilo eTel ale n coi M E E E E A A AE E O E E E EA AE EEA 245 Select an Application to Record Dialog ssssssnsssnsnsnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnmnnn nnmnnn nnmnnn nnmnnn 247 Settings DialOG asiasana aape aaa eaaa aa AA aaa a Aaa aaa aae aa aaaea SaR EE 250 SOUC EANO Pyara aaa a aaa a 254 Spreadsheet ViEW OF ivcsccscciscensesicccssecesceaceseads sectaseaesnnededcess
283. ple iOS Tests e C Users Public Documents Rapise Samples UsingMobile AppiOS testing a native App e C Users Public Documents Rapise Samples UsingMobile WebiOS testing a web app Sample Application AUTIOS e C Users Public Documents Rapise Samples UsingMobile AUT AUTIOS See Also e Mobile Testing for an overview of mobile testing with sub sections on testing using iOS and Android e Mobile Testing Tutorial for a simple introduction to mobile device testing 2015 Inflectra Corporation Rapise User s Guide 315 e Mobile Settings Dialog for information on setting up the different mobile profiles for the mobile devices you will be testing e Mobile Object Spy for information on how Rapise connects to the device and lets you view the objects in the application being tested 2 8 Extensibility The Extensibility section is for experienced Rapise users who want to extend capabilities of the tool 2 8 1 Tutorial Custom Library In this section you will learn how to create a Custom Library and add support for a third party GUI control to Rapise We will be using a demo application called CustomControlApp Our Custom Library will be simple It will allow to Record and Learn objects of CustomListboxControl type and also Playback actions for this type of objects This tutorial is complemented by a ready test CustomControlTest which you ll be able to examine and run Tutorial Data e CustomControlApp folder C Program Files Inflect
284. ply choose which type of locator you wish to test in the example above we are using XPath on an iOS device and click the button The properties discovered from using this locator on the device in question will be displayed in the right panel The following locator types are available e XPath This allows you to enter an XPath selector that uniquely locates a specific element in the mobile object hierarchy e Id This allows you to enter the ID of a specific object and test to see if it can be found e CSS For mobile website testing only this lets you enter a CSS selector that can uniquely locate an object e Tag Name This lets you find elements by their Tag Name field For web testing this is the name of the DOM element e Class Name This lets you find elements by their Ul Component Type e Name This lets you find elements by their Name field e Android This lets you enter a string corresponding to a recursive element search using the UiAutomator Api Android only e iOS This allows you to enter a string corresponding to a recursive element search using the UlAutomation library iOS only e Accessibility This lets you enter a string corresponding to a recursive element search using the Id Name that the native Accessibility options utilize 2015 Inflectra Corporation 220 Rapise User Manual e Link Based on the WebDriver standard it lets you find hyperlinks using an exact match of the link anchor text e Partial
285. pository MS Paint Test TC Remote Folder Root Folder MS Paint Test TC Click on Create and then the manual test will be saved to Spira You will see that this process adds the unique Spira test step IDs to each step They are displayed using the format Ts xxx This special token TS xxx Can be used in Tester Assert Commands to relate specific_verification points with test steps during automated testing 2015 Inflectra Corporation e Rapise User Manual Gi Start Page ManualSteps rmt_ Px w MS Paint Test Stepld Description Expected Result Sample Data TS 47 ef Step 4 User clicks on Pencil of E SeS Pencil DoLClick 15 9 TS 48 T Step5 User clicks the Text tool A SeS Text DoL Click 14 16 E TS 49 Step 6 User clicks at 156 256 in the canvas a i ne i SeS Simulated Dol Click 1 56 256 TS 50 Beat fet Ss 7 i Step 7 Enters text This is some text This is some text SeS Text1 DoSetText This is some TS 51 text r Step 8 User clicks on the Bold button B SeS Bold DoLClick 11 14 gt Now that the test has been saved in Spira you can click on the View in Browser option to see how the test steps look inside Spira v Test Steps gt Insert Step Insert Link Delete Copy Refresh Edit Parameters DE i Execution 0 Step Description Expected Result Sample Data Stat
286. pps a iPad Retina Marne Wersion Identifier Pr LAMIB6F AUTIOS l com inflectra AUTIOS Poa Pad Retina Then back in Xcode choose your physical device and use the Product gt Build and Run option to test that the app launches on the device amp Xcode File Edit View Find Navigate Editor wis lis Debug Source Control Window Help Run HR Test ou 8866 i AUTIOS xco Profile dol a j gt AUTIOS G E Goshen iphone Analyze ggg AUTIOS on Goshen iphone 7 B Du a _ Bi hi ARAN vc Al Archive f AUTIOS xcodeproj Ga Byte a Build For P t o General Capabilities pAs es Perform Action gt ES ste CD ives amp AUTIOS xcodeproj Build so E Retina 4 inch Support Clean SHEK Applications using Launch Screen Files and targetting Stop ap earlier need to also include a Launch Image in an Ass Ben Y m AUTMainController m Scheme F ditional SDKs Semantic Iss ER gt A Semantic Issue Destination P chitectures Conflicting return type in implementation of numbet PickerView NSInteger aka int vs long e SDK Create Bot TA a fads gt A Semantic Issue ld Active Architecture Only Conflicting return type in implementation of pickerView numberOr Debug Groen omnia hE atone aba inti wee nnn Example You can find the iOS sample tests and sample Application called AUTIOS in your Rapise installation at the following locations Sam
287. properties you can perform the following tasks e Parent This selects the parent object of the one displayed e Highlight This will attempt to Flash highlight with a red rectangle the object selected in the Spy e Refresh this simply refreshes the Spy view to reflect any changes that might have occurred in the application e Save to File this will save the properties of the currently selected object to a text file 2 4 1 7 5 Ul Automation Spy Purpose The UlAutomation Spy is used to inspect applications that contain Microsoft UlAutomation objects 2015 Inflectra Corporation Rapise User s Guide e g Windows Presentation Framework Silverlight or Java s Standard Widget Toolkit running on Windows Screenshot P Start Tracking Ctri G led E List tem TypeProperty Not supported listBoxltemO Listitem Labeled By Property Not supported listBoxdtem 1 ListItem LocalizedContral Type Property list listBoxltem2 Listitem pemenones a aia Vative Window handle mper 77au listBoxltem3 ListItem ftue drig peri OPTS i Onentation Property Not supported listBoxltem4 Listitem Process ldProperty 9799 Runtimeld Property System Int3z E Primary Automation D list Box 1 gt Index inParent 18 Name E Native Handle 1379098 El SelectionPattemldentifier CanSelectMuttinle Property False a Features The UlAutomation Spy has the following features e The Tree pane lets you view the hierarchy of UlAutomation objects a
288. purpose and consequences of all buttons options lists and check boxes are listed How Tos This section focuses on specific tasks that a Rapise user might want to accomplish 2 2 Glossary This glossary presents a list of terms and their definitions as they are used in this guide API Application Programming Interface AUT Application Under Test DOM Document Object Model GUI Graphical User Interface GWT Google Web Toolkit IDE Integrated Development Environment JSON JavaScript Object Notation REST REpresentation State Transfer SOAP Simple Object Access Protocol UI User Interface XML eXtensible Markup Language YUI Yahoo User Interface library 2 3 Getting Started The Getting Started section is for new Rapise users It has the following subsections 1 An Overview of Rapise what it s for and how to use it 2 Samples Index where the sample projects included with Rapise are described 3 Tutorial Windows Testing a step by step tutorial for creating your first test with Rapise using a Windows desktop application 4 Tutorial Web Testing a slightly more advanced tutorial in using Rapise to test a web page 5 Tutorial Testing REST Web Services a tutorial in using Rapise to test a RESTful web service API 2015 Inflectra Corporation 8 Rapise User Manual 6 Tutorial Testing Adobe Flex Application a tutorial explaining how to use Rapise to test an Adobe Flex application 7 Tutorial
289. r checkpoint will be associated with a particular object That object s properties will be listed in the Verify Object Properties dialog Check those properties that you wish to verify during playback Enter expected values for the selected properties in the Value column Note The Bitmap and BWBitmap properties are images of the object 2015 Inflectra Corporation 272 Rapise User Manual Bit map BW Bilmap Height ObjectlType Wins2Button State 0 Value Width WindowText Press the OK button The Verify Object Properties dialog will close and the Recording Activity dialog will contain a new Verify action Acton Data Comment Yenfy that Height 29 wl Spy Ctri 5 Analog Ctri 4 Simulated Finish Ctri 3 Learning object Transparent The generated script will have a corresponding assert statement f Verify that Heiqght 29 Tester ssertEqual Verify that Height 29 SeS Obj1 GerHeight 29 gt See Also e Recording e Assert Statements 2015 Inflectra Corporation Rapise User s Guide 273 2 5 43 Warning View Screenshot CiyProgram Files Inflectra RapiseUsinghSexcel UsingMSexcel js LD mismatched input i expecting RFAREN Output Warnings Errors Fire Results Purpose To display syntax error messages as you edit javascript files How to Open The Warning view is part of the Default Layout Error Message CProgram Filesnflectra Rapise UsingMsexcel Usi
290. r pane of the Rapise with TwoDialogsAnalogAbsolute js script displayed You should see code something like the following Plays recorded events from Analog Analog0003 arf file SeS Simulated DoAnalogPlay Analog Analog0003 arf 12 Press the Play button on the Rapise toolbar to playback the recording you made Be sure not to interfere with the mouse or keyboard whilst the recording is playing back NOTE You will see all mouse and keyboard activity reproduced as the analog recording plays The recording will start from the point where you left clicked the mouse to begin the recording step 7 above and will end with clicking the close button in the Analog Recording dialog or at the last action before you pressed Ctrl Break 13 When the analog playback is complete use the mouse to move the Two Dialogs AUT to a different location on the screen Play the recording again and watch the operation unfold The most important thing to realize is that the absolute analog recording will playback the recording wherever the application is positioned on the screen wherever the AUT was positioned when you made the recording Absolute analog recording records relative to the top left corner of the system screen Try this for yourself but be sure to minimize all applications before starting 2 6 6 Do Relative Analog Recording Let s once again use our trusty over simplified TwoDialogs sample application to learn how to use relative analog recording
291. r_your_name_ locations locator_name Location location 4 location 4 4 window_name param window_text window_class param window_class by locator name LocationPath location 4 window_name param window_text window class paYram window class path I object_name param object_name object_class param object_class object_role param object_role by object_name param window_Ttext object_class param window class object_role ROLE_SYSTEM_DIALOG 2015 Inflectra Corporation Rapise User s Guide st locator mame LocationRect location window_name param window_text window_class param window_class rect object_name param object_name object_class param object_class object_role param object_role To 222 Tye A0 w 140 hi 23 window_text Inflectra Rapise Two Dialogs Sample window class 32770 object_text Chris rob ject role ROLE _ SYSTEM WINDOW object_class Edit object name Please enter your namel version 0 object_type Win32Text object_flavor Text object_library Generic See Also e Recordin e Learning invisible and Simulated Objects is slightly more complicated You can find information on both in the Recording Activity Dialog section Look for descriptions of the Pick Object button and the _ Simulated dr
292. ra Corporation 124 Rapise User Manual 2 4 5 2 External Debugger Purpose When you enable the External Debugger the Microsoft Script Debugger is used to debug your script Rapise provides an Internal Debugger as well Usage You can enable the External Debugger on the Rapise Ribbon Test tab gt Debugging menu No Debugging Level 1 Minimal sd Debugging The top drop down menu has four options e No Debugging e Run with Internal Debugger See Internal Debugger for more info e Run with External Debugger Open the Microsoft Debugger to run the script e Run External Debugger on Error Open the Microsoft Debugger only if an error occurs When you choose the Run with External Debugger option Microsoft Script Debugger will open as soon as you begin Playback of your script The debugger will pause on the line WSCELDL Echo Sen Player Starting n1 and display an error message There is no actual error you can begin debugging Note however that Rapise is mostly written in javascript and the Debugger will step through Rapise implementation as well as your test script 2015 Inflectra Corporation Rapise User s Guide 125 Bl Microsoft Script Debugger _ file Edit View Debug Window Help iie iD ae ea 2 ee gt E ou OO ie ee E Pead ory Plier Toreakl I ite a SrarteUnit is a GU unit tasting engine developed by SmadteSot Inc Copyright Cj 2006 2005 SmartaSott inc JScripi gt JScr
293. ra Rapise Samples AdobeFlex3 AUTFlexAlR bin debug AUT FlexAlR app xml 2015 Inflectra Corporation 204 Rapise User Manual 2 1 2 Sample Applications and Test Two sample Flex 3 applications are available with the Rapise installation They can be found at lt Rapise install dir gt Samples AdobeFlex3 AUTFlexFP b and lt Rapise install dir gt Samples AdobeFlex3 AUTFlexAIR The binaries and source are both provided One sample Flex 4 applications is available with the Rapise installation It can be found at lt Rapise install dir gt Samples AdobeFlex4 AUTFlexFP4 The binaries and source are both provided Sample tests for the sample applications can be found in lt Rapise install dir gt Samples AdobeFlex3 and lt Rapise install dir gt Samples AdobeFlex4 To select the target for testing edit the following line in AdobeFlex user js file Select flex target for testing 2i var testTarget FlexIE FlexAIR FlexFirefox FlexIE Note If you choose AIR target please do not forget to run the sample application before executing the test See Also e Tutorial Testing Adobe Flex Applications Cross Browser Testing You can run your recording in a different browser than the one in which it was recorded Selecting a new Playback Browser First open the script for your test using the Test Files Dialog Locate the line where g_load_libraries is initialized Under the Hood It is possible to have more co
294. ra Rapise Samples Extensibility CustomLibrary CustomControlApp You may build this application yourself in Microsoft Visual Studio C or use ready executable lt CustomControlApp folder gt Release CustomControlApp exe e CustomControlTest folder C Program Files Inflectra Rapise Samples Extensibility CustomLibrary CustomControlTest e CustomLibrary file C Program Files Inflectra Rapise Samples Extensibility CustomLibrary CustomLibrary js If you prefer active experimentation learning style you may first skip to subsection 9 and after playing with the ready test and library start reading from the beginning 1 Application Under Test CustomControlApp contains an object of type CustomListboxControl The control is similar to a single select listbox but each line item has a corresponding progress bar indicator indicating a current value Using the left right cursor keys you can change the value of the currently focused item 2015 Inflectra Corporation sie Rapise User Manual a CustomlControl4pp Sah String 2 String 3 String 4 String 5 String 6 String 7 If you will try to record a test for CustomControlApp using just Generic library you ll see that CustomListboxControl is treated as Simulated Object and all interactions with it are recorded as mouse clicks and key presses For some tests such functionality is sufficient but if you want to be able to recognize CustomListboxControl as a list get its items s
295. ram Files 86 Adobe Adobe Photost C Program Files Dell T Pad Apntex exe C Program Files Dell T PadApnt Ex exe em Help ndSamples Microsoft Visual Studio C Program Files 86 Microsoft Visual Studio Windows explorer exce Inflectra Library Information System Wind C Program Files Intemet Explorer explore ex Menu 644 C Program Files 6 PRO Vonage X PRE _ Msg 63624 C Windows Sys WOW 64 rundll3 exe Tdm Notify 54 C Program Files Wave Systems Con Truste E Tutorial Record and Playback Mozilla Fire 46244 C Program Files 86 Mozila Firefox firefooc e IE Windows Media Player OHS C Program Files amp 86 Windows Media Playe The Recording Activity Dialog RA dialog will appear Recording Activity for Inflectra Library Information System Windows Internet Explorer Finish Ctrl 3 Transparent The RA dialog has a grid As you interact with the sample Library Information System program the grid will automatically populate with your actions 4 Recording Let s begin creating the test On the library information system login page click on the Log In link in the top right of the screen 2015 Inflectra Corporation 16 Rapise User Manual LIBRARY INFORMATION SYSTEM Home Book Manageme ni Ato Miana gem emi LOG IN Please enter your usemame and passwort Account Information Username Password L Keep me logged in In the username text box type ibrarian Press the
296. rding You can enable recording in two ways If your application notifies the Accessibility Events interface about application events you can override events in the behavior section of SeSMatcherRules Otherwise you will have to implement Custom Recording Custom Recording With custom recording it is the library s responsibility to e detect user actions in the application and e call RegisterAction which writes the action to the script e To see what actions and events can be overridden see SeSBehavior js in the Rapise Engine e Check the Engine Lib directory for examples e You can alter the behavior of an action without creating an entire library See the Actions section for more details 2 4 1 5 1 1 Actions Actions are anything the user can do to a GUI control such as click select fill with text etc You can override the behavior of an action without creating or altering a Recording Library using SeSExtendAction Overriding an action affects Playback but not Recording SeSExtendAction is used to override an action handler or add a new DoAction handler where 2015 Inflectra Corporation 90 Rapise User Manual e objectType is the name or regular expression specifying the object type s for which this extension should apply e doActionName is the name or regular expression specifying the DoAction handler that should be overridden e replacementFunction is the function containing overriding behaw
297. rds taken from the SpiraTest database as an example and call our Logic parameterized function with the appropriate test data var success Database DoAttach Provider SQLOLEDB 1 Integrated Security SSPI Persist Security Info False Initial Catelog splralest Data Source SELECT AFEROM STOT PROJECT Tester Assert Successfully Connected success 2015 Inflectra Corporation one Rapise User Manual var count Database GetRowCount Tester Message count Loop through the rows while Database DoSequential var projectiId Database GetValue PROJECT_ID var name Database GetValue NAME var description Database GetValue DESCRIPTION Logic name 2 4 4 9 Customizable Engine Purpose The source for most of the Rapise implementation is available for you to read and modify You may find it useful to look at if you decide to create a library customized for your application Usage Unless you specified otherwise Rapise will be installed at C Program Files Inflectra Rapise The source code is in the Engine directory You ll find the recording learning libraries in Engine Lib The core logic is in four files SeSAction js SeSBehavior js SeSCommon js SeSConfig js If you plan to make changes to the Rapise Engine we recommend you use a version control system capable of reconciling code conflicts as we do not support user customizations However let us know if you
298. re components Source Any object with a COM interface can be created and used remotely Usage Creating a COM Object You can create a COM object using Windows ActiveXObject class Once the object is created method invocation is the same as with any other object in your program The methods available will depend on the object s COM interface The following example shows how to create an instance of the Word application and open a file var doc new ActivexXObject Word Application doc Documents Open wordFileName Test Samples There are several test samples that show how to Unit Test application modules via COM interface e UsingMSWord e UsingMSExcel e UsingMSAccess See Also e Learn more about COM HERE e Learn more about ActivexObject HERE 2 4 6 3 Integration with Third Party Tools 2 4 6 3 1 Custom Strings Purpose Custom Strings allow you to associate meta data with your test Each custom string has a name and a value The value can be retrieved using the name Usage Adding a Custom String 1 Open the NameValue Collection Editor dialog Instructions are HERE 2 Press the Add button 3 Fill in a name and value for the custom string 4 Press OK The dialog will close Retrieving a Custom String value 2015 Inflectra Corporation Rapise User s Guide 133 Use the GetCustomString method to retrieve a custom string s value See the example below var factory new ActiveXObject Rapise Test
299. re executed with the associated actual result including the captured screenshot 2015 Inflectra Corporation Rapise User s Guide Test Steps RSO000084 User starts up the MS The application loads with a blank TC000034 TS000045 Paint Application canvas RS000085 User clicks the main EIR SeS TC0O00034 TS000046 Application menu Application_menu DoLClick 42 12 RSOO0G86 User clicks the New SeS New DoLClick 44 13 TCO00034 TS000047 entry ee mee RSOOGO87 User clicks on Pencil laf SeS Pencil DoLClick 15 9 TC000034 TS000048 RSOGOO8S User clicks the Text A SeS Text DoLClick 14 16 TC0D0034 TSc0Da4e RS000089 User clicks st 156 SeS Simulated Dol Click TCo000034 TS000050 256 in the canvss 156 256 RSOGIGGO Enters text This is This is some text SeS Text1 0oSetText This I6 334 TS000051 Failed with the text being illegible some text is some textir 2 a S Fi pa i 2 ct w J Z f 7 oN Se jas al Seer TEs seme gt View Incidents RS000003 User clicks on the C SeS Bold DoLClick 11 14 TCO0O034 TS000052 Not Run Bold button lf you click on the Incidents tab you can also see the new incident that was logged linked to this test run Overview Attachments Incidents Display List of Incidents gt Refresh Apply Filter Clear Filter Show hide columns v
300. rent Hame l FProp ries ee ke j Aces ibe The Spy dialog is used to Object Spy 2015 Inflectra Corporation 22 Rapise User Manual How to Open There are three ways to open the Spy dialog 1 Press the Spy Button on the Ribbon Test tab gt Tools menu 2 Press the Spy Button on the Recording Activity Dialog 3 Press the Pick Object button on the Recording Activity Dialog Note If you use this method the dialog has an extra Learn Selected button Choosing the type of Spy You can change the type of Spy that will be launched by clicking on the down arrow to the right of the Spy icon in the main application Ribbon Accessible Java Object Managed Object Mobile Object e UlAutomation Object There are five types of Spy available 1 Accessible This is used to inspect applications that expose their properties using the Microsoft Active Accessibility MSAA technology This is typically used by applications written in MFC ATL Qt C and Visual Basic 2 Java Object This is used to inspect applications written using the Java AWT and Swing Ul frameworks 3 Managed Object This is used to inspect applications written in NET 1 1 NET 2 0 NET 4 0 using Microsoft Windows Forms 4 Mobile Object This is used to inspect mobile applications running on iOS or Android devices as well as the iOS or Android simulator 5 UlAutomation Object This is used to inspect applications that expose their proper
301. resa trp si ry Bg a E aqa H Merge Cells F i EE Collapse Plain a Hierarchical gt el Save Layout POS Expand Export Export a gt Choose Images Be Esp to Excel to PDF Reset Layout Columns File Export Layout Data Display Purpose The Report tab is for use with report trp files How to Open The Report tab is available anytime you have a report trp file visible in the Content View File TiSubveriont Projec ts Rapise Tru n k H el a EE jePlaim 2 Hierarchical e The drop down menu contains a history of previously opened reports e Press Plain to view test steps assertions and messages aligned in a table e Press Hierarchical to more clearly see what assertions messages and data are associated with which test steps Export Si 928 Export Export fo Excel to PDF e Press Export to Excel to save the report as an excel file e Press Export to PDF to save the report as an Acrobat PDF file Layout ae al save Layout K Reset Layout e The drop down menu lets you choose between previously saved layouts e You must press Save Layout to keep your layout changes after closing Rapise e Press Reset Layout to undo any changes you ve made 2015 Inflectra Corporation 240 Rapise User Manual e Press Choose Columns to hide or reveal report columns e Merge Cells Merge identical consecutive cells Display e Images Toggle bet
302. rest How to Open Use the Add Web Service Dialog to create a new REST definition rest file The definition file will be opened in a REST Editor in the Content View The REST Tab of the Ribbon will also open Or you can double click on an existing rest file in the Test Files View explorer window The definition file will be opened in a REST Editor in the Content View The REST Tab of the Ribbon will also open Request 2015 Inflectra Corporation Rapise User s Guide 235 REST Request Mame Add Book Method POST httpswww_libraryinformationsystem org Services RestSeryice svc book session_id session_ id Send Credentials ibranan Ed Headers j Name Value Operations Accept application ison gt Content Type application ison gt Parameters m Hame Value Operations isession_id 82499 bec 37ed 4c64 820e a2d798cd1e84 InsertinURL gt Body A The request form has several sections that you need to populate e Method the type of HTTP request being made GET POST PUT DELETE etc e URL the URL of the web service request with any parameter tokens included e g session_id in our example above e Credentials Any HTTP Basic Authentication Headers e Headers Any other HTTP headers both standard and custom e Parameters Any parameters that have been defined in the URL that will be called from the Rapise test script e Body The body of the request for POST and PUT requests This can
303. ries Cross Browser Testing If you interact with an object that is not defined in your chosen recording library it will be treated as a Simulated Object 2 4 1 5 1 Custom Libraries Purpose lf your application doesn t work with the predefined Recording Libraries you can create your own Usage Your library can provide Basic or Full support for your application Basic support allows you to manually Learn objects write test scripts and Playback your scripts Full support allows you to Record as well Create your library in the LibUser directory Unless you specified otherwise you will find it at C Program Files Inflectra Rapise Engine Lib Lib User Basic Support Add a Matcher Rule to the library for every window type in your application The SeSMatcherRule includes information to identify your application and a set of behawors var yourApplicationRule new SeSMatcherRule object types yourAppOCa ject classname yourAppFrame You can use a regular expression here behavior yourAppBehavior Override Actions Override actions in yourAppBehavior above The action definitions you provides will be used during Playback Overriding actions does not affect recording var HTMLFirefoxBehavior actu Lone 4 act ionName Cilaok DOA CE ion EUME EON by actionName SetText DOACE rOn Funceuon Sering 7 Exe 4 2015 Inflectra Corporation Rapise User s Guide e Enable Reco
304. rl Now that we have the objects we can drag them into the test script editor and write the following script TIREE EE Script Steps FHFFHTEEEFTTHF function Test SeSConnectMobile Ses Basic Controls Button Textriel dDoCclick gt 3 ses Username DoSetText test user Ses Password DoSetText test pwd SeS AUTi0OS DoClick g load librarics Mobile 2015 Inflectra Corporation 150 Rapise User Manual 2 4 8 2 This will click on the first menu entry then enter a username and password and then finally return back to the main menu Now to playback the test simply click Play in the Rapise test ribbon and the test will play back in the mobile device U Start Page B iOS Test2js GJ iOS Test2_2015 04 15_13 551 gt p v x Drag a column header here to group by that column Type Start Name Status Comment Iteration D E E E E Message 13 54 06 008 Starting scenario Test Info Assert 13 54 51 382 Basic Controls Button TextField Label Picker Switch Slider Pass Returned Value true 0 Assert 13 55 06 386 Username DoSetText test user Pass Returned Value false 0 Assert 13 55 21 415 Password DoSetText test pwd Pass Returned Value false 0 Assert 13 55 36 582 AUTiOS DoClick Pass Returned Value true 0 sy Hest 5 85 56 5870S Tes aad aed Test Pass I O Total 6 Pass 5 Fail 0 Info 1 This is the repo
305. roid widget TextView 21 389 779 453 3 Select Profile J Edit Profiles 4 Calculated Automation ld IndexlInParent TagName Text Title XPath 4 Layout Height Widtt 4 Properties checkable checked clickable enabled focusable focused scrollable selected texi pise of android nexus7 Recording Mode Select Context NATIVE_APP Profile Contex androidid st 1 android widaet Text View Login 0 android widget Text View 21 129 android widget FrameLayout 1 an Om Be AUTAndroid DropDownSelect Buttons Bars Views Now click the Learn Object button and the object will be added to the Rapise object tree Now on the device itself click on the menu entry to go to the next screen then in Rapise click Get Snapshot to get the updated screen 2015 Inflectra Corporation 158 Rapise User Manual Spy pe Disconnect CJ Page Source S Go To Url Get Snapshot Learn Ctrl G Object Ss Test Locator Connection Device droid widget FrameLayout 0 0 800 1205 android view View 0 0 800 1205 l 0 android widget LinearLayout 0 33 300 108 0 android widget FrameLayout 0 33 800 108 E 0 android view View 0 33 800 108 EF 0 android widget LinearLayout 0 33 158 108 0 android widget FrameLayout 0 33 86 108 0 android widget ImageView 0 60 21 81 1 android widget ImageView 16 38 80 102 1 android widget LinearLayout 86 33 158 108
306. roperty is listed and recall in the previous section when we recorded pressing the button the DoAction method was chosen for the button press action 2015 Inflectra Corporation 286 Rapise User Manual Object Tree Two Dialogs Sample ab OK A 6 PS 6 6 6 6 9 DoAction DoAnalogPlay Dotllick DoE nsurev sible DoLButtonD orr DoLButtonUp DoLClick DoLOClick Doh ButtonD orr Doh Button p Dobi Click Doki D Click Dobouseblove DoRButtonD owr DoR Euttonip DoR Click DoRDClick DoSendheys GetBitmap eth Bitmap Letllass GetHeight GetN ame GetObject ype GetState Get alue Gelwidth Gety indowT ext Gets Betr Sh SetValue Set windowT ext Pa 1b I 4 8 While we are looking at this OK object let s make a few observations about it These observations will be useful for your later dealings with Rapise and will make the script more informational and relevant as you delve into Rapise First look down at the Properties box that appears under the Object Tree in the bottom left corner of the Rapise screen The screenshot below has some of the tree nodes expanded 2015 Inflectra Corporation Rapise User s Guide 287 Properties q E Locators 4 A El 3 Enabled true Fath 4 1 windon Class param window class windon Hame param window text 3 2 3 El 3 3 Enabled true El Rectangle Class param object flavor Height 26
307. ror details Execution errors are those that cause Recording or Playback to stop How to Open 2015 Inflectra Corporation 202 Rapise User Manual The Errors View is part of the Default Layout Error Message T admin rapperss ngine Player s 407 4 Microsott JScript runtime eror Exception thrown and not caught Double click on an error message to go to the corresponding source line e The text box is a search box e EJ ai The icons from left to right are Find Next Entry 4 Copy Selected J Clear All Text D and Select All Text 2 5 8 Find and Replace Dialog Screenshot Find and Replace B Find Replace Find what Search Lookin Find options Match case Include sub folders Match whole word Include hidden Look at these file types js Use Standard Search Find Next Find ll Purpose To find and replace text in files displayed in the Rapise Content View How to Open Select the Find in Files button on the Ribbon Test tab gt Tools menu Find in Files Tab e Find what Place the string you would like to search for in the Find what text box e Look In this option specifies where the search will take place You can limit the search to current document current selection current test the entire test and subtests or a specific folder 2015 Inflectra Corporation Rapise User s Guide 203 e Directory path Use the Directory Path text box to specify the directory in which t
308. rs 3 Address lication DakalMacromedialFlash Playery Security FlashPlayerTrust g eta Folders x HelloFlex cfa AS Documents and Settings a EMS Administrator EI G Application Data H Adobe ES Help E E Identities GELEES olx soD Logviewer File Edit Format view EMS Macromedia Help HES Flash Player EH Security O FlashPlayerTrust HH 5haredObjects cE macromedia com Microsoft H E 56M H SmarteSoft xi H 3 ka PI 1 objects Disk free space 11 1 GB 12 bytes Record a Simple Test 1 Open C HelloHex HelloHlex html in Internet Explorer 2 Start Rapise and press Record Learn button 2015 Inflectra Corporation Rapise User s Guide Open E Open Test from Spire No Debugging gt Ji ite UY Object Mgr Search Help oo Start Page T Save s i Spira Properties Level 4 Overficod Helpindex 5 Spira Dashboard Save Record Leam Play L_ Options Find in Help ay Save to Spira Web Services Files D About r Actvation File Recording amp Learnng Debugging Executing Tools Help a Test Files 2 Gi Start Page B MyTesttjs x a s Test Use Record Learn button to begin test recording S gt a Reports 4 Scripts function Test MyTestl js ei MyTest objects js 8 MyTesti user ps Test Files Settings Object Tree Properties Ga i Tou itt 7 gt Oi k rar pcp Y BRHOK DoAction i 1 Action resu true te TwoDi
309. rt of the test being executed Example You can find the iOS sample tests and sample Application called AUTIOS in your Rapise installation at the following locations Sample iOS Tests e C Users Public Documents Rapise Samples UsingMobile AppiOS testing a native App e C Users Public Documents Rapise Samples UsingMobile WebiOS testing a web app Sample Application AUTIOS e C Users Public Documents Rapise Samples UsingMobile AUT AUTIOS we supply the sample application as both a compiled binary and an Xcode project with Objective C source code See Also e Technologies Mobile Testing for instructions on preparing your environment for mobile testing including instructions for installing the necessary prerequisites and configuring the various third party components that Rapise uses to connect to the device e Mobile Testing iOS Setup the steps for setting up XCode for developing and deploying iOS applications Android Purpose Rapise lets you record and play automated tests on real Android devices e g Nexus Galaxy as well as test applications using the Android simulator With Rapise you have the powerful interactive Object Spy that makes it easy to record on one device and playback on multiple Prerequisites This section assumes that you have already installed and configured all of the necessary components 2015 Inflectra Corporation Rapise User s Guide For details on this please refer to the Technolog
310. s Rapise presents you with two methods for capturing specific tests and it will keep the test as a solo test or as part of a suite of tests that help you to qualify the application for release or a more formal QA process Rapise is designed to allow the developer or the test professional to add new tests quickly and so to build up a library of tests There are two methods for capturing tests e Record and playback In this type of test creation you turn on the recorder and perform the actions needed to execute the test Each test is saved to its own directory A test consists of a javascript test script js a meta data file sstest and any number of additional supplementary scripts and data files The test script is automatically generated after recording simple modifications are required to make the test data driven Checkpoints can be added during recording or manually into the script e Object driven learning Rapise considers each item on the page or within the application window to be an object Examples are buttons edit boxes links etc To create a test using this technique you have Rapise learn each control and it will keep a miniature database of all the controls you teach it To create a test you write a script to instruct Rapise to perform a particular action on each object in the prescribed order As any point along the way the script you write can instruct Rapise to look inside an object and read its data and compare th
311. s can be run from the command line 2015 Inflectra Corporation Rapise User s Guide 101 Usage The form of the command is cscript SeSExecutor js path_to_sstest_file evals where path_to_sstest_file is a path to sstest file e g C Program Files Inflectra Rapise Samples SmarteA TM SmarteATM sstest evals optional is a statement like this eval varname 1 value 1 varname2 value2 varname is a global variable associated with an option in the Settings Dialog Global variables are prefixed with a g_ The global variables under the Execution and Recording headings can be found by clicking on the corresponding option in the Settings Dialog see below Settings q sah CommandLine gt El Contents TestFiles Test ommandinterv TUL lterationsLount 1 ObjectLookupAt 150 ObjectLookupatl 1 O Recording Po siitifu awed E lc CacheObyjects Remember loccted chaste them for speec g_ cachelbyects Mi Other variables include e g scriptPath e g_ reportPath e g objectsPath e g configPath Exit Code e 0 indicates a pass e 1 indicates failure See Also e Settings Dialo 2015 Inflectra Corporation 102 Rapise User Manual 2 4 2 2 Object Locator Purpose Object locators are created during Recording Learning and used during Playback to identify learned objects and simulated objects There are four types of locators e Location This locator uses the object s index relative to encapsulat
312. s example shows how you can test an MFC application and organize your I Rex script as a set of functions The test was recorded and then split into 4 aJ Scri parts such as DoLogin DoDeposit etc FE pleATM js B SampleATM objects js The AUT being used in this test is SampleATM This is a version of ATM Sample ATM user js terminal It reads data from ATMDatabase mdb database To become familiar with SampleATM you may launch it by double clicking it in the project tree La DoLogin DoWithdrawal DoDeposit DoTransfer est Files Settings Object Tree DoBalance DoExit Properties vl A l Purpose To view and edit files This includes the following file types JavaScript js automated test script files Report trp files that open in the Report Viewer Excel xls files that can be displayed in the Spreadsheet Editor REST rest web service definition files that open in the REST Editor Analog Recording Files arf that contain analog testing mouse clicks and coordinates Manual test steps rmt that open in the Manual Test Editor How to Open Open a file using the Test Files Dialog The file will open inside of the Content View 2 5 6 Enter filter criteria for Dialog Screenshot 2015 Inflectra Corporation 20 Rapise User Manual Y Custom Filter Fiterbased on AJl of the following conditions DOBNU Purpose Allow more than one filter criteria for the same
313. s found in the jQuery UI widget library e TheHTML5 library uses the Document Object Model to learn or record objects found in the HTML 5 extensions library e The DOM YUI library uses the Document Object Model to learn or record objects found in the Yahoo User Interface library e The Generic library uses Microsoft s MSAA event model to capture user actions The Generic library should be used if there is no library more specific to the AUT available The Generic library will record a large set of applications but it has drawbacks it may skip some actions and or record unintended actions Passwords are not visible to the Generic library and must be manually entered into the test after recording e The Advanced Accessibility library is for recording with Internet Explorer In general you will want to use the Internet Explorer HTML library However there is some information available through Advanced Accessibility that is unavailable when looking solely at the DOM For example the absolute screen position of an object Advanced Accessibility is not precise as Internet Explorer HTML is and may miss actions or record unintended actions e The Java SWT library is for use with the Eclipse Java Standard Widget Toolkit SWT applications e The Console library is for use with Windows Console Applications that run in the command line e The Java library is for use with Java GUI applications that are written using either AWT or SWING Use the SWT libr
314. s function is called once before script playback It should be used to initialize script wide data counters open datasets etc e TestFinish This function is called once after test execution It should be used to release resources data sets spreadsheets TestFinish is a good place to post process Reports It may also be used as an integration point with external test management or bug tracking systems e TestPrepare For advanced users TestPrepare is called before recording and before playback It may be used to properly initialize libraries See Also To specify a different test script see the Settings Dialog The test script is specified by Settings gt ScriptPath 2 4 4 2 Naming Conventions Purpose The Rapise engine and API follow some simple naming conventions Usage You will find descriptions of the naming conventions below Note italicized text represents placeholders e SeS lt xxx gt public functions for user e Do lt Action gt action implementations e lt somevar gt and _ lt somename gt private functions and objects e g _ lt varname gt system global data 2 4 4 3 Defining Functions Purpose The Rapise test script is in Javascript You may define as many Javascript functions as you would like to call from your test script Usage There are two ways to maintain additional functions 1 Inside your test script and 2 in an external file 2015 Inflectra Corporation no Rapi
315. s not already open you can specify its path here If the program is already running you can select it from the Available Applications table e Browse button Browse for an application to open and record e Use working directory To set a specific working directory when launching the application check the box and enter in a value for the working directory e Run button To record a program that is not currently open fill in the Path text box and press the Run button e The Cancel button closes the dialog 2 5 34 Settings Dialog Screenshot 2015 Inflectra Corporation Rapise User s Guide 251 CommandLine EntryPoint Test TestParams 3 items Execution Methodology H Recording El Settings Metadata CATemp Rapise Tests Create Ne Objects Fath CreateNew Book objects js ReportPath CreateNew Book trp ScriptPath CreateNew Book js TestPath Co Temp Rapise Tests Create Ne UserFunctionsPath CreateNewBook user js Recording Purpose Use the Settings Dialog to change test specific settings How to Open The Settings dialog is part of the Default Layout Advanced El Advanced CommandLine e CommandLine is a freeform text box Use it to specify values for global variables beginning in g_ to pass the recorder and player You can view which global variables are available in the source files such as Player js SeSCommon js etc al Execution E Execution Cachel bects False Command nteryal 100 lheration
316. s toolbar or by pressing the Sa Spic button in the Recording Activity dialog during recording or learning 3 Press the Start Tracking button or type CTRL G 4 As you mouse over different objects you will see the contents of the Object Spy dialog change as it collects information about the object 5 Mouse over the object you wish to spy on and press CTRL G The reduced size tracking dialog will be expanded into the the larger Object Spy Diaog dialog presenting all the available information for the object Open the Object Spy Dialog This can be done directly using the Spy button See Also e See the Object Spy Dialog for more details 2015 Inflectra Corporation Rapise User s Guide 93 2 4 1 7 1 Accessible MSAA Spy Purpose The Accessible Spy is used to inspect applications that contain Microsoft Active Accessible MSAA objects Screenshot Boece sible T F ati ree Toperies 4 ROLE_SYSTEM_CELL ScreanshofROLeE_SYSTEM_TEAT Primary Select an applicaton to record dialog ROLE STEM GRAPHIC mk MST Stores iUser idl ROLE SYSTEM_TEXT Purpceef ROLE SYSTEM TEST The ROLE_SYSTEM_TEAT Select an Application to Record ROLE_SYSTEM_TEXT SAR Dialog appears before ROLE_SYSTEM_TEXT Reconding ROLE SYSTEM_LINK mk 2M SIT Stone C Weers Public Documents Aapse Hel lakes place lt queries the user for which program to record as well as what ROLE SyST Recording Library ROLE_STSTEM_LUN Kink MS
317. sLount 1 UbjectLookupA ttemptinterval 150 ObjectLookupAttenpts 1 e CacheObjects Remember object locations and try to reuse them for speed This is helpful with dialog based applications e Commandinterval Time interval in milliseconds between script commands during script execution e lterationsCount Your test script will be executed this many times consecutively during Playback 2015 Inflectra Corporation 252 Rapise User Manual e ObjectLookupAttemptinterval This is the time Rapise will wait between attempts to locate an object e ObjectLookupAttempts This is the number of times Rapise will attempt to locate an object Recording Beauttys aved bjects False e BeautifySavedObjects affects how the Script Recorder writes object information to your test script lf False the object definition will be written as a single line var saved_script_objects Balance version 2 0 object type Sesscimulared object name Transaction Completed Successfully n nAccount 00000005 Balance 046 00 ob ect 2c lass Static eopiectorolle s BOLE SYSTEM STATICTEXTY object text Transaction Completed Successfully n nAccount 00000005 Balance 1046 00 locations f locator name Location location te Oca con 2s 4 24 a4 VM windew name omartek lM wandowl2chace Umro 7 70 h Locator name Locattonrarh location window name SmareteAIM window class lJz277
318. sREST This sample demonstrates how you can use the Rapise Web Services module to write and execute automated web service tests against an HTTP RESTful web service 2 3 3 Tutorial Web Testing In this section you will learn how to record and execute a Rapise script against a web application We will be using a demo application called Library Information System Our test will be simple It will log on to the library catalog navigate to the main menu and click on all of the menu options to make sure the links are working 1 Open Rapise Go to Start gt All Programs gt Inflectra gt Rapise The following window should appear 2015 Inflectra Corporation Rapise User s Guide 13 A t P p 3 7 1 P 3 p a A jij R d 9 Rapise 2 1 3 33 C Users adam sandman Documents My Rapise Tests Web Test 1 Web Test 1sstest a x i Open E Open Test from Spira No Debugging J gt My 4 J3 Object Mgr 4 A Search Help u Start Page J W Save As BY Spira Properties Level 1 Minimal y Helpindex S Spira Dashboard Save Record Learn Play Options Find in Q Save to Spira amp Web Services Spy Files About 7 Activation File Recording amp Learning Debugging Executing Tools Help A Test Files 1 G Start Page x m Test gt LL Reports gt ad Scripts SpiraTeam Current Test Documentation Name Web Test 1 Test Description Rese nuca Sint Guide Use the dashboard to link tests to Preperng
319. se User Manual Inside your Test Script Define the function inside of one of the following functions Test TestInit TestFinish or TestPrepare The Script Recorder will erase code placed outside of these functions Inside user js File It is recommended to put all user functions into lt testname gt user js file available in any test from its creation E E Test Scripts Test Files Settings Object Tree This file is automatically attached into every script All variables and functions defined in it may be used in the test User defined functions are also available under the User Functions node in the Object Tree a ee ee kier Tr r A ECE T E i abl password A Signon Eabl username BL Global E Global EA Gcr E kar Spreadsheet Tester a f User Functions 0 Login 4 Logout ar User variables Test Files Settings Object Tree meee In an External File You can define your function in another file and include it 2015 Inflectra Corporation Rapise User s Guide 111 For example Punce Lom Fest Withdraw is defined inside the Test function function Withdraw amount Logi Start Withdraw of tramont Withdraw logic is here Withoraw 2E AE Vf ie loge Tuti a yr nie rons JSV eo Get at FUneEION Depos E eval gq helper Include Global GetFullPath UtilityFunctions js Deposit we derined ain UtLtlatyrunetions 7 7s Deposit 50T
320. see the new incident that was logged linked to this test run Overview Attachments Incidents Display List of Incidents gt Refresh Apply Filter Clear Filter Show hide columns v Displaying 1 1 out of 1 incident s linked to this test run Filtering results by Test Run Clear Filters A eS OS ON eee AY Oaer AY oe ea Any v Any v Any Any v S Any v Any v IN gt Edit O Bid not display the correct text Incident New 2 gt High Fred Bloggs 31 Mar 2015 IN 000071 edit Show 15 V rows per page k 1 Displaying page a Fa of 1 gt Congratulations You have now successfully executed a manual test using Rapise See Also e Manual Testing e Manual Recording 2 4 9 3 Semi Manual Testing Purpose This is a useful technique when you want to have a predominantly manual test executed by a tester that has some steps that are automated by Rapise These could be some of the initial setup tasks e g logging in starting the application or just tasks that are well suited to automation Usage Create your manual test either using the recorder or the manual test editor You can also just open up a test already created in Spira Next inside Rapise create a test scenario function that contains the necessary login In this example we shall simply automate the launching of MS Paint Create a function in the MyTest user
321. sesadam sariren Documents My Hapse TestaSpira Wew Test Repository json Download C Usersladam sandman Documents My Rapise Tests Spira New Test Extensions of files foexchede fap inp log user cmd A dialog box will be displayed that lists all the files in the local working directory and shows which ones will be checked in to SpiraTest The system will filter out result and report files that shouldn t be uploaded You can change which files are filtered out and also selectively include exclude files Once you are happy with the list of files being checked in click the OK button The system will display the message that it s saving the files to the server 2015 Inflectra Corporation Rapise User s Guide 183 Uploading to SpiraTest Server lf an error occurs during the save a message box will be displayed otherwise the dialog box will simply close Opening a Test from SpiraTest To open a Rapise test from SpiraTest you need to make sure that the following has been setup first 1 You have already configured the connection to the SpiraTest service see the instructions at the top of this page 2 The user you will be connecting to SpiraTest with has the permission to view the project that the tests are being stored in Once you have setup SpiraTest accordingly click on the Open Test from Spira icon in the File section of the Rapise Test ribbon ay Open E Open Test from Spira Run with Internal Debu
322. she desires make the necessary changes Create Test Set Each test cases will be displayed with the ID name and long description of the test case together with an icon that indicates the type of test case 1 8 Manual test case that has no automation script attached 2 Test case that has an existing Rapise test attached 3 4 Test case that has a non Rapise automation script attached Clicking on the hyperlink ID will open up the test case inside Spira in your web browser For test cases that have a linked Rapise test there will be an Open button available Clicking on this button will open the test in Rapise In addition there are two other options available e Create Test Set Clicking on this button will allow you to create a new test set inside Spira It will display the following dialog box when you select at least one test case and click the button Create New Test Set New Test Set 2014 05 08 14 23 11 Auto created Test Cases Enter in the name of the test set you want to create and click OK e Add to Test Set When you select at least one test case and one test set then click this button it will add the selected test cases to a specific test set Test Sets 2015 Inflectra Corporation Rapise User s Guide 261 This section displays a list of test set that are either created by the current Spira user are assigned to the current Spira user or are assigned to the automation host that this instance o
323. ssibility is described here http msdn microsoft com en us magazine cc301312 aspx 2 5 2 Add Web Service Dialog Screenshot Add New Web Service h This wizard will create a new web service definition file inside the current test Ny Rest Test rest C Users Documents My Rapise Tests MyRest Test 1 MyRest Test 1 rest Purpose Adds a new REST web service to your Rapise test It adds the web service as a rest file that is added to the Services folder of the Test Files section How to Open Click on the Web Services icon in the Rapise Test ribbon tab 2 5 3 Create New Test Dialog Purpose Create a new Rapise test You have the option of either connecting to Spira and storing the new test in our central test management system or simply saving the new test locally How to Open Simply click on the File tab of Rapise and click New Test Create New Test on the File menu a Creating in Spira By default Rapise will ask you to save the new test into the Spira test management system 2015 Inflectra Corporation 194 Rapise User Manual Noval NewTet Cae Basic Manual Scnphng Mode Rapise supports multiple testing methodologies Select one to be used for newly created test cre ay Assuming that you have already configured the connection to Spira first you need to select the project in Spira That will then display the test case folders and test cases in Spira 2015 Inflectra Corporation
324. ssible to notice that Win32ltemSelectable pattern is the one that perfectly suites for capturing selection accessibility events and for selecting list items This pattern contains OnSelect event that is called during recording when an item is selected in list and DoSelectltem action used to select desired item during playback But using just Win32ltemSelectable behavior pattern is not sufficient It does not support recording of progress bar value change events and it does not support setting progress bar value during playback That is why we need to define new behavior pattern Win32CustomListboxControl Look at its code Vor Wins 2CustomiistboxControl ec icons i actionName SetItemValue DoACtion function String stemName Number value var item this findItemByName itemName if null item item getTopObject instance HWND SetForegroundWindow item instance Value value return True 2015 Inflectra Corporation 320 Rapise User Manual return false actionName GetItemValue DoAction Function A Sering i tenName var item this findItemByName itemName 1 null item return item instance Value return null l evener OnValueChange function SeSObject param var itemName param name if 12 Log2 OnValueChange itemName var item this findItemByName itemName iE null item var value item instance Value RegisterAction this
325. st Normally this file has name in form user js ObjectsPath Path relative to the test directory to file containing object tree information This file contains saved_script_objects structure with all object locators gathered during recording and learning Normally this file has name in form objects js ReportPath Path relative to the test directory to the test s report file Normally this file has extension form trp which stands for Test Report ScriptPath Path relative to the test directory to the test script TestPath Path to the test definition file sstest ource Editor Screenshot S Auto Complete js w e Use Record Learn button to begin test recording function Test i i var startIndex 35 L war endIindex a var saved script objects startlnides P il Purpose To display and edit javascript files The editor supports Syntax Highlighting Syntax Checking Code Folding and Code Completion How to Open Use the Test Files Dialog to open a javascript file The javascript file will be opened in a Source Editor in the Content View The Edit Tab of the Ribbon will also open 2015 Inflectra Corporation Rapise User s Guide 255 2 5 36 Spreadsheet Viewer Screenshot iE MSExcel xls MSExcel Drag a column header here to group by that column Item1 Item2 Sum F4 r r 2 T 3 a 10 if error 4 9 13 5 10 15 Purpose To display excel xls files
326. st Case in SpiraTest that the Rapise test will be associated with This is important because without being associated to a Spiralest Test Case you will not be able to schedule and execute the tests using SpiraTest and RapiseLauncher 4 You have created an AutomationEngine in SpiraTest that has the token name Rapise This will be used to identify Rapise automation scripts inside SpiraTest Once you have setup SpiraTest accordingly click on the Save to Spira icon in the File section of the Rapise Test ribbon 2015 Inflectra Corporation 180 Rapise User Manual i Open E Open Test from Spira Run with Internal Debu gt A a 4 I Object Mor gt f Search Help GB Start Page W Save As E Spira Properties Level 1 Minimal Pot HelpIndex 5 Spira Dashboard Save Record Learn Play Options Find in Help i j SavetoSpira 4 Web Services Spy Files D About Activation File Recording amp Learning Debugging Executing Tools Help That will bring up the Save to SpiraTest dialog box re Save Test to Remote Repository Server hiipaitocalhist spira Progect Library informatron System Test Case Folders Library Information System 0 Functional Tesis O Regression Tests b O Scenaro Tests E Common Tests Meposiiory Path Local Path read only C Users adamsandmaniDocuments My Rapise Tests Spire New TestTiSowe New Testi ssie Cancel Lp The fir
327. st Web Color Test sstest Open l l L C Users Documents My Rapise Tests iOS Test 2 iOS Test 2 sstest Open an existing Test Open File C Temp login IE Rugepresa sstest Save C Users Documents My Rapise Tests iOS Test 1 iOS Test 1 sstest i Save the current Test C Users Documents My Rapise Tests Website Ajax Tests Website Ajax Tests sstest a Open Test from Spira Poy C Users Documents My Rapise Tests Rest Test 1 Rest Test 1 sstest Save to Spira Save As C ProgramData Documents Rapise Samples CreateNewAuthor CreateNewAuthor sstest Save current Test As C Users Documents My Rapise Tests Ocr Test Ocr Test sstest v7 Exit C Users Public Documents Rapise Samples UsingSpreadSheet UsingSpreadSheet sstest Options The File menu has the following options Create a new Test creates a new Rapise test it can be saved either to Spira or locally Open an existing Test opens an existing test that is already available locally Open File opens a single file and adds to the current test project Save the current Test saves the current test locally Open Test from Spira opens a test from Spira and downloads to the local repository Save to Spira saves the current test to the Spira test management system Save As saves the current test locally with a different file name Exit exits Rapise 2 6 Howlos This section focuses on specific tasks that a Rapise user might want to accomplish 2015 Inflectra Corporati
328. st thing you will need to do is choose the SpiraTest project from the dropdown list This will then update the list of test case folders displayed in the top pane of the dialog box Once you have chosen the desired project you need to expand the test case folders in SpiraTest and choose the existing Test Case that you want to attach the Rapise test to 2015 Inflectra Corporation Rapise User s Guide tet i Save Test to Remote Repository http boca lens Hepa res Library Information System Test Case Folders a g Library Informaton System La Functional Test C Regression Tests J Scenario Tests O Exception Scenano Tests Lal Common Tests Mame ID Repository Path A Abality to cresie new book Click to view A3 Abality to edi existing book Click tov A Abality to cresie new autho lick joy A Abality to edi existing suthor i liek to view 4 Ability to reassign book to diferent author Local Fath read only save Sy Tenn Lice ee a When you expand the folders to display the list of contained test cases it will display the name and ID of the test case together with an icon that indicates the type of test case 1 8 Manual test case that has no automation script attached Repository Path will also be blank 2 Test case that has an existing Rapise test attached 3 i Test case that has a non Rapise automation script attached If you are adding a new Rapise test c
329. steps e g we added a line to describe the process of starting up MS Paint delete any duplicate unnecessary steps and reword them so that they make the most sense to the tester In our example we used the manual editing screen to update the steps as follows tab Start Page LeS Manual Steps nmi MS Paint Test Steplid Description Expected Result Sample Data 0 Step 1 User starts up the MS Paint Application The application loads with a blank zy z canvas T Step 2 User clicks the main Application menu SeS Application menu DoLClick 42 re F Step 3 User clicks the New entry SeS New DoLClick 44 13 Step 4 User clicks on Pencil i SeS Pencil Dol Click 15 9 t Step5 User clicks the Text tool Ai SeS Text DoLClick 14 16 i Step 6 i clicks at 156 256 in the canvas Ji Ma ra SeS Simulated Dol Click 156 256 Click Save to make sure the updates are all saved locally Now before you can execute these tests you will need to Save them to Spira our web based test management system Step 4 Saving to Spira Click on the option to Save to Spira you will be asked to confirm the creation of the document folder in Spira that will hold the test files fc Create Test Repository in Spira Rapise will create a new folder in the selected Spira project to store the test script and associated files Local Repository Path C SpiraRe
330. system Get Session GetResponseBodyOb ject Tester Message sessiontid L g load libraries Web Service Save this test and click Play to execute the test You should now see a report similar to the following 2015 Inflectra Corporation s Rapise User Manual S MyRestTestLjs LibrarylnformationSystem rest F Start Page wy MyRestTesti_2013 06 19_135 37 trp Drag a column header here to group by that column a Name Start Type Status Comment Iteration wa A A A Starting scenario Test 13 37 16 020 Message Info Get_Session DoExecute null 13 37 17 486 Assert Pass Returned Value true d51f97ea d879 4eb1 b585 55469b8 8cef7 13 37 17 486 Message Info Test Pass O Total 4 Pass 2 Fail 0 Info 2 Now we need to add the code to get the list of books To do that simply drag the DoExecute operation from under the Get_Books object into the script editor Then change the null argument to instead provide the session id as a Javascript dictionary SeS LibraryInformationSystem_Get_Books DoExecute To get the list of books as a JavaScript array drag the GetResponseBodyObject property to the script editor under the previous line Then assign the value of this property to a variable such as books var books SeS LibraryInformationSystem_Get_Books Now we can add code to test that the number of books returned matches the expected value Type in the following code Tester AssertEgqual Book co
331. t Declick Flavor Lirik a ul a ri Once you have created your REST web service test you can use the standard Playback functionality in Rapise to execute your test and display the report 2015 Inflectra Corporation Rapise User s Guide tat E MyRestTestLjs LibraryInformationSystem rest F Start Page MyRestTest1_2013 06 19_14 49 trp Drag a column header here to group by that column Name Start Type Status Comment Iteration AA e amp A A B Starting scenario Test 14 49 03 725 Message Info Get_Session DoExecute null 14 49 04 334 Assert Pass Returned Value true 0 c3d8dcd4 6125 427d 939a 0dd181b3ccel 14 49 04 334 Message Info 0 Get_Books DoExecute session_id c3d8dcd4 61254 14 49 05 051 Assert Pass Returned Value true 0 Book count matches 14 49 05 051 Assert Pass 0 Add_Book DoExecute session_id c3d8dcd4 6125 4 14 49 05 379 Assert Pass Returned Value true 0 Get_Books DoExecute session_id c3d8dcd4 6125 4 14 49 05 597 Assert Pass Returned Value true 0 Book count matches 14 49 05 597 Assert Pass 0 gt MyRestTest1 14 49 05 597 Test Pass Passed 6 Failed 0 Test Pass Q Total 9 Pass 7 Fail 0 Info 2 2 4 7 2 Testing SOAP Web Services This is planned future functionality for Rapise 2 4 8 Mobile Testing Purpose Rapise lets you record and play automated tests against native applications on a variety of mobile devices using either Apple iOS or Android Rapise gives you the flexibilit
332. t SE gt android nexus7 Recording Mode Select Context NATIVE_APP Profile Context androidid esxt 1 android widget Text View Login 0 android widget Tet View 21 1291 android widget Frame Layout 1 ang Jan AUTAndroid Login DropDownSelect Buttons Bars Views Now click the Learn Object button and the object will be added to the Rapise object tree Now on the virtual device window click on the menu entry to go to the next screen then in Rapise click Get Snapshot to get the updated screen Spy gia SR Disconnect E Page Source gt Go To Url Get Snapshot Learn Ctrl G Object Test Locator Connection Device droid widget FrameLayout 0 0 800 1205 android view View 0 0 800 1205 0 android widget LinearLayout 0 33 800 108 0 android widget FrameLayout 0 33 800 108 0 android view View 0 33 800 108 0 android widget LinearLayout 0 33 158 108 l 0 android widget FrameLayout 0 33 86 108 0 android widget ImageView 0 60 21 81 1 android widget ImageView 16 38 80 102 1 android widget LinearLayout 86 33 158 108 1 android widget LinearLayout 715 33 800 108 1 android widget FrameLayout 0 108 300 1205 0 android widget LinearLayout 0 108 800 1205 0 android widget TextView 21 129 779 158 1 android widget Edit Text 21 158 7739 216 2 android widget Text View 21 216 779 245 3 android widget
333. t tit By a WA E Open E pen Test from Spira No Debugging ae Cb ay i Y Save As 1 Manual Steps Level 1 1 Minimal Save Record Learn Play pees Find in Y Save to Spira Qj Web Services Files File Recording amp Learning Debugging Executing ea Tools Object Tree J q a Start Page id on idl 4 ae Tree C Users adam sandman D JI RERE REFE Script Steps FFFFFFFFssF FFF iE t Test p a pesca yen MASP FERRI SeSConnectMobile H PE l Ii Recorded at Thursday April 16 2015 11 48 37 PM b E eion gt CI Global fo User Functions er User Variables load libraries Mobile E aE b fabl edit_usemame edit_username Now that we have the objects we can drag them into the test script editor and write the following script HEEEFFEEFEE Script Steps HFFHTEEEEEH EF function Test SeSConnectMobile SeS text1l DoClick SeS edit_username DoSetText test user SeS edit_password DoSetText test pwd 2015 Inflectra Corporation Rapise User s Guide e SeS android_widget_Button DoClick SeS home DoAction g load li praries Mobate This will click on the first menu entry then enter a username and password and then finally return back to the main menu Now to playback the test simply click Play in the Rapise test ribbon and the test will play ba
334. t Context NATIVE_APP k Get Snapshot Ctrl G Test Locator Connection Device Profile Context android widget FrameLayout 0 0 800 1205 4 Calculated eo 0 android view View 0 0 800 1205 Automation gt 0 android widget LinearLayout 0 33 800 108 ld android id Aext 1 a AUTAndroid 4 1 android widget FrameLayout 0 108 800 1205 IndexinParent 1 4 0 android widget LinearLayout 0 108800 1205 TagName android widget Text View Login 4 0 android widget LinearLayout 21 129 779 453 Text Drop Down Select 4 0 android widget ListView 21 129 779 453 Title 1 android widget Text View 21 194 0 android widget TextView 21 129 779 193 XPath android widget FrameLayout 1 an 1 android widget TextView 21 194 779 258 4 Layout Buttons 2 android widget TextView 21 259 779 323 Height 4 3 android widget TextView 21 324 779 388 Width 758 Bars 4 android widget TextView 21 389 779 453 x 21 Y 194 Views 4 Properties checkable false checked false lickable true enabled true usable false ocused false follable false electe false ext Drop Down Sele lf you want to view the contents of the Spy as a text file just click the Page Source button and you will see the contents of the Spy properties window as a text file Assuming that you can see your application in the Spy and that the objects can be inspected similar to that shown above you can now begin the process of testing your mobile application
335. t local Target front Most Apr Basic Controls Button TextField Lak UAStatic Text Basic Controls Button TextField Lak 0 UlAStatic Text D 10871320 152 UiAApplication 1 UlAWindow 1 I FN 108 wu Basic Controls Button TextField Lak Basic Controls Button TextField Lak Context 12 58 PM AUTiOS 0000 Verizon a Master Detail Table View Table view with items Basic Controls Button TextField Label Picker Switch Slider Image Advanced Controls WebView ScrollView TextView Search TabBar Pagel Now click the Learn Object button and the object will be added to the Rapise object tree Now on the device itself click on the menu entry to go to the next screen then in Rapise click Get Snapshot to get the updated screen Spy igi R Disconnect c gt Get Snapshot Ctrl G Connection 3 Select Profile wt Edit Profiles CJ Page Source B GoTo uri Learn Object Test Locator Device 0 UIAApplication 0 20 320 480 4 Calculated 0 UlAWindow 0 0 320 480 E 1 UlAWindow 0 0 320 480 Automaton ld IndexInParent TagName Text Title XPath Layout Height Width 4 Properties hint label name Value Profile Rapise Sp Recording Mode Select Context Context 000 0 Verizon 1 40 PM UlATarget local Target frontMostApg AUTIOS UIAApplication AUTIOS 0 UlAApplication 0 20 320 480 U AApplication 1 460
336. t precisely the correct object or to select the correct object from a collection of similar objects the object s properties can be used to further identify the correct instance 2015 Inflectra Corporation 92 Rapise User Manual Usage To spy on an Object 1 Choose the type of Object Spy that you want to use This can be done by clicking the down arrow next tot Accessible Java Object Managed Object Mobile Object e UlAutomation Object There are five types of Spy available 1 Accessible This is used to inspect applications that expose their properties using the Microsoft Active Accessibility MSAA technology This is typically used by applications written in MFC ATL Qt C and Visual Basic 2 Java Object This is used to inspect applications written using the Java AWT and Swing UI frameworks 3 Managed Object This is used to inspect applications written in NET 1 1 NET 2 0 NET 4 0 using Microsoft Windows Forms 4 Mobile Object This is used to inspect mobile applications running on iOS or Android devices as well as the iOS or Android simulator 5 UlAutomation Object This is used to inspect applications that expose their properties using the Microsoft s newer UlAutomation technology This is typically used by applications written in WPF Silverlight and Java SWT For more details on each Spy type refer to specific topic above or view the Spy Dialog help topic 2 FY in the main Rapise window
337. t result trp files How to Open Use the Test Files Dialog to open a report trp file The report file will be opened in a Report Viewer in the Content View The Report Tab of the Ribbon will also open Or you can Playback the test script The report file will display in a Report Viewer after the test completes See Also e For more info on Reports see Automated Reporting e For information on manipulating reports see Ribbon Report 2 5 25 REST Definition Editor Screenshot 2015 Inflectra Corporation 234 Rapise User Manual REST Request Name Method Credentials Headers Parameters Body SUE LibraryinformationSystemrest Pag chas RULE OL aise eet S EEE SEs Get_Books GET https www libraryinformationsystem org Services RestService svc book session_id session_id X Send librarian X A Name Value Operations Accept application json X Content Type application json X Name Value Operations session_id 82499bec 37e4 4c64 820e a2d798cd1e84 Insertin URL w DADA E 4 c LibrarylnformationSystem rest lt Get_Session Get_Books 5 Add_Book m Response Header Response Body Formatted JSON Name Status Code Content Length Cache Control Cnntont Tuna Purpose Value 200 OK 2173 private sonliestinn henn rharcet 0 The REST Definition Editor allows you to edit REST web service definition files
338. t swc from Flex Builder 3 and HexAdapter swc from Rapise mxmlc HelloFlex mxml locale en_US include libraries c Program Files Adobe Flex Builder 3 sdks lt Version gt frameworks libs automation_agent swe c Program Files Adobe FPlex Builder 3 sdks lt Version gt trameworks libs automation swe c Program Files Inflectra Rapise Extensions Flex FlexAdapter bin FlexAdapter swc For Flash Builder 4 x recompile the HelloFlex application using the following command line that links automation swc and automation_agent swe from Flash Builder 4 x and HexAdapter swc from Rapise mxmlc HelloFlex mxml locale en_US include libraries c Program Files Adobe Flash Builder 4 sdks lt Version gt frameworks libs automation_agent swc c Program 2015 Inflectra Corporation Rapise User s Guide 35 Pr les Adcbe Pilash Builder 47 saqks 7 lt Version gt trameworks libs aulomation swo cr7 Program Files Inflectra Rapise Extensions Flex FlexAdapter bin FlexAdapter swc EA Administrator CAWincowels Microsoft Windows Wersion 6 1 7600 Copyright ce 2669 Microsoft Corporation All rights reserved CoxTempsHe lloFlex mxmilc HelloFlex mxml l locale en_US include libraries c Progg ram Files Adobe Flex Builder 3 sdks 3 5 6 f ramevorks libs automat ion_agent suc ci Program Piles Adobe Flex Builder 3 sdks 3 3 6 frameworks libs automat ion suec ce Program Files Inf lectra Rapise Extensions Flex FlexAdapter bin
339. t to the Appium server to tell the server what kind of automation session we are interested in starting up There are also various capabilities which can modify the behavior of the server during automation The example screeenshot above is for an Android Nexus7 physical device running Android 4 4 2 For any Android device real or simulated you will need to provide the following e Uri this is the URL to your Appium server We shall discuss this shortly e app this needs to the path on the Mac PC running Appium to the Application being tested on the device e g C Users Public Documents Rapise Samples UsingMobile AUT AUTAndroid bin AUTAndroid apk If running on the same PC as Rapise then this path should be already correct e deviceName this needs to match the name of the device being connected e platformName this needs to be set to Android e platformVersion this needs to be set to the correct version of Android that the device is running In addition for physical devices only you need to specify e udid The unique device identifier of the connected physical device leave blank for simulated devices Once you have entered in the information and saved the profile make sure that Appium is running on the Mac PC see the Technologies Mobile Testing topic for details and then click the Test URL button to verify the connection with Appium ij Ei Successfuly connected to aL http 127 0 0 1 4723 wd hub
340. te64 820e ard3aed 1284 l ingerten URL x This operation will add a new book to the system so it s a POST request Change the Method type in the dropdown list from GET to POST Expand the Body field on the form This is where you can enter in an XML or JSON serialized Book record that will get added to the system For now we ll leave this blank and let Rapise serialize the body for us later on when we actually write our test script So we should now have start Page Fal MyRestTestijs ba LibraryinformationSystem rest REST Request hanes Method Credentials Headers Parameters laee Add Book 4 LibranyinformationSystem rest 5 Del Sesso POST hiipiiewa ibrarniniormalonsysiam org Sernkes Resi Senice sve book sessnon_id session_id Send Get librarian x 5 Add Book i Hame O Vee Operations AoT epolcalionton Ea ContentType appeationton A Mame Walue Operations session_id 82499ber 37e4 4c64 820e a2d798ed 1884 Insentin URL jx We have now completed the creation of our third test operation Click on the Save Requests button in 2015 Inflectra Corporation a Rapise User Manual the Rapise REST Ribbon to make sure our changes have been saved 2 Saving the REST Requests as Objects Now that we have created our three REST requests the next step is to actually create the Rapise objects that we can use in our JavaScript test scripts Click on the Update Obj
341. ted iOS device you want to use click the Product gt Build option to build the app for the targeted device You can use the Run option to make sure that the app actually launches on this device before testing it with Rapise seo 8 gt AUTIOS gt iPhone 5s Fl ee Sh YN G Ba g B AuTios E auTioss R AUTIOS 2 targets IOS SDK 8 1 v H images Text png Y Identity amp Tree png Assuming that this is successful you will see the AUTIOS running in the iOS Simulator 2015 Inflectra Corporation Rapise User s Guide 311 Camer F 1 57 PM Edit AUT Items Button l Text Table Combo Box Contents If you are only going to use Simulated devices not recommended then you can skip the next section and just continue with setting up Appium as described in the main Mobile Testing topic 4 Building and Deploying on a Physical Device Login with your Apple ID to http developer apple com Choose Certificates Identifiers amp Profiles 2015 Inflectra Corporation 312 Rapise User Manual Developer People Programs amp Add ons Your Account Organization infecta Corporation Developer Program Resources Technical Resources and Tools Dev Centers Certificates Identifiers amp Quickly access a range of technical Profiles resources Manage your certiicates App IDs ios Mac Safari devices and provisioning profiles App store D
342. ted in the grid If you record an incorrect action you can right click on the action and delete it To ensure you successfully record your interaction with the AUT navigate slowly through the AUT Wait a second or two between each action to make sure Rapise has time to interpret and record your action Once your interaction is updated in the RA dialog grid you are free to continue with the next action When you are done recording press the Finish button on the RA dialog or type Ctrl 3 The RA dialog will disappear and you will see an automatically generated script opened in Rapise For Mobile Testing you will need to use the Pick Object button which then allows you to pick a specific object from the Mobile Spy 2015 Inflectra Corporation Rapise User s Guide Recording Activity for Device v Caneel Open Pick Object Dialog see also e f you have already recorded a script and want to record additional interactions in the same test be sure to read Making Multiple Recordings The RA dialog is described more thoroughly in Recording Activity Dialog To learn how to run the script see Playback To learn how to modify the script see Scripting For a detailed tutorial see Tutorial Record and Playback in the Getting Started section For more information on the Spy ObjectSpy capability see Object Spy 2 4 1 2 Learning Purpose Objects are the controls and items on the screen of the AU
343. tem selected in Spy tree e Highlight Draw rectangle surrounding selected object HWND or Accessible These tools can be accessed from the right click Spy context menu Parent Highlight Refresh Default Action Mouse Click Save to File See Also e Microsoft Active Accessibility is described here htip msdn microsoft com en us magazine cc301312 aspx e HWND is described HERE e Microsoft UlAutomation is described here http support microsoft com kb 971513 2 5 40 Test Files Dialog Screenshot 4 gal Test 4 gal Application C SampleATM exe 4 ga Data C ATMDatabase mdb SampleATM objects js S SampleATM user js Test Files Settings Object Tree Purpose The Test Files dialog allows you to navigate and alter the Test hierarchy including the following e the script 2015 Inflectra Corporation Rapise User s Guide 269 e Report files trp e Images captured during execution using Checkpoints e Analog recording files arf e data files How to Open The Test Files dialog is part of the Default Layout Context Menu Folder Right click on a folder to see Create File Add Filets Mew Group Reload Create Sub T est Remove from Test Del Remove All from Disk Create File Create and add a new file to the test Add File Add an existing file to the test New Group Create a logical grouping of files in the test This will not add a folder to the file system
344. ter swc The compiler arguments for FlashBuilder 4 should look like ne lude librarie C2 Program Files Adobe Pilasch Builder 4 sdirs 4 020 frameworks libs automation_agent swe C Program Files Adobe Flash Builder 4 sdks 4 0 0 frameworks libs automation swen Cr Program Files InilectrayRapise Extensions Flex FlexAdapter bin FlexAdapter swc Note You can avoid linking with third party libraries if your application is browser based and you will use FlexLoader Adobe Flash Player Adobe Flash Player has restricted security settings for SWFs opened from the file system To enable testing of such SWFs their corresponding folders must be listed in the HashPlayerTrust directory You can find the FlashPlayerTrust directory here lt system gt Macromed Flash FlashPlayerTrust to enable testing just for the current user use this FlashPlayerTrust directory lt ApplicationData gt Macromedia Flash Player Security FlashPlayerTrust To register your SWF just create a file with the name lt name of your SWF gt cfg and put it in this directory In the file write a path to the SWF folder Note If you do not have FlashPlayerTrust directory in one of locations listed above then you will have to create missing directories yourself Adobe AIR To record and playback tests for Adobe AIR application you need to run the application manually E g C Program Files Adobe Flex Builder 3 sdks 3 2 0 bin aadl exe C Program Files Inflect
345. tformName this needs to be set to Android e platformVersion this needs to be set to the same version of Android that the virtual device is running the one specified in the Android Virtual Device screen earlier Once you have entered in the information and saved the profile make sure that Appium is running on the PC and then click the Test URL button to verify the connection with Appium Successtuly connected to FP htto 127 0 0 1 4723 wd hub Now when you try and connect to the device using the Rapise mobile spy you may get the following message 2015 Inflectra Corporation s Rapise User Manual 7 Anew session could not be created Original error Could not find adb P Please set the ANDROID HOME environment variable with the Android SDK root directory path 33 er This means you need to use the Windows control panel to add a System environment variable called ANDROID_HOME and set it to the path of the installed Android SDK typically c Program Files x86 Android android sdk Once you have configured the ANDROID_HOME and it connects you can start testing your mobile Android application 3 Using the Mobile Spy The Mobile Spy will let you view an application running on the mobile device take a snapshot of its screen and then interactively inspect the objects in the application being tested This is a useful first step to make sure that Rapise recognizes the application and has access to the obj
346. the Rapise with TwoDialogsAnalogAbsolute js scrip displayed You should see code something like the following Plays recorded events from Analog Analog0003 arf file SeS Simulated DoAnalogPlay Analog Analog0003 arf 12 Press the Play button on the Rapise toolbar to playback the recording you made Be sure not to interfere with the mouse or keyboard whilst the recording is playing back NOTE You will see all mouse and keyboard activity reproduced as the analog recording plays The recording will start from the point where you left clicked the mouse to begin the recording step 7 above and will end with clicking the close button in the Analog Recording dialog If you used Ctrl Break to end the recording then the last recorded activity will be the one that keystroke 13 When the analog playback is complete use the mouse to move the Two Dialogs AUT to a different location on the screen Play the recording again and watch the operation unfold The most important thing to realize is that the relative analog recording will playback the recording wherever the application is positioned on the screen This is because you used relative analog recording However once the recording within the AUT is complete all mouse motion and keyboard strokes are relative to the current position of the AUT Suppose that during analog recording you click the OK button in TwoDialogs exe then move the mouse to terminate the recording using the analog recordi
347. the application Also Rapise provides superior image manipulation tools over those available in a web application Step 1 Open the Manual Test Using the MS Paint example manual test that we created previously open up the test in Rapise Click on the Manual Steps icon in the Test ribbon and you should see the list of test steps lig Start Page Es Manual Steps nmi w MS Paint Test Stepld Description NC ne Result Sample Data TS 47 w Step 4 User clicks on Pencil ok SeS Pencil DoLClick 15 9 TS 48 E T Step 5 User clicks the Text tool A SeS Text DoLClick 14 16 TS 49 TS 50 Wj Step 6 User clicks at 156 256 in the canvas i Step 7 Enters text This is some text SeS Simulated Dol Click 156 256 This is some text ses Text1 DoSetText This is some TS 51 mae Step 8 User clicks on the Bold button B _ SeS Bold Dol Click 11 14 Now that we have the test opened we can start the playback Step 2 Executing the Manual Test Choose the Release from the list of those available in the project 2015 Inflectra Corporation Rapise User s Guide Ser WL Release 1 0 0 0 Library t 1 0 0 0 Library System Release 1 1 0 1 0 Library System Release 1 SP1 1 0 1 0 0001 Iteration 001 1 0 1 0 0002 Iteration 002 1 0 1 0 0003 Iteration 003 1 0 2 0 Library System Release 1 SP2 E 1 0 2 0 0001 Iteratio
348. the folder where this test should be created C Users adamsandman Documents My Rapise Tests CAUsers adam sandman Documents My Rapise Tests TwoDialogsTest TwoDialogsTestsstest Specify methodology Basic Manual Scripting Mode Rapise supports multiple testing methodologies Select oneto be used for newly created test ao You will now see the following 2015 Inflectra Corporation 24 Rapise User Manual R d da a a Rapi 1 3 33 C WUsersiadam sandman D nents My Rapise Tests TwoDialogsTestiTwoDialogsTest sstest ical x ie er By Open ge Open Test from Spira No Debugging oO gt he 4 J Object Mgr 2 Search Help Gib Start Page W Save As zj Spira Properties Level 1 Minimal Bs HelpIndex 3 Spira Dashboard Save a ae pes Record Learr Play Options Find in 9 nes s Q Saveto Spira Web Services Files About 7 Activation File Recording amp Lea Debugging Executing Tools Help a Test Files a Gap Start Page Ba alogsTest js x 4 a Test Use Record Learn button to begin test recording gt id Scripts function Test Test Files Settings Object Tree Properties a G2 e aj i a Output a 2IzI 0B Microsoft R Windows Script Host Version 5 8 Copyright C Microsoft Corporation All rights reserved Soy Be emaa pri VE Bie hex reon eron ose inflectra eon P Warnings Errors Find Results NUM Step 4 Recording the test sequence Press the Record Learn button i
349. the test script js file associated with the open test You can change which test script to open in the Settings Dialog The test script is specified by Settings gt ScriptPath Tools Pa ee i I Object Mgr oat E Spira Properties Options Find in Spy Files Tools The Tools section provides the following options The Spy button opens the Spy Dialog Press the Options button to open the Options Dialog The Find in Files button opens the Find and Replace Dialog The Object Mgr button opens the Object Manager add in Spira Properties allows you to see the name of the SpiraTest project and test case that the current Rapise test is linked to Help Z 4 Search Help G Start Page A HelpIndex Help 22 About Activation Help The Help button opens the Rapise user s manual and makes the Contents tab visible The Search Help button opens the Rapise user s manual and makes the Search tab visible The Help Index button opens the Rapise user s manual and makes the Index tab visible The Start Page button opens the Rapise Start Page The Spira Dashboard button opens the Rapise Spira Dashboard The Activation button opens the Rapise license activation screen This can be used to deactivate the current license so that it can be used on a different machine Spira Dashboard 2015 Inflectra Corporation Rapise User s Guide 239 2 5 27 Ribbon Report Screenshot Test Report C Temp Raul login IE Rugep
350. ties using the Microsoft s newer UlAutomation technology This is typically used by applications written in WPF Silverlight and Java SWT Start Tracking The Start Tracking button or CTRL G causes Rapise to enter Tracking Mode In Tracking Mode Rapise investigates the object under your mouse It identifies the object s type and learns the object s properties As you move your mouse the objects you point to are highlighted a box is drawn around them Stop Tracking The Stop Tracking button is only visible in Tracking Mode Press Stop Tracking or CTRL G to exit Tracking Mode The Spy dialog will display information for the last object highlighted Maximize Minimize buttons 2015 Inflectra Corporation Rapise User s Guide 263 The maximize E and minimize E buttons control the appearance of the dialog They either hide or make visible the sections to their right or below See the example below The button highlighted in yellow in the left image is pressed to show hide the appropriate pane F H Rapise Spy 2 Start Tracking C1H G adoration Ob ect let operbes a Hapse Documentation indow a fem lype Property ToolBar Labeled By Propesty a Pane LocaliredConinl Type Property Panel Pare 4 Fane e lab Fumtineld Fogerty 4 Rape Documentaton TifleBar Primary System Menu Bar MenuBas ALfomeatentiD Minimize Bution indeachn Parent Restore Button Name f h i Fa i Fi ih ai apise Docurmentation HH F
351. to connect to the device e Mobile Testing Tutorial for a simple introduction to mobile device testing e Mobile Settings Dialog for information on setting up the different mobile profiles for the mobile devices you will be testing e Mobile Object Spy for information on how Rapise connects to the device and lets you view the objects in the application being tested Apple iOS Purpose Rapise lets you record and play automated tests on real iOS devices iPad and iPhone as well as test applications using the iOS simulator that ships with XCode No jailbreaking needed With Rapise you can record on one device and playback on multiple Prerequisites This section assumes that you have already installed and configured all of the necessary components For details on this please refer to the Technologies Mobile Testing and Mobile Testing iOS Setup sections that describes the necessary steps for both physical and simulated devices Since Rapise runs on Windows computers PC and iOS devices both real and simulated can only be tested on an Apple Macintosh Mac computer it is necessary that you install Appium and Apple Xcode onto the Mac and connect to Appium over the network from Rapise running on your PC For Physical iOS devices the architecture looks like Mac OS A A HTTP e Rapise iOS Device 2015 Inflectra Corporation Rapise User s Guide 13 For simulated iOS devices using the Xcode iOS Simulator
352. to each step They are displayed using the format Ts xxx This special token TS xxx Can be used in Tester Assert Commands to relate specific_verification points with test steps during automated testing ta Start Page Manual Steps mi v x w MS Paint Test Stepld Description Expected Result Sample Data TS 47 QE Step 4 User clicks on Pencil P SeS Pencil Dol Click 15 9 TS 48 T Step 5 User clicks the Text tool A SeS Text DoLClick 14 16 y TS 49 w Step 6 User clicks at 156 256 in the canvas TERT SeS Simulated Dol Click 1 56 256 TS 50 tie teat i Step 7 Enters text This is some text This is some text SeS Text1 DeSetIext This is some TS 51 text r iT Step 8 User clicks on the Bold button SeS Bold DoLClick 11 14 Now that the test has been saved in Spira you can click on the View in Browser option to see how the test steps look inside Spira v Test Steps gt Insert Step Insert Link Delete Copy Refresh Show hide columns v Edit Parameters TF Execution O O Step Description Expected Result Sample Data Spee ID Edit Oo Step 1 User starts up the MS The application loads with a blank Not Run TS000045 Edit Paint Application canvas O qv Step 2 User clicks the main B SeS Application_menu DoLClick 42 Not Run TS000046 gt Edit o Application menu ECEN 12 Oo 9
353. ton WBZ U A Aral A07 Ay My lies Add Attachment Log Incident Now we can log an incident that is associated with this test failure Step 7 Logging the Incident Defect 2015 Inflectra Corporation Rapise User s Guide Click on the Log Incident button to display the new incident entry screen 5 New Incident E lzi Save 5 Details Description Name The text did not display correctly in MS Paint Description B Z U A Arial A30 7 AY Baal When entered some text it did not display correctly in MS Paint enre e eed 4 Type Bug Detected By Fred Bloggs Status New 4 Priority 2 High Severity None Detected Release 1 0 0 0 Library System Release 1 bd Notes B Z U A Arial v AP10 v AY aaa e s5 Choose the type of incident enter the name description priority detected release and any other required fields as defined by the workflow in the project that you are connected to Once you have entered in the various fields click the Save icon in the top left This will return you to the manual execution screen with the Incident ID IN xxx and name displayed at the bottom Now click on the Fail button and the test case will be marked as failed 2015 Inflectra Corporation Rapise User Manual EBZ U A Aral v A7107 Aly My BES iE m ee ee Be a ee ee B A boce a Fai dK gt Fins A Step 8 of
354. tton or hit the keys Ctrl Break NOTE If you use the close button on the Analog Recording dialog the movement of the mouse to the Analog Recording dialog and the mouse click on the Close button will be recorded as part of the analog recording output This might not be a desirable outcome at playback time because the Analog Recording dialog will not be present and the mouse click will be played in a potentially random place on the screen For this reason Ctrl Break is probably a better option to terminate analog recording NOTE The grid will have no entry added until you end the analog recording with the Close button in the Analog Recording dialog When you do it will add an entry to the grid Recording Activity for Two Dialogs sample Object Actor Data Comment Please enter Analog Analogv4na Plays recorded events from Analog 4nalog0002 art file Verity Crt Lear Ctle2 lt 0 SpyiCt 5 Pick Object Pause Analog Ctrl 4 _Simulated Cancel Finish Cia Ready Transparent 9 You can now record additional analog sessions if you wish 10 You can record normal object activity before and or after the analog recording When you have finished all recording press the Finish button or hit Ctrl 3 Notice that the Analog entry is added to the grid 2015 Inflectra Corporation Rapise User s Guide 281 11 The Rapise screen will now be restored and will have placed focus in the edito
355. u 2015 Inflectra Corporation 20 Rapise User Manual Welcome librarian Log Out LIBRARY INFORMATION SYSTEM Home Boos Mana gem ent Author Ma nagem ent CREATE NEW AUTHOR Please enter the author information and dick Insert Author Information At this point there should be 11 rows in the RA dialog grid You are now back on the Main Menu Click Log Out top right Welcome librarian Log Out LIBRARY INFORMATION SYSTEM Home Book Management Author Management WELCOME TO THE LIBRARY INFORMATION SYSTEM This sample application lets you yew create and edit books in the libary catalog as well as view create and edit authors To wiew the library catalog or the authors Ist you will need to login as a borrower and to make changes to the list of books or authors you will need to login as a bibranan Note This is not a real application but is just a sample application used in the popular SpiraTest test management system and Rapise test automation system Both of these products are marketed by Inilectra Comporation spiraTest Rapise _ inflectra Test Management Test Automation Inflectra Corporation To end the recording session you can either press CTRL 3 or press the Stop button on the Record dialog End the recording session now You will see a script created from your recording session in the Rapise window Let s save our test Press the Save button at the top left of the Rapise window
356. ual test cases including those part of a test set from within Rapise The results from the manual test result will be reported back into your connected Spira instance During the executing of the manual test you can attach screeenshots files and log incidents related to the test result How to Open You can open the Manual Playback dialog box by either clicking Execute Manual icon in the Manual Ribbon Test Case Details amp Test Step Selector _s Executing Ability to create new book gt I A Ability to create new book gt Tests that the user can create a new book in the system EB IU A Aral A10 Aly My isi l l Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 B Passi siccked Caution Fail The top part of the manual playback screen lets you view the name and description of the test case 2015 Inflectra Corporation Rapise User s Guide 21 navigate between the test steps and click one of the result buttons to indicate how the application being tested behaved e Pass The current test step was completed successfully and the expected result was observed e Pass All All of the steps in the test case could be completed successfully and the expected results were observed in all steps e Blocked The current test step could not be performed because something else prevented its completion e Caution The current test step could be performed but the actual result only partially match
357. ublic Documents Rapise Samples Adobe Hex Adobe Hex user js 38 1 Tester Assert Problems v 18 entries found Purpose Displays results for the Find and Replace Dialog How to Open The Find Results view is part of the Default Layout Messages C Users Public Documents Rapise Samples AdobeAlex AdobeAlexjs 101 1 Tester Assert Equal Verify that Visible true Double click on a message to go to the corresponding source line Widgets 2015 Inflectra Corporation 24 Rapise User Manual e The text box is a search box The icons from left to right are Find Next Entry Copy Selected Clear All Text and Select All Text Ei 2 5 10 Find Text dialog Screenshot Find and Replace a Find Find what Search Look in Current Document Find options Match case Include sub folders Match whole word Include hidden Use Standard Search Find Next Find All Purpose Find occurrences of the Search Term text in the currently visible Source Editor How to Open Ribbon gt Edit Tab gt Search menu gt Find button Or type CTRL F on the keyboard when the source editor is option Find Tab e Find what Place the string you would like to search for in the Find what text box e Look In this option specifies where the search will take place You can limit the search to current document current selection current test the entire test and subtests or a specific folder e Match case
358. um io and install the latest version of Appium Once it is installed you can start it up and click the Play button to start the Appium server I Appium AP 20 u iN gt Starting Node Server gt info Welcome to Appium v1 3 4 REV c c 9a8Sfbd68 Ocd6fc3d66d038al ebe Jefe gt info Appium REST http interface listener started on 127 0 0 1 4723 gt info debug Non default server args Paddress 127 0 0 1 logNoColors true plattormName Android platform Verson 18 automationName Appium gt info Console LogLevel debug Once that is installed you will then need to install the Android SDK you may already have it installed if you are doing Android development You can download it from https developer android com sdk Once it has installed you will use the Android SDK Manager to download and install the necessary packages 2015 Inflectra Corporation Rapise User s Guide 53 eq Android SDK Manager Packages Tools SDK Path C Program Files x86 Android android sdk 3 Status 4 F Took Android SDK Tools Installed El Android SDK Platform toals 22 Installed Tl Android SDK Build tools 2 Installed Android SDK Build tools Not installed 4 Android SDK Build tools __ Not installed F Android SDK Build tools Not installed a G Android 5 1 1 API 22 E ne Documentation for Android SDK 2 gt Installed E a SDK Platform 2 Installed E 4 Samples
359. unction TESE Login invaliduser Tinvvalidpassword Now check that login is successfull Tester Assert Login leads to invalid user object Global DoWaitFor Invalid User Function Login and objects welcome_User and Invalid_User are defined in Test The subtests are just implementing various scenarios for the same set of objects Organize different tests into a single workspace Each test has its own objects functions and scenarios Testi Objects User Functions Scenario Test Objects User Functions Scenario Test No own Object or User Functions Used to organize different tests into a single workspace The usage of such an approach is well demonstrated by example We created a test called 2015 Inflectra Corporation 190 Rapise User Manual SampleMaster and put all Rapise samples into it by using Add File context menu in the the Test Tree dialog Finally the Files tree looks like Test Reports AnalagRecorder sstest Crossbrowser satest Dothet20 sstest RootlTest sstest Simulated Object sstest SmarteAT hl sste st UsingCustamstrings sstest UsingDlLLHandlerManaged sstest UsingOLLHandlerUnManaged s stest UsingImageCheckPoint sstest Usinginclude sstest Usinghl Access sstest UsinghlSExcel sstest UsinghiS ford sstest UsingOcRsstest UsingRegistry s stest UsingReporting sstest UsingSpr eadSheet sstest Usingxhal sstest Scripts Sampleblaster s
360. unt matches 14 books le You should now have the following code function Test f se5 LibraryInformationsystem Get Session DoExecute null var sessionId Se5 LibraryInformationsSystem Get Session GetResponseBodyOb ject Tester Message sessionId ses LibraryInformationsystem Get Books DoExecute session id sessionid var books Se5 LibraryInformationsystem Get Books GetResponseBodyOb ject Tester AssertEqual Book count matches 14 books length g load libraries Web Service Finally we need to add the code to add a new book to the system To do that simply drag the DoExecute operation from under the Add_Book object into the script editor Then change the null argument to instead provide the session id as a Javascript dictionary SeS LibraryInformationSystem_Add_Book DoExecute To prowde the data for a new book we will need to drag the SetRequestBodyObject property of the Add_Book object to the line above the DoExecute and pass in a populated JavaScript object var newBook newoook Name o AA Christies carol newBook AuthorId 2 newBook Genreld 3 SeS LibraryInformationSystem_Add_Book SetRequestBo Finally Add code to test that our new book was added correctly and the count has increased by one SeS LibraryInformationSystem_Get_Books DoExecute se books SeS LibraryInformationSystem_Get_Books GetRes Tester AssertEgqual Book count matc
361. us ID gt Edit Oo Step 1 User starts up the MS The application loads with a blank Not Run TS000045 gt Edit Paint Application canvas O st p 2 User clicks the main B SeS Application_menu DoLClick 42 Not Run TS000046 gt Edit o Application menu EEN 12 o Step 3 User clicks the New entry Ohe SeS New DoLClick 44 13 Not Run TS000047 Edit g oO 2 step 4 User clicks on Pencil Zx SeS Pencil DoLClick 15 9 Not Run TS000048 Edit CO step 5 User clicks the Text tool A SeS Text DoLClick 14 16 Not Run TS000049 Edit C g step 6 User clicks at 156 256 in SeS Simulated DoLClick 156 256 Not Run TS000050 Edit the canvas Oo a qv Step 7 Enters text Thisissome This is some text SeS Text1 DoSetText This is some Not Run TS000051 gt Edit text text r g steps User clicks on the Bold RB SeS Bold DoLClick 11 14 Not Run TS000052 Edit button Show 15 rows per page id lt Displaying page a h of 1 gt Now that we have finished the recording we can now play back this manual test Step 5 Executing the Manual Test Choose the Release from the list of those available in the project Ser re Release 1 0 0 0 Library if t 1 0 0 0 Library System Release 1 1 0 1 0 Library System Release 1 SP1 1 0 1 0 0001 Iteration 001 a 1 0 1 0 0002 Iteration 002 1 0 1 0 0003 Iteration 003 it 1 0 2 0 Library
362. vailable in the application e The Properties pane lets you view the exposed properties of the highlighted UlAutomation object Commands In addition to viewing the object hierarchy and object properties you can perform the following tasks e Parent This selects the parent object of the one displayed e Highlight This will attempt to Flash highlight with a red rectangle the object selected in the Spy e Refresh this simply refreshes the Spy view to reflect any changes that might have occurred in the application e Save to File this will save the properties of the currently selected object to a text file 2 4 1 8 Object Manager Screenshot 2015 Inflectra Corporation o Rapise User Manual Purpose The Object Manager allows you to merge the object trees of two different Rapise tests This can be useful when you have a new test that needs some of the objects from a test that you have already written How to Open Click on the Object Mgr icon in the main Rapise Test Ribbon Choosing Files to Merge Documents library Wange by Polder CredeNewkiook AD UbranyinfonmationSystem A CreateMevetiuthar 2015 Inflectra Corporation Rapise User s Guide 99 lf you click on the button in left hand side of the dialog box marked Source you will be able to select the Rapise test object file objects js that you want to copy the objects from Once you have selected the source test repeat the pro
363. ve we are displaying the sample Android application that comes with Rapise AUTAndroid If you click on one objects in the user interface it will be highlighted in Red and the tree hierarchy on the left will expand to show the properties of that object 2015 Inflectra Corporation 156 Rapise User Manual a 7 Spy gla Disconnect CJ Page Source Select Profile android nexus7 gt z GoTo Url Edit Profiles Get Snapshot Ctrl G Test Locator Connection Device Profile android widget FrameLayout 0 0 800 1205 4 Calculated 0 android view View 0 0 800 1205 Automation gt 0 android widget LinearLayout 0 33 800 108 id 4 1 android widget FrameLayout 0 108 800 1205 Indexin Parent 4 0 android widget LinearLayout 0 108 800 1205 TagName 4 0 android widget LinearLayout 21 129 779 453 Text 4 0 android widget ListView 21 129 779 453 Title XPath 4 Layout Height 3 android widget TextView 21 324 779 388 Width 4 android widget TextView 21 389 779 453 X 4 Properties checkable clickable enabled tocusable ocused scrollable selected Rapise Sp sa Discovery Mode Select Context NATIVE_APP v Context android id Aext 1 android widget Text View Drop Down Select 1 android widget Text iew 2 1 1 34 android widget Frame Layout 1 Lane TE talise true true false Drop Down Select Jen ar AUTAndroid Login Buttons Bars Views
364. ved words variables literals and comments may be differentiated by color boldness underline etc Syntax Highlighting makes programs easier to read and modify Usage Every javascript file opened in Rapise will display with Syntax Highlighting fs RSEESESESE Script Steps FFFFFFELFEF ETF function Test Var success Database DoAttach Provider SQLOLEDB 1 Integrated Security s Tester Assert Successfully Connected success Var count Database GetRowCount Tester Message count Loop through the rows while Database DoSequential i var projectId Database GetValue PROJECT ID Var name Database GetValue NAME var description Database GetValue DESCRIPTION See Also e Source Editor 2 4 5 5 Code Folding Purpose Code Folding allows you to hide or show blocks of code These blocks have syntactic meaning such as a function body a class declaration a loop or a comment Usage Every javascript file opened in Rapise will display with hide and show buttons to the top left of their corresponding block In the following screenshot hide buttons are highlighted with green boxes show buttons are highlighted with purple boxes 2015 Inflectra Corporation Rapise User s Guide Function EnterNumber inuri i for var i 0 i lt num length i i digit nim charit il Heol B Button digit Do ctiont function Operationlop fpo function trimi atr char
365. vices Once you have entered in the information and saved the profile make sure that Appium is running on the Mac see the Technologies Mobile Testing topic for details and then click the Test URL button to verify the connection with Appium 3 Successtuly connected to P http adams imac corp inflectra com 4723 wd hub ania 2015 Inflectra Corporation 146 Rapise User Manual Now you can start testing your mobile iOS application 2 Using the Mobile Spy The Mobile Spy will let you view an application running on the mobile device take a snapshot of its screen and then interactively inspect the objects in the application being tested This is a useful first step to make sure that Rapise recognizes the application and has access to the objects in the user interface To start the Mobile Spy open the Spy icon on the main Test ribbon and select the Mobile option and the Mobile Spy will be displayed in Discovery Mode Now click the Get Snapshot button to display the application specified in the mobile profile on the screen re Spy ga R Disconnect O Page Source Select Profile iPhone4 X Discovery Mode amp B GoTo Url Edit Profiles Select Context Get Snapshot Ctrl G Test Locator Connection Device Profil tex 4 0 UlAApphication 0 20 320 480 4 p gt 0 Tobie atid Rae WWATarget local Target front Most App SSO VEEZON Se 3 04 PM b 1 UlAWindow0 0 320 480 id AUTIOS Index
366. wAuthoriCreateNewAuthor sstest SampicATM C work Rapise Rapise HelpAndSamples S Purpose 2015 Inflectra Corporation 256 Rapise User Manual To display the latest news and information regarding Rapise and the currently open test The Start Page is intended to be a convenient entry point for most common tasks related to test design and execution The Start Page provides e 1 A link to the Spira Dashboard This will open the Spira Dashboard that provides a convenient way to interact with Inflectra s SpiraTest test management system or Inflectra s SpiraTeam application lifecycle management system e 2 Current Test information block including o 3 Test Name and available scenarios o 4 Test Parameters including the Spira Properties for the test These include the IDs of the project and test case in SpiraTest In addition for web based tests there will be the special Browser selection property All tests will include any custom properties set by user o 5 Test Description This information is taken from a Readme htm file if it exists in the test folder of the current test If this file does not exist then the first Comment inside the Test function is displayed instead e 6 Quick Start Guide This is an interactive tutorial for beginners who are using the system for the first time It may be hidden by unchecking the Show checkbox e 7 Recent Tests This displays a clickable list of recently used tests 8
367. ween hiding and revealing images e Collapse Collapse the report to show only the top level What is visible will depend on how the report is sorted e Expand Expand all report rows e Automated Reporting 2 5 28 Ribbon Spreadsheet The Spreadsheet tab is for use with excel xls files The Spreadsheet tab is available anytime you have an excel xls file visible in the Content View 2015 Inflectra Corporation Rapise User s Guide m Externally Fle e The Reload button reloads the excel file from disk Use it if the excel spreadsheet was modified by an external application after you opened it in Rapise 2 5 29 Ribbon Edit Screenshot est Edit Debug A Save B amp Cut 2 Undo Courier New 10 Toggle Breakpoint Paste W Save As aa Copy Redo File Clipboard History Font Debug Purpose The Edit tab of the Ribbon provides tools for editing script files How to Open The Edit tab is available anytime you have a javascript file visible in the Content View File ul Save Y Save As e The Save button Shortcut CTRL S saves the script file you are editing e The Save As button allows you to create a new differently named copy of the script file you are editing Clipboard TE A ir A Co Paste ce e The Paste button Shortcut CTRL V pastes from the clipboard e The Cut button Shortcut CTRL X erases whatever text you have highlighted and copies it to the 20
368. with an Assert row or a Message row e description is a string e expression is the Boolean expression that the assertion tests e data is an array of data objects Each data element is written to its own row below the assert message row with which it is associated Data can be text a link or an image The following is an array with text link and image data e columnValuePairs is an object with key value pairs Column names are the keys Ifthe specified column does not exist it will be created Ex e Automated Reporting e The test samples include a sample about reporting Reporting sstest 2 4 3 2 Report Filtering 2015 Inflectra Corporation 106 Rapise User Manual Report Filtering lets you specify criteria to filter your view of the test execution report Rows that do not match your criteria are hidden Usage You can filter the report vew while the file is open Directly above the first row of the report there is a row of filter cells Each one has a matching criteria button lal a text box to specify a filter value a drop down menu with predefined filter values and a clear button Drag a column header here to group by that column ad Name Start Type Comment Status iteration a Submit Transaction DoActioni 14 09 32 117 Assert Retumed Value true Pass 0 W Verify that WindowText Transaction 14 09 32 483 Assen Pass a OKDoCiicki 1409 3287 Assert Retumed Value true Pass 0 CJ Transfer 14 09 32 87 Test
369. with multiple matching criteria and filter values select Custom from the filter cell s drop down menu The Enter filter criteria for Dialog will open Instructions for how to use it are here nent Status Ite Blanks NonBlanks ont Fall Pass Undo Filtering To undo filtering for a particular column press the clear button for that column Status See Also e Automated Reporting e Enter filter criteria for Dialog 2 4 4 Scripting Purpose There are three reasons to script with Rapise 1 To modify a recorded test to increase coverage add assert statements or make the test data driven 2 To extend recording functionality by defining your own objects actions and libraries 2015 Inflectra Corporation 108 Rapise User Manual 3 To customize the Rapise Engine Usage Rapise scripts are written in JavaScript Microsoft JScript You can run and debug your script using the full featured Internal Debugger Rapise includes a testing API with methods for manipulating images spreadsheets common GUI widgets and more See Also e Learn about MS JScript HERE 2 4 4 1 Understanding the Script Purpose When you create a new test in Rapise four files are created e lt TestName gt sstest the test meta data e lt TestName gt js the test script file e lt TestName gt objects js the file that contains recorded objects e lt TestName gt user js the file that contains user de
370. x Panel paddingilop 10 paddingBottom 10 paddingLleft 10 paddingRight 10 title My Application lt mx label text Hello Flex foentwWeight beld fontsize 24 gt lt mx Button ad button Label Button click Alert show Button Pressed gt lt mx Panel gt lt mx Application gt 3 Create wrapper HTML for the application C HelloHlex HelloFlex html Place the following code in it lt html lang en gt lt head gt lt meta http equiv Content Type content text html charset utf 8 gt lt title gt HelloFlex lt title gt lt head gt lt pody scroll l no gt lt object classid clsid D27CDB6E AE6D llef 96B8 444553540000 id HelloFlex width 100 height 100 codebase http fpdownload macromedia com get flashplayer current Swrlachie cab gt 2015 Inflectra Corporation Rapise User s Guide 33 lt param name movie value HelloFlex swf gt lt param name quality value high gt lt param name bgcolor value 869ca7 gt lt param name allowScriptAccess value SameDomain gt lt embed src HelloFlex swf quality high bgcolor 869ca7 width 100 height 100 name HelloFlex align middle play true loop false qualary high allowScriptAccess sameDomain type application x shockwave flash pluginspage http www adobe com go getflashplayer gt lt embed gt lt object gt Amose pE lt body gt lt lt Wem 4 Compile the applicati
371. xample function Login inside file MyTest user js Create Sub Test for IE re using objects and functions from the base test 3 Modify script file in sub test as follows NO function Test Re use Login scenario from parent test Login g_load_libraries Internet Explorer HTML 4 Create Sub Test for Firefox re using objects and functions from parent test 5 Modify script file in subtest as follows function Test Re use Login scenario from parent test Login g_load_libraries Firefox HTML As a result you have a test for 2 browsers IE an Firefox Each browser is defined by a library in a corresponding sub test Rapise contains the Cross Browser sample using this approach 2 7 3 Qt Framework Purpose Rapise includes support for testing applications written using the Qt Framework written using QWidget controls Usage Rapise fully supports the test automation of Qt based applications To ensure that Rapise can access the Ul elements and properties in the Qt application MSAA Microsoft Active Accessibility support for your Qt application must be enabled This provides additional information on Qt Ul elements to automation software like Rapise and can be accomplished by shipping and loading the Accessible Plug in included in the Qt SDK Software Development Kit with the Qt application under test see below Loading Accessible Plug in for your Qt application 2015 In
372. y strategy to use to type test into a test field Simulator default oneByOne Real device default grouped Values oneByOne grouped or setValue screenshotWaitTimeout Max timeout in sec to wait for a screenshot to be generated default 10 Values e g 5 waitForAppScript The ios automation script used to determined if the app has been launched by default the system wait for the page source not to be empty The result must be a boolean Values e g true target elements length gt 0 delay 5000 true 2 5 16 Mobile Test Locator Dialog Purpose This dialog box lets you create a test locator for mobile applications using one of the supported methods XPath ID etc and display the results of using that locator interactively Screenshot 2015 Inflectra Corporation Rapise User s Guide ag Test Locator NUAApplication T UAWindow T UIATableView 1 UIATableCell T UIAStat MP a Calculated Enabled Tue Id Master Detail Table View Ti Index in Parent Tag ame UlAStatic Tet ina ere Text Master Detail Table View Ti Title 1 UlAStatic Test 0 64 320 Class Name XPath UAApplication 1 UIAWine Layout Height Width Android pA Hame 105 Accessibility Master Detail Table View Ti Master Detail Table View Tj Link Partial Link Script How to Open You open this dialog from the Mobile Spy by clicking the Test Locator button on that dialog How to Use To use this dialog you sim
373. y to test your applications on either real or simulated devices Usage Since the process for testing mobile devices depends heavily on the platform being used we have split the guide into two separate sections e Mobile Testing using Apple iOS e Mobile Testing using Android Examples You can find the mobile sample tests and sample Applications called AUTAndroid for Android and AUTiOS for Apple iOS in your Rapise installation at the following locations Sample Mobile Tests e C Users Public Documents Rapise Samples UsingMobile AppAndroid testing a native Android App e C Users Public Documents Rapise Samples UsingMobile WebAndroid testing a Chrome web app e C Users Public Documents Rapise Samples UsingMobile AppiOS testing a native iOS App e C Users Public Documents Rapise Samples UsingMobile WebiOS testing a Safari web app Sample Applications e C Users Public Documents Rapise Samples UsingMobile AUT AUTAndroid for iOS e C Users Public Documents Rapise Samples UsingMobile AUT AUTIOS for Android we supply the sample applications as both a compiled binaries and an projects with appropriate source code 2015 Inflectra Corporation 142 Rapise User Manual 2 4 8 1 See Also e Technologies Mobile Testing for instructions on preparing your environment for mobile testing including instructions for installing the necessary prerequisites and configuring the various third party components that Rapise uses
374. yback See Also e Manual Playback e Test Scenarios 2 4 10 SpiraTest Integration For more details on using SpiraTest with Rapise please refer to the separate Using SpiraTest with Rapise guide 2015 Inflectra Corporation Rapise User s Guide Overview SpiraTest is a web based quality assurance and test management system with integrated release scheduling and defect tracking SpiraTest includes the ability to execute manual tests record the results and log any associated defects Note SpiraTeam is an integrated ALM Suite that includes SpiraTest as part of its functionality so wherever you see references to SpiraTest in this section it applies equally to SpiraTeam When you use SpiraTest with Rapise you get the ability to store your Rapise automated tests inside the central SpiraTest repository with full version control and test scheduling capabilities SpiraTest K5 E a oe E S a nO User 1 with User 2 with User 3 with Rapise IDE RapiseLauncher RapiseLauncher You can record and create your test cases using Rapise upload them to SpiraTest and then schedule the tests to be executed on multiple remote computers to execute the tests immediately or according to a predefined schedule The results are then reported back to SpiraTest where they are archived as part of the project Also the test results can be used to update requirements test coverage and other key metrics in real time Connecting to SpiraTest T

Download Pdf Manuals

image

Related Search

Related Contents

User Manual.  CANDY 5 HD User Manual  L`octogénaire est décédé à 250 mètres de l`Ehpad  LifeSize ExpressTM-Installationshandbuch  注意 危険 危険 注意 型式 : LC-63  Operating Instructions  BIOVACMGARL-T  Sécurité - Villatech  Intenso™ Baha    

Copyright © All rights reserved.
Failed to retrieve file