Home

Rapise User Manual

image

Contents

1. TS 3 Steplid Description Expected Result Sample Data Step 1 Call TS 1 Step 2 User clicks link to create book User taken to first screen in wizard TS 2 T Step 3 User enters books name and author then clicks Next User taken to next screen in wizard Macbeth William Shakespeare Wi 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 This 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 a
2. z 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 Export Fane to Excel to PDF a T 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 MEE igi Save Layout 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 Rapise User s Guide 253 e Press Choose Columns to hide or reveal report columns e Merge Cells Merge identical consecutive cells e Images Toggle between 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 254 Rapise User Manual ai n mie peat Eos e The R
3. 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 s Guide 5 Executing MS Paint Test Ee MS Paint Test gt EB Z U A Arial A710 A Yr Blas ijl m SS SS Ste c E A Biocked Coution Fails 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 BaS i 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
4. eee SParchterms xls ia He k L h L Ln Logic Inflectra dc Th Test Files Settings Object Tr 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 TuUnCrIOn Test h function Logic searchterm Set Text searchterm ing SeS Obj1 DoSetText searchterm 7 Click on DENG Sea C OPJ ZA DoC Rek Spreadsheet DoAttach searchterms xls Sheet1 GO throughe all rowe while Spreadsheet DoSequential Read cell value from column 0 var term Spreadsheet GetCell 0 Passe i ino Bogue funer ion Loguet ire rim 7 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 Tunecion rest et Text Inftlectra in g Ses Ob yl Decet tekt init lect ran Click on bene Sest Obj 2boC lack yy 2015 Inflectra Corporation 130 Rapise User Manual The actions recorded were 1 Type Inflectra into the search box 2 Press the Google Search button 2 Parameterize the
5. Purpose To specify Custom Strings and their values How to Open Open from the Settings Dialog TestParams option 2015 Inflectra Corporation 234 Rapise User Manual 2 3 items Servert 1 Server 1 Server 2 Execution Methodology Recording Screen Capture Settings Test Params Test Parameters May be used for integration with oth Widgets e Add acustom string If you press Add you ll see this TestParam Collection Editor ServerTestCaseFolderld 2 ServerTestCaseld Ej new test param e Remove removes selected custom string e OK Save changes and close dialog e Cancel Close dialog without saving changes 2015 Inflectra Corporation Rapise User s Guide 235 2 5 18 Object Tree Dialog Screenshot vy id n idf J Object Tree C ProgramData Documents Rapise Sa 4 _ Inflectra Library Information System Windows b Ea Author Author t JA Book Management Book Management b ctl00 MainContent SbinSubmit cHO0SMainCo b EA Genre_ Genre b Log In Log In b Name_ Name b C Library Information System Log In Windows Int gt C Library Information System Book Management t C Global fO User Functions var 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
6. Rd apise 2 1 3 33 C Pro ata Documents Ra reateNewBook Cre ok sstest Hm P x P jata s Rapise id fra ad Merge Cells E Collapse C ProgramData Documents Rapise Samples 4 ms 2 p X a s i 9 Collay Plain Hierarchical d Save Layout RE Expanc Export Export Choose Images el toPDF Reset Layout Columns Test Ir Gi Start Pege B CresteNewBook js B CresteNewBookuserjs i CreateNewBook_2014 09 04_11 47 up x 4 wl Test a Ranoits Drag a column header here to group by that column k Zi sa are ad Type Start Name Status Browser Comment Iteration LreateNewGook 15 8 CreateNewBook objec 7 u z 4 a in B CresteNewBook user j Assert 11 47 13 659 Username DoSetText librarian Pass Internet Explorer HTML Returned Value true 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 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 Genr
7. amp A repairable Android Virtual Device An Android Virtual Device that failed to load Click Details to see 1 C 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 and click the Play button to start the Appium server 2015 Inflectra Corporation 320 Rapise User Manual Appium gt 20 Qn gt Starting Node Server gt info Welcome to Appium v1 3 4 REV c c 9a85tbd68 0cd6fcid66d038all5ebe22efe gt info Appium REST http interface listener started on 127 0 0 1 4723 gt info debug Non default server args Faddress 127 0 0 1 logNoColors true platformName Android platfommVersion 18 automationName Appium gt info Console LogLevel debug Once that is installed you will then need to download and install the latest version of Java SE Development Kit JDK from the Oracle website http www oracle com technetwork java javas e downloads index html Once that has been installed make sure that the JAVA HOME environment variable has been set Once that is installed you will then need to install the Android SDK you may already have it ins
8. 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 Web Settings Pressing the Web Settings button displays the Web Settings dialog box This lets you change the settings related to web testing and the web spy 2015 Inflectra Corporation 240 Rapise User Manual 2 5 20 Output View Screenshot Microsoft Al Windows Script Host Yersion 5 Copyright C Microsoft Corporation All nights reserved E SeS Player St
9. 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 158 Rapise User Manual Mobile Settings Select Profile iPhoned Uri htto adams4mac corm inflectra com 4723 wd hub Details 4 _ Primary Capabilities 5 app Users_elise brooks Ubrary Developer Xcode Derived Data AUTIOS gvay device Name Goshen iphone platform Name iOS platform Version 711 udid b54ctb cba HM Heb95e322a 7edd 3e459746 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 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 Derive
10. 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 Rapise User s Guide 213 Y Custom Filter Fiterbasedon Aji of the following conditions DBNull Purpose Allow more than one filter criteria for the same 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 0 Blanks 0 NonBlanks 0 0 Pass 0 Conditions All gt ofthe following conditions Status DENull Equals Does not equal Less than Less than or equal to a gt Greater than m gt Greater than or equal to Like Matches Regular Expression 2015 Inflectra Corporation ata Rapise User Manual 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 Aggregati
11. Insert path to sstest file which must be run public void TestSeS int exitCode SeSNUnitHelper TestExecute j 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 Extensions 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 Rapise User s Guide 149 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 u
12. Plays recorded events fram Analog AnalogD001 arf file Verify Ctrl t Learn Cirl 2 Da Pause Analog Ctrl 4 _Simulated Cancel Finish Ctrl 3 Ready 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 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 Rapise User s Guide 85 Application Under Test Task 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
13. Tests that the user can create a new book in the system WBZ U A Aral A107 Aly Mv Baa il a Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 A A oeo l A 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 Ii BZ U A Aral A10 Aly My Has i Add Attachment Log Incident Purpose The Manual Playback dialog box lets you execute a series of manual 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 fa Executing Ability to create new book E A Ability to create new book Tests that the user can create a new book in the system lB ZU A Aral Atioy Ay My BaS i Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 E Bass V1 Pass Ally
14. 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 UnitTesting NUnit SeS NUnit e Double click SeSNUnit 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 NUnit Framework and the SeSNUnit namespaces using NUnit Framework using SesNUnic NUnit uses the class attribute Test to identify test methods The corresponding attribute for SeSNUnit 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 148 Rapise User Manual 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
15. 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 int exitCode SeSMbUnitHelper TestExecute Assert AreEqual 0 exitCode Templates SeSMbuUnit 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 Rapise User s Guide 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 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 dll See Also e MbUnit and related documentation can be found at www mbunit com 2 4 6 3 3 NUnit Purpose SeSNU nit vsi is a visual studio installer packaged with Rapise It facilitates calling Rapise tests from NUnit tests Usage Installation
16. var ao Ery ao evt AccessibleObject if _SeSisValidObject ao return false catch e Log Error getting event object e Description t etxt return false var ro SeSCacheAccessibleObject ao it AS ee Po begs COC us tomie EDO COnN trol k sory yoctoSe rings O treo t mull 6 amp 6 OnValuvetChange an ro ro OnValueChange return true return false g_customEventHandlers push CustomRegisterAccessibleEvent 2015 Inflectra Corporation Rapise User s Guide 347 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 W User Default user defined library Console Console Application W Generic Genericlibrary contains basic definitions for most camm MS Office Microsoft Office with Acces siility 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 LibUser 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 q B et Application Ci CustomControl4pp exe wal Lib CustomLibrary s LibUser js Reports Scripts S Custo
17. 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 Spy gle Disconnect CJ Page Source Select Profile iPhone4 Recording Mode KB GoTo Url W Edit Profiles Select Context Get Snapshot Learn Ctrl G Object Test Locator Connection Device Profile Context 0 UlAApplication 0 20 320 480 4 Calculated e0000 j b 0 UlAWindow 0 0 320 480 Automation UIATarget local Target front MostApg TVOR eS FM l 1 UIAWindow 0 0 320 480 ld AUTIOS Index InParent 0 AU TiOS TagName UIAApplication Text AUTIOS A Title 0 UlAApplication 0 201320 430 Master Detail Table View XPath UlAApplication Table view with items 4 Layout Height 460 Basic Controls oe ns Button TextField Label Picker Switch Slider Image Y 20 aca 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 Rapise User s Guide 161 7 H Rapise Spy i WR Disconnect Ci Page Source Select Profile iPhone4 X Recording Mode 2 g ing aj KB GoTo Url W Edit Profiles Select Context lt Get Snapshot Learn Ctrl G Object Test Locator Connection Device Profile Context 0 U
18. 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 then display the sample manual test within Rapise G Start Page Ww Manual Steps nmt v x w Ability to create new book Stepld Description Expected Result Sample Data Wy Step 1 Call TS 1 41 Step 2 TS 2 Step 3 TS 3 User clicks link to create book User taken to first screen in wizard User enters books name and author then clicks Next User taken to next screen in wizard Macbeth William Shakespeare T Step 4 User chooses book s genre and sub genre from list User sees screen displaying all entered Play Tragedy TS 4 information T 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 Logging 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 cr
19. 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 a2 Rapise User Manual 4 CustomControlApp ROLE_SYSTEM_WIND System ROLE_SYSTEM_MENUBAR rimary ROLE_SYSTEM_TITLEBAR CustomCo dCi 7 Application ROLE_SYSTEM_MENUBA CHILDID_SELF gt CustomControlApp ROLE_SYSTEM_CL gt Vertical ROLE_SYSTEM_SCROLLBAR Horizontal ROLE_SYSTEM_SCROLLB Wi CustomListboxControl ROLE_SYSTEM_GRIF dexinPar D X 83 Y 105 Width 484 Height 262 tomControlApp My ApplicationFonm tomListboxContrall C Users Public Documents Rapise Sample ROLE SYSTEM_WINDOW Custom Listboxontral 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 control type Each node in this tree is a rule object that is defined by the following simplified grammar 2015 Inflectra Corporation Rapise User s Guide a and_rules rule t rule role save_to z
20. aera S 5 Librarcyinformationsystem_ Adg_ECOk 3etReytestBOdyObjecrt n ewBook h a 5e5 Libraryinformationsystem add Book DBoExecute sessi0n id sessionId fie 2 E Object P Se5 LibraryInformationSystem Ger _ Books DoExecure session_1d sessionid i0 Book _ Management books 5e5 LibraryinformationSystem Get Booka GetResponseBodyObject Wersior 0 m T ster AssertEgual Eosk count matches 15 Doks length B Recogmrition ass Intemet Explorer_Server SeS Bock_Hanagement Declick Flavor Link il Phi ae Fi 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 154 Rapise User Manual 2 4 7 2 2 4 8 S MyRestTestLjs LibraryInformationSystem rest Start Page ET MyRestTest1_2013 06 19_14 49 trp Drag a column header here to group by that column z Name Start Type Status Comment Iteration AA a A A 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 939a O0dd181b3ccel 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_Book
21. firefox e Windows Media Player 50832 C Program Files amp 66 Windows Media Player The Recording Activity Dialog RA dialog will appear Recording Activity tor Inflectra Library Information System Windows Internet Explorer Pause Cancel Finish Ctrl 3 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 Rapise User s Guide LIBRARY INFORMATION SYSTEM Home Book Management Author Management LOG IN Please enter your username and password Account Information Username Password L Keep me logged in In the username text box type ibrarian Press the 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 Glick on Log In Set Tert 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 Corporati
22. i Successtuly connected to P http 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 Rapise User s Guide os oe Please set the ANDROID HOME environment variable with the Android SDK root directory path 33 oe 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 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 A F Rapise Sp ig Disconnect CJ Page Source amp Select Profile android nexus7 X Discovery Mode 5 GoTo Url Edit Profiles Select Context NATIVE_APP Get Snapsh
23. 4 Character read successiu 15 32 26 95 Assert t Pass i Letter sens 72 LSi3 2 28 96 Assert Text Y Font Mames Calbi Sizee ys Pass 0 CJ CAPregram Files 15 32 28 96 Test Passed Failed Fail Test Fail Qa Total 9 Pass Fail 2 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 e For displaying icons e Name The test name e Start The time the test step began executing Type Can be one of the following values Test Assert Message Comment Assertions and messages have associated comments They are displayed here 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 ii Name Stari lype Comment iteration p ge E Status Pass 7 items You can expand each item to see the corresponding report rows 2015 Inflectra Corporation Rapise User s Guide Matus p o Name Stat Type i Comment Iteration G statuz Fail i2 tems Name Sat etja NPE s Comment L frerati
24. AA N amp A E Starting scenario Test 13 37 16 020 Message Info Get_Session DoExecute null 13 37 17 486 Assert Pass Returned Value true 0 d51f97ea d879 4eb1 b585 55469b88cef7 13 37 17 486 Message Info 0 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 AssertHqual Book count matches 14 books le You should now have the following code Function Test d se5 LibraryInformationsSystem Get Session DoExecute null var sessionId Se5 LibraryInformationsystem Get Session GetResponseBodyObject Tester Message sessionId 965 LibraryInformationsSystem Get Books DoExecute session id sessionidt var books Se5 LibraryInformationsystem Get Books GetResponseBodyObject Tester AssertEqual Book count matches 14 books length g load 1libraries Web S
25. Collapse all Expand all Filter Refresh checks for new objects to display Collapse all collapses the entire object tree Expand all expands the entire object tree Filter filters the object tree Context Menu object Right click on an object in the Object Tree dialog to see 2015 Inflectra Corporation 236 Rapise User Manual Flash Re Learn Remove Clone Add Parameter 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 learned object definition stored in the Test objects js file 2 5 19 Options Dialog Screenshot ge Options General Tools at Directories Help Files Samples User Lipranes User Scripts Misc Splash Screen Settings Auto Reload Modified Files Default Folder Enable Execution Monitor Frame Shde Default Folder Defaut folder for creating new tests Purpose C Users Public Documents Rapise Help C Program
26. DoClick function CreateBook name author genre Click on Book Management SeS Book_Management DoClick Click on Create new book SeS _ Create _new_book___ DoClick Set Name SeS Name_ DoSetText name Select Author Sen Author_ Deselect author Select Genre ses Genre_ DoSelect genre J7Ciliack on CeLOUSMainContenrSornsSubmit Ses ct lL00sMainContentSbtnSubmit DoClick gt 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 Rapise User s Guide 133 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 MyTest user js file onction Login Click on Log In 77 3e9 bea in DoClick Set Text librarian in Username SeS Username_ DoSetText librarian Set Text lib
27. GoTourl Edit Profiles Select Context NATIVEAPP Get Snapshot Learn Ctri G Object Test Locator Connection Device Profile Context android widget FrameLayout 0 0 800 1205 4 Calculated on ae 0 android view View 0 0 800 1205 Automation 0 android widget LinearLayout 0 33 900 108 id android id text 1 a AUTAndroin E 1 android widget FrameLayout 0 108 800 1205 IndexInParent 0 0 android widget LinearLayout 0 108 800 1205 TagName android widget Text View 0 android wadget LinearLayout 21 129 779 453 Text Login 0 android widget ListView 21 129 779 453 Title D android widget Text View 21 129 DropDownSelect 0 android widget TextView 2 1 129 773 193 XPath android widget FrameLayout 1 ang 1 android widget TextView 21 194 779 258 4 Layout Buttons 2 android widget TextView 21 259 779 323 Height G4 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 e2 Rapise User Manual eld Rapise Sp Sp CJ Page Source Select Profile android nexus7 X Recording Mode pe Disconnect gt WD GoTo
28. Not installed Android SDK Build tools 19 0 3 Not installed Android SOK Build tools 19 0 2 Not installed Android SDK Build tools 19 0 1 Not installed i Bo Ce Ea ER a ll 3r eee oe a Show J Updates New Kl installed Select New or Updates install packages Obsolete Deselect All Delete packages A l l l a ll i ll Gh qu Fetching URL https dl ssl google com android repository sys img google_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 si
29. Paint Object Acton Data Comment Colors LClick qr2 o4 User clicks at 172 64 in Colors Fill with color LClick 5 10 User clicks at 5 10 in Fill with color Simulated LClick 422 111 User clicks at 422 777 in Colors LClick 158 84 User clicks at 158 84 in Colors Tools LClick 45 oe User clicks at 45 82 tn Tools Simulated LClick 336 59 User clicks at 336 69 in Tools LClick ao User clicks at 37 83 in Tools Text LClick 373 169 User clicks at 373 169 in Tent Simulated LClick 267 165 User clicks at 267 165 in Untitled Paint Sende Hello Type Global Sendk ENTER Type wid wd ee 4 wo wb Dr 8 wd E a Verify Ci Analog Ctrl e _Simulated Cancel Finish Cila Last captured 5e55imulated 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 308 Rapise User Manual War saved Script ohjects roo lores locations i locator name Locati
30. Rapise User Manual Name Value Bit map BW H ji Mi ap Class Heigl hi 24 Mane ObjectType Win3Z2Button State 0 Value Width EFS es T T k WIndOoW izni Purpose Use the Verify Object Properties dialog during recording to add checkpoints How to Open 1 First open the Recording Activty 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 Your 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 BW Bitmap properties are images of the object 2015 Inflectra Corporation Rapise User s Guide 287 pa Er oak iz y Verify Object Pro I i le Bitmap BWEitmap ObjectType Win32Button State 0 Value Width Window Text Press the OK button The Verify Object Properties dialog will close and the Recording Activity dialog will contain a new Verify action Action Data Comment Verity that Height 29 Analog Ctri 4 Learning object F Transparent The generated script will have a corresponding assert statement ffVerify that Height 29 Tester AssertEgual Verity that Height 29 sen Ut cetHeight T29 See Also e Rec
31. 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 Rapise 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 i Click on the light grey color in the palette ii Click on the tipping paint can Fill with color iii 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 307 Recording Actrity for Untitled
32. Test Reports Samples y AnalogRecorder sstest CrossBrowser sstest Dothet20 sstest RootTest sstest Simulated Object sstest SmarteAT hi sstest Using lustamstrings sstest UsingOLLHandlerManaged sstest UsingDLLHandlerUnMlianaged s stest UsingImage heckPoint sstest UsingInclude sstest Usinghd Access sstest LUsinghisExcel sstest Usinghsvvord sstest UsingOcCeRsstest UsingRegistry sstest UsingReparting 3 stest UsingSpreadSheet sstest Usingahil sstest Scripts Sampleblaster s Sampleblaster objects js Sampleblaster user s SamplesRegressionset s i i i i i i i i y 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 24 Rapise User Manual JE Test T Reports Samples Le U AnalogRecorder sstest E I CrossBrowser sstest E Reports Fa Scripts i Firefoxsstest Ee TEsstest e Sub test options are available from the Tag property in the Properties window Test ana Reports Ea Samples H I AnalogRecorder sstest CrossBrowser sstest el Dothet20 sstest Test Files ObjectTre
33. TwoDialogsTestjs GE TwoDialogsTest_2011 02 12_15 01 trp Ewa Test eal Reports m Scripts TwoDialogs exe Gg Start Page function Test f 1 sssss Recorded at Friday February 18 27011 2 55 25 Please enter your name Change text to chris seS Please enter your name j DoSetText chris Press button OK Se5 OK DoAction gt m nad lihraries Cfeneri e 1 2015 Inflectra Corporation Rapise User s Guide 31 The proper launch statement will be inserted function Test i Flobal DoLaunch Rapise Samples TwoDialogs TwoDialogs exe Recorded at Tuesday September 27 2011 4 06 19 PM Please enter your name Change text to chris seS Please enter your name DoSetText chris Press button OK SeS OR DoAction 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 DoAnalogPlay
34. UlAWindow 0 0 320 480 Miaon UlATarget local Target frontMostAae 20 Verizon 3 12 31 PM b 0 UlANavigationBar 0 20 320 64 id Basic Controls Button TextField Lak 4 1 UlATableView 0 0 320 480 IndexinParent 0 AUTiOS gt 0 UlATableCell 0 64 320 108 TagName LIAStatic Text 4 1 WATableCell 0 108 320 152 Text Basic Controls Button TextField Lak i A 0 UiAStaticText 0 108 320 152 Title 0 UIAStatic Text 0 1089320 152 Master Detail Table View gt 2 UlATableCell 0 1521 320 196 XPath UiAApplication 1 UlAWindewl1 Table view with items b 2 UlAToolbar 0 480 320 524 4 Layout b 1 UlAWindovw 0 0 320 480 Height 44 Basic Controls Width 32 Button TextField Label Picker Switch Slider Image Y 108 ON ahs eae Advanced Controls hint WebView ScrollView TextView Search TabBar Pagel label Ba ontrols Button TextField Lak Ba ontrols Button TextField Lak If you want to view the contents 2015 Inflectra Corporation of the Spy as a text file just click the Page Source button and you will 160 Rapise User Manual 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
35. aa aaa aaaaa describes the set of all possible strings ab ba describes the set ab ba abc d describes the set abcd d abcde describes the set ta D be eA d e A Z describes the set of all one character 126 Rapise User Manual alphabetic capitalized strings A B al Oran an Z n m Quantifier expression Meaning Between abc 1 2 describes the set n and m occurrences of whatever sub fabe 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 ny wau nany 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 encountered the condition is evaluated A value of False indicates a pro
36. nnmn Recorded et Thursday 04 September 2014 12 06 24 ss Please enter your name Change text to chris SeS Please enter your name DoSetText chris Press button OK SeS OK DoAction DoAnslogPley DoAppActivate DoClick DolnvokeTest DokilIByName DokGliByPid DoLaunch g_ioad_libraries Generic DoLoadObject r lnnranna Da st Fil Settings Object Tree Properties J Template call is inserted function Test f L3 Global DoLaunch Recorded at Friday Feb Please enter your name Chang seS Please enter your name D Press button OR Now you need to correct the references to the command line Global DoLaunch C Program Files Inflectra Rapise Samples TwoDialogs TwoDialogs exe 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 Rapise User s Guide 33 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 product
37. our new function encapsulates the test logic Set Text using searchterm 2015 Inflectra Corporation 128 Rapise User Manual SeS Obj1 DoSetText searchterm nere we changed a hard coded value INECO Varta 77 Clack on DENG SeS Obq2 sDeclick hogue Intlectra denm tr forget to call your new funceion 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 a test 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 1 3 3 A A Spiralest SpiraPlan SpiraTeam Rapise 5 RemoteLaunch 4 Add spreadsheet to the test Use Add File s to add a spreadsheet to the test files 4 e al Te h Create File z b a Create Spreadsheet Add File s New Group Reload Create Sub Test Remove from Test Del Remove All from Disk 5 Attach Spreadsheet object to searchterms xls Drag the searchterms xls from files tree into appropriate place in your test source 2015 Inflectra Corporation Rapise User s Guide 129 ne _ i Lal Start Page B searchterms ja Ea Test SeS Ob 1 DoSetText tha Scripts fClick on btnG SeS Ob 2 DoClick e lo 00 ht bi le O
38. py ee E Disconnect a Cl gt 3 Go To Url W Edit Profiles Select Context NATIVE_APP gt Get Snapshot Learn Ctrl G Object Test Locator Connection Device Profile droid widget FrameLayout 0 0 800 1205 4 Calculated android view View 0 0 800 1205 0 android widget LinearLayout 0 33 800 108 EH 0 android widget FrameLayout 0 33 800 108 0 android view View 0 33 800 108 0 android widget LinearLayout 0 33 158 108 Ei 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 800 1205 E 0 android widget LinearLayout 0 108 800 1205 0 android widget TextView 21 129 779 158 1 android widget Edit Text 21 158 779 276 2 android widget TextView 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 Automation id IndexInParent TagName Texi Title XPath Properties checkeable checked clickable enabled focusable focused scrollable selected texi ooh Text User Name Handra vidnet Edit Ted nog 1 android widget cart ati 13 Bl Password com inflectra autandroid id edit_usen android widget Edit fandroid widge
39. window_name Window class rect 4 object_name YobyVvect class object role uE tyg 20 w 140 Has 23 l window_text Inflectra Rapise Two Dialogs window_class 32770 Ttob bject_ tegt Chris object_role ROLE_SYSTEM_WINDOW object class Edit object_name Please enter your name version 0 object_type Win32Text object_flavor Text object_library Generic See Also e Recordin SDaram window_text Daram window_class SDaram object_name Daram object_class SDaram object_role Sample 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 drop 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 Rapise User s Guide 3 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
40. you can click on the Learn button to learn that object What this will do is create a new Rapise object in the Object Tree that maps to this specific CSS That means that the object in Rapise is effectively a pointer to this specific CSS selector For example if you want to find a specific book in a grid of books by its CSS class style ID or other attribute you can search using the appropriate CSS selector then learn this object as Book_1 so that you can access it in your code as Ses Book_1 Every time you call a function on Book_1 Rapise will use the learned CSS selector and use that to evaluate which HTML element in the web page to access 2015 Inflectra Corporation Rapise User s Guide 339 Dynamic Queries In addition to learning objects based on specific CSS selector there are a set of general functions that can be used to query for objects in the web page ses Book_Management DoDOMQueryCss tr td data bookl1 Will dynamically query for any HTML element that is a child of the learned Book Management object that matches the CSS selector In this example it will look for any table cell in a table row that has the attribute data book1 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
41. 1205 0 android widget LinearLayout 0 33 800 108 1 android widget FrameLayout 0 108 800 1205 E 0 android widget LinearLayout 0 108 800 1205 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 a 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 f Edit Profiles Calculated Automation Id IndexInParent TagName Text Title XPath Layout Height Width Properties clickable enabled focusable focused scrollable text android nexus7 Profile Select Context android id Aext 1 Recording Mode NATIVE_APP gt Jan a 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 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 gt Spy pe Disconnect gt Go To Url Get Snapshot Learn Ctrl G Object Test Locator Connection Device CI Page Source droid widget FrameLayout 0 0 800 1205 android view View 0 0 800 1205 l 0 android widget LinearLayout 0 33 800 108 0 android wi
42. 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 sacar serra Pr SST eT SS ea aaa O Test Pass Sy 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 W ebAndroid 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 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 Corporat
43. 4 MyFunction0 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 226 Rapise User Manual 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 will be displayed whenever you have the Manual Test Editor open Test Case Name Description Al 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 B Zz U A anal Ae AY ey aa ul 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
44. 5 Spira Dashboard Save Record Learn Play Options Find in Help Q SavetoSpira Web Services Spy Files 2 About Activation File Recording amp Learn ming Debugging Executing Tools Help Test hikes 1 Start Page B MyTest1js 4 wal Test Use Record Learn button to begin test recording gt a Reports a anes function Test 2 My j f 3 MyTestt objects js Ib E Click FlexButton Button B MyTestt userjs Se5 Button DoClick Click FlexButton OK SeS OK DoClick Verify that Enable true Tester AssertEqual Verify that Enable true SeS Hello Flex GetEnable true Test Files Settings Object Tree Properties q Execute the Test Execute the test by pressing the Play button in Rapise Congratulations 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 Rapise User s Guide oat 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 ju
45. A SeS Text DoLClick 14 16 TC000034 TS5000046 RSO000089 User clicks st 156 SeS Simulated Dol Click TCO00034 TS000050 256 in the canvas 156 256 RSOOOGEO Enters text This is This is some text SeS Text1 OoSetText This I some text is some textir S E T fi a i Pi 4 Y Fo fi pima Y ra f ra A Sy r j N fs lw a st w VA of 5 a i as maer wa jii ee r gt Tits somites gt View igent RSOO0G91 User clicks on the a SeS Bold DoLClick 11 14 TCO0O034 TS000052 Not Run Bold button If 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 Displaying 1 1 out of 1 incident s linked to this test run Filtering results by Test Run Clear Filters m p m Cw e a O o Did not display the correct text Incident New 2 High Fred Bloggs 31 Mar 2015 IN 000071 Edit Show 15 rows per page i 4 Displaying page a of 1 gt gt Congratulations You have now successfully executed a manual test using Rapise See Also e Manual Testing e Manual Recordin 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 Ra
46. ADB default 120000 Values 300000 o avdReadyTimeout How long to wait in milliseconds for an avd to finish its boot animations default 120000 Values 300000 o avdArgs Additional emulator arguments used when launching an avd 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 Appium 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
47. Caution Fail The top part of the manual playback screen lets you view the name and description of the test case 2015 Inflectra Corporation 224 Rapise User Manual navigate between the test steps and click one of the result buttons to indicate how the application being tested behaved Pass The current test step was completed successfully and the expected result was observed Pass All All of the steps in the test case could be completed successfully and the expected results were observed in all steps Blocked The current test step could not be performed because something else prevented its completion Caution The current test step could be performed but the actual result only partially matched the expected result there were minor differences 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 r 5 Executing Ability to create new book v Ability to create new book HII IOI IIE 9 IIE E gt i ced Canion Fail X KN d a _ 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 Add Attachment Log Incident Expected Result Sample Data The browser loads the login web page http www libraryinformationsystem_com beta Actua
48. Ctri G H UlAstamation Bu C Frog E List tem TypeFroperty Not supported a listboxltemO Listltem Labeled ByProperty Not supported listBoxltem 1 ListItem LocalizedContral Type Property list listBoxltem 2 ListItem Namerroperty Ai i Native Window Handle Property 1372098 listEoxitem3 Listitem a ee a Orientation Property Not supported listBoxltem4 Listltem Processid Property a729 Runtime ldFroperty System Imt 32 E Primary Automation D list Boos 1 Index n Parent 18 Name Native Handle 13 3099 E SelectionPattem ldentifier Lan select Multiole Property False a Features The UlAutomation Spy has the following features e The Tree pane lets you view the hierarchy of UlAutomation objects available 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 7 6 Web Spy Purpose The Web Spy is used to inspect web applications running on any of the supported web browse
49. Dashboard Record Learn Play Options Find in A Save to Spira cg Web Services Files About Activation File ng amp Lea Debugging Tools Help A Test Files g a Start Page Soo dento x 4 a Test Use Record Learn button to begin test recording gt Gd Scripts function Test 3 Test Files Settings Object Tree Properties 4 SETAE h z e oe Output 7 2J Microsoft R Windows Script Host Version 5 8 Copyright C Microsoft Corporation All rights reserved SeS Player Starting Verbose level T f Creating a locator Adobe fio Pe elon roses c inflectra aion Output Wernings Errors Find Results NUM Step 4 Recording the test sequence Press the Record Learn button in either the 5 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 AR Select an Application to Record Select From Running Applications Run Application Available Applications at Inflectra Rapise Two Dialogs Sample O79 CA Users Public Documents Rapiset Sa fe Join my network on LinkedIn Message fH G C Program Files 86 Micrsoft Office TE Menu 6120 C Program Files 6 X PRO Vonage X _ y O RE Emails Message HTML C Program Files w86 Microsoft Chee J i Gig Snipping Tool TdmNotify Description Detect library automatically Java support for AWT SWING 2015 In
50. E b b AUTIOS AUTIOS o b Basic Controls Button _ Te 7 b A Master_Minus_Detail_ Table b MessageLabel MessageLab p Password Password b Username Username 3 i 4 CJ Global 414 g load libraries Mobile gt t E Android Android 5 gt Wl Database Database 5 t 5 Global Global L7 gt E iosfios t Navigator Navigator S5eS5ConnectMobile i fsseses Recorded at Wednesday April 15 2015 1 45 26 PH a Recorded at Wednesday April 15 2015 1 48 01 PM Now that we have the objects we can drag them into the test script editor and write the following script EEHEEHE Script Steps FHFFEEEEHEHE HH HT 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 Rapise User s Guide 163 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 Ui Start Page 3 iOS Test2js QjiOS Test2_2015 04 15 13 55 p vy ix Drag a column header here to group by that column Type Start Name Status Comment Iteration E a E A Message 13 54 06 008 Starting scenario Tes
51. EE xishing Author Edt xisting book HTMLS In the Shortcuts section click on the Create New Test option Shortcuts Quick Start Guide AG Create New Test O Open Existing Test Start Recording The Create New Test dialog will appear Follow the instructions on this dialog 2015 Inflectra Corporation 204 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 o amp A JE Object Mgr Options Find in PY Files Tools The Options dialog will appear Go to the Tools tab ig Options General Tools 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 295 2 6 5 Do Absolute Analog Recording Let s once again use our trusty over simplified TwoDi
52. 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 Q Search Help Gi Start Page i Help Index E Spira Dashboard 22 About Fa ctivation Help 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 2015 Inflectra Corporation 252 Rapise User Manual 2 5 27 Ribbon Report Screenshot Test Report C Temp Raul login IE Rugepresa trp r Bg g JE X Aa HE Merge Cells zal EX Collapse i Plain y Hierarchical ea Save Layout oe Expand Export Export al Choose Images Ee tapa to Excel topDF 4 Reset Layout Columns File Fxport 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 G Subversion Projects Rapise Trunk Hel
53. Inflectra Corporation Rapise User s Guide 1st R Create or Open Test H Ability to create new book 20 Ability to edit existing book Ability to create new author E Ability to edit existing author iad Ability to WanuelScnpling Mode Rapise supports multiple testing methodologies Select one to be used for newly created test ct aly 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 In either case you will see its test steps displayed underneath if there are any 2015 Inflectra Corporation 192 Rapise User Manual RA Create or Open Test Server http doctor spirateam Project Library Information System Test Cases New Folder New Test Case E e Functional Tests fees Ability to create new book 64 Ability to edit existing book A Ability to create new author S5 Ability to edit existing author 3 3 Ability to reassign book to different author ol all Reanreaainn Tecta Step Description Expected Result User opens up Intemet Explorer a The browser loads the login w User logs in ta application User taken to main menu sere s m Tt 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 satisf
54. JS Files 7 Open lk mR Once you have selected the file the Object Manager dialog will display the list of objects to be merged see next section If you click on the button in left hand side of the dialog box marked Source you will be able to select a different Rapise test object file objects js that you want to copy the objects from If you want to make the current test the Destination rather than the Source i e you want to add objects to the current test rather than exporting from the current test simply click the blue Arrow icon and the current test will be moved to the destination 2015 Inflectra Corporation Rapise User s Guide 105 de Object Manager Source Destination a H C SpiraRepository Rapise Web Demo 1 TC88 Rapise Copy Objecttothe Right F5 Remove from Destination Ctr D Copy Allto Destination ource Destination Jsemame_ Password_ H00 Book Management Amsterdam Log Out 1 EREN j 1 1 A 1 1 cand 1 rick a a i D Viewing 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 2015 Inflectra Corporation 106 Rapise User Manual Ja Object Manager SOUT Destination C SpiraRepository Rapise Web Demo 1 TC8
55. Mobile Settings dialog box 2015 Inflectra Corporation s Rapise User Manual Mobile Settings http 127 0 0 1 4723 wdshub 6 C Users Public Documents Rapise Samples Using Mobilet AUT AUT browserName device Name Android Emulator platfom Name Android platfonn Version 5 1 1 udid 4 Common Capabilities 5 auto Launch automation ame auto Webview 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 s 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 platformName 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
56. 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 Web Settings Purpose This dialog box displays the list of web testing settings and specifically lets you change the behavior of 2015 Inflectra Corporation Rapise User s Guide 201 the Web Spy tool Screenshot Web Settings DOM Attibutes Eeclude Filter DOM Attibutes Include Filter Show Intemal ID DOM Attributes Exclude Filter List DOM element attributes to hide in the DOM Tree of the Web Spy comma separated Cancel 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 Web Spy tool when you click on the Mobile Profiles ribbon menu entry General Settings This dialog box has the following settings e DOM Attributes Exclude Filter List the DOM element attributes to hide in the DOM Tree of the Web Spy comma separated e DOM Attributes Include Filter List the DOM element attributes to show in the DOM Tree of the Web Spy comma separated If both Include and Exclude filters are set then Include filter prevails e Show Internal ID If Tru
57. Open Test from Spira allows you to open a Rapise test that is stored in a SpiraTest 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 Recording amp Learning e Press the Record Learn button to open the Recording Activity Dialog Debugging No Debugging Level 1 Minimal Debugging 2015 Inflectra Corporation Rapise User s Guide 251 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 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 gt Ry 18 Object Mgr rae Es Spira Properties Qptioens Find in j 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
58. Ox 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 VALUE gt 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 elements 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 lo appium Tes
59. 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 Inflectra 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 ao Rapise User Manual CustomlControl4op co eee String 2 String 3 Stri
60. Safari from showing a fraudulent website warning Default keeps current sim setting Values true or false o safariOpenLinksiInBackground Sim only Whether Safari should allow links to open in new windows Default keeps current sim setting Values true or false o 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 o sendKeyStrategy strategy to use to type test into a test field Simulator default oneByOne Real device default grouped Values oneByOne grouped or setValue o screenshotWaitTimeout Max timeout in sec to wait for a screenshot to be generated default 10 Values e g 5 o 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 O O 0 O Purpose This dialog box lets you create
61. 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 a at G Users adam sandman android avd _ AVD Name Target Name Platfor APILe CPU ABI Mo AV avwarlable Refresh 4 A repairable Android Virtual Device Wf 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 Rapise User s Guide 323 e Mobile Testing for an overvew of mobile testing with sub sections on testing using iOS and Android Mobile Testing Tutorial for a simple introduction to mobile device testing Mobile Settings Dialog for information on setting up the different mobile profiles for the mobile devices you will be testing 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 2 7 5 1 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 s
62. 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 example we will parameterize the Test function we created in step one TunetLeEn 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 elek on DENG S65 O0b92 DeClick Logie Intlectra den t forget to call your new function 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 Gj Start Page S MyTestljs wo ig son Wg Use Record Learn button to beg F W Object Tree C Users adam san 4 C Giebal function Test gt Ua Database Database wo Global Global W Navigator Nawigator T Ocr 0c E Spreadsheet Spreadshe Tester Tester O User Functions War var User Vanables immi Fr TF F F F and then use Database DoAttach to make the database connection and specify the SQL query Database GetRowCount to verify that there is data Database DoSequential to loop through the dataset row by row Database GetValue
63. Test tab gt Debugging menu See below Mo Debugging i f Level 1 Minimal Debugging See Also e Ribbon Test Tab 2015 Inflectra Corporation Rapise User s Guide 139 2 4 5 4 Syntax Highlighting Purpose With Syntax Highlighting words in a program are displayed so as to immediately indicate their function Reserved 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 fPFFSTSFFSFE Script Steps FFFFFFFFFFssFF function Test i var success Database DoAttach Provider 50LOLEDB 1 Integrated 5ecurity 5i Tester Assert Successfully Connected success var count Database GetRowCount Tester Message count fLoop through the rows while Database Do 5equential var projectiId 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 b
64. Transaction 1409 3248 Assert Pass w OF DoClicki 14 09 32 87 Assert Returmed Value true Pass 0 CJ Transfer 14093287 Test Passed Failed Pass i Balance DoAction 14 09 535 14 Assert Returmed Value true Pass 0 OK DoClickii 14093 3340 Assen Returned Value true Pass 0 CJ Balance 14 09 33 40 Test Passed Failed Pass U I a Application DoMenul Account Eat 14 09 35 06 Assert Returned Value true Pass 0 i CJ Ext L4093 35 06 Test Passed Failed Pass 0 1 CAProgram Files 14 03 3 5 06 Test Passed Failed Test Fass Total 33 Passe 33 Failt Infot 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 Al 7 m Contains Al Ends with Does not start with fa Does not contain Does not end with Does not match Not Like Predefined Filter Values If we expand the filter cell s drop down menu we will see a list of predefined filtering options ent Status ter aaa Custom 0 Blanks NonBlanks So a a amp Pass 2015 Inflectra Corporation 120 Rapise User Manual 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 NonBlanks Matches all
65. Ur Edit Profiles Select Context NATIVEAPP Get Snapshot Learn Ctrl G Object Test Locator Connection Device Profile Context android widget FrameLayout 0 0 800 1205 4 Calculated gJ a 0 android view View 0 0 800 1205 Automation 0 android widget LinearLayout 0 33 800 108 Id android idtext1 ee 1 android widget FrameLayout 0 108 800 1205 IndexInParent 0 android widget LinearLayout 0 108 800 1205 Taiana android widget Text View 0 android widget LinearLayout 21 129 779 453 Text Login 0 android widget ListView 21 129 779 453 Title 0 android widget Text View 21 129 DropDownSelect 0 android widget TextView 2 1 129 773 193 XPath android widget FrameLayout 1 lang 1 android widget TextView 21 194 779 258 4 Layout Buttons 2 android widget TextView 21 259 779 323 Height G4 3 android widget Text iew 21 324 779 388 Width 758 Bars 4 android widget TextView 21 389 779 453 X 7 y 129 Views 4 Properties checkable false checked false clickable true enabled tue focusable false focused false scrollable false selected false texi Login 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 A7 Rapise Spr S J Select Profile android nexus7 Recording Mode Page Source
66. 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 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
67. 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 232 Rapise User Manual Test Locator UAApplicaton 1 UlAWwindow 1 UlATableView 1 UlATableCell T UlAStat How to Open Tag Name ij Class Name Name Android i03 Accessibility Link Partial Link Script ESH Calculated Enabled ld Index In Parent Taghame Tert Title Path Height Y j ot rj R TE True Master Detail Table View Ti UA Static Text Master Detail Table View Ti 1 UAStatic Text 0 64 320 U AApplication I IF UlAW ing Master Detail Table View Ti ter La a Fiag h Li ite l Master Detail Table View Ti 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 simply 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 m
68. aaia aeaa aa Aa a Aaa E aaa Na aaa aha AANKAN iaai 115 VING TO NERE PON is Ae oe et E E 117 PRE DOR Pll eeren a E E E E eure ae caeese tees 118 SCHPINOI rset eee ectececehca aie aa a tviessndtesuedetenetceeens sadesateec rS 120 Understanding te Se MIO ie 2c 2032cc0 steers scacgaen rec stecentne tue T one dee tans eeacnaneretesooseueee 121 Naini CONV CIN Sisi a cca os aie eed eden e ee eae ee ee 122 Biel ail ale late ale li 6 qicteemeceee ter eee eee ee Meee A E ieee mee gerne net ee een Mey eran re ee eee eee ee are eee ee 122 Globally anabo S 4 dae sssate ee ass oe a eed See a A 124 IICIIGIING OINGE FES ea 124 2015 Inflectra Corporation Contents 3 Regular ESP CS SIOMINS abne a etceiaiaaaroueanrotsaie cece seca esea oreo em ateeieeceeeataesetcaomeree 125 PASS ELE SUALC ISIS ecco a ate cee O A eens eae 126 Data Driven Testing ciocctcn ie codes di E a a weteeee enceseaatt elie 127 CUS IOImIZ ADIGE ENGING 5a hei erste hee reenact he 131 SCENAS eRe eae ne tres ene IE Ene Co ree ee ne ere a ee ee ee ne ete eae ene eee eee eet Cree eet ere eee 131 Javaserip IDE cheese ve yeet cssverecgiteucsucsavdesansee dive uecdh ehasausareiverteasiavens daca eased beak calaiuiia dav iaeana eisai anneal eee 133 Inve rial DEBUG SR secreted itech satus scaled haoee a 134 WOOMIDS athe karte cdo ates ican tales hoe eee aad ee lela al en eal Sac 135 COMUO MEX CO UNION onere a cas ceneaace aes cence et ceceaacenpaaaecset ac aide aecesecea stem ea
69. b ditional SDKs Conflicting return type in implementation of number Destination ihitectures PickerView NSinteger aka int vs long e SDK i Create Bot A Semantic Issue Id Active Architecture Only Conflicting return type in implementation of nickerView numbe ror Debug Dannar la amananamnt i RIiElatonaee faba linti wr nnm 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 See Also e Mobile Testing for an overvew 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 331 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 6 Web Testing Purpose Rapise lets you record and play automated tests against web applications on a variety of web browsers including Firefox Inter
70. below Loading Accessible Plug in for your Qt application 2015 Inflectra Corporation Rapise User s Guide 313 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 Java virtua ae Javea virtual
71. book to different author al Aenreesinn Testa Step Description Empected Rest User opens up Intemet Explorer a The browser loads the login w 2 User logs in to application User taken to main menu sere Test Steps kpj bm i 3 Ie 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 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 210 Rapise User Manual Ara 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 i
72. 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 to the Manual Editor with the Manual Test Ribbon Visible rit Marcel 2 Reload mA Add Step E View in Browser C Release 7 a Record Screenshots 5 i as j has ra j a gt EE il Save Local 9X Remove Step w3 New Incident Whole Window Save Execute Record te e 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 174 Rapise User Manual 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
73. child n mnth last child 7 mnth last chi nth last child z pee of its parent counting from the last child iota p nth last of Selects every lt p gt element that is the second lt p gt pe 2 element of its parent counting from the last child Selects every lt p gt element that is the second lt p gt element of its parent Selects every lt p gt element that 1s the only lt p gt element of its parent aiko p only child Selects every lt p gt element that is the only child of ts parent Selects input elements with no required attribute Selects input elements with a value outside a 3 specified range a ee aido Selects input elements with the readonly attribute 3 specified l Selects input elements with the readonly attribute read write input read write NOT specified i l Selects input elements with the required attribute required input required specified 3 moot Selects the document s root element i l Selects the portion of an element that is selected by Selection Selection AT target news target Selects the current active news element clicked 2015 Inflectra Corporation mnth of type p nth of type 2 only of type p only of type i ni out of range input out of range 338 Rapise User Manual Example description CSS Be ona URL containing that anchor name Selects all input elements with a valid value Selects all visited links One limitation as compared
74. 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 button or press the key sequence Ctrl 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 299 Recording Actrity for Two Dialogs sample Object Acton Data Comment Please enter Analog Analogna Plays recorded events from Analog 4nalog0002 arf file Verify Chet 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
75. com beta Expected Result Sample Data The browser loads the login web page http s F Actual Result Please enter the actual test result if it differs then click the appropriate button RASS EWB Z U A Aral Anm Aly Yr BESA iti e Add Attachment llog 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 Gd Start Page ES Manual Steps nni A Ability to create new book Tests that the user can create a new book in the system WBIU AAra A310 Avy My fei izi a Stepld Description Expected Result Sample Data WH Step 1 Call TS 1 f Step2 User clicks link to create book User taken to first screen in wizard TS 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 step
76. crip JEnUgger e LET eae Eile Edit Hew Debug Window Heip Fie 6 bal Een Lm a G Debug HRnRGGs 4 e oe EY Regal Gig Perr Gre aE Smartelinit is a Ul wd testing engine developed by as aT a Smaitesot Inc Copyright Cj 3006 2009 SmiartaSott inc Fuipa Prea OOTES JScript JScript glabal code The conients of ihis fie are subjoci l ihe Smaresof Puble License Versiq 4 00 Litense You may obtains copy of lhe License al hbo ive ematesoh com SPL Any wee of thie fle other han as auihosize under the License of copynght law e prohibited i war Q helper new ActwesObpect SeSHelper j_ helper SelHostivyScnpt cea Singlelin An instance of SeSVvrappers Le winch is an entry pow f r all windows AP acewss rilaled aliies 7 var g uti new ActvesObject SeSWrappers LUi Running Dacurnents Sa CAWindows ryetern i c ne rit ence La iy Piers aa ge Wty ScripeioaeL3 gdi Wty Scripthostd ial Way Seripthostt Di Civil leva Sonptiiy 50 VorBo By Pellequina ge MyScripthiostd a gil TA4idmin Wrappers Bin Smarts Studio ene 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
77. dialog will display information for the last object highlighted Maximize Minimize buttons The maximize E and minimize El 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 H Rapise Spy TEV Start Tracking Ct HS tudemation Objed ree operbes lapise Documentation indow Lem Type Property gt ToolBar Labeled by Propesty a Panel LocaliredConinol Type Property Panel tamne Progeerty Pane Orientation Property 4 Fane Processid ropert Tabi Ho System Menu Bar MenuBas Minimise Button Restore Button Fi t iFa ai pise Documentation HH Farenij Toolbar Windows2 b Shell DocObgect View HH SazeBar HH Child H Sys TabControl az 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 Rocessible Tree Properties 4 ROLE SYSTEM CELL a State Ted ScreenehoROLE_ ST STEM_TEXT 4 Primary select an application to record dialog ROLE_SYSTEM_GRAPHIC mk MSITStoreC User Ghiduri 55 ROLE_SYSTEM_TEXT Chidid CHILDID SELF Purpese ROLE SYSTEM_TEST Dest aut Adian The ROLE_S STEM_TEAT Description Select an Application to RecondjROLE_SYSTEM_TEXT Hi NE miemei Explorer_Seryer SAR Dialog appears before ROLE_SYSTE
78. e demonstrates automated version of create new book manual test case REB z f Emplemented for http www libraryreferences org CreateNew Author user js CreateNew Author js Kou may run it as with any browser by changing Browse Samples he Browser parameter Parameters Fetch Samples f Spira Properties AdobeFlex3 Browser internet Explorer HTML Y AdobeFlex4 Record SpiraTeam My Page Windows AnalogRecorder Title Internet Explorer CreateNewAuthor Project PR000001 CreateNewBook Test Folder TCO00001 CrossBrowser Teat aee TONMANNA DotNet20 EditExistingAuthor EditExistingBook d FarPoint JavaSWT Query Ul Recent Tests Managed Q tFramework C ProgramData Documents Rapise Samples CreateNewAuthoriCresteNewAuthor sstest Shortcuts Ry Create New Test E D Open Existing Test Start Recording Sampie ATM C work Rapise Rapise HelpAndSamples S Purpose 2015 Inflectra Corporation Rapise User s Guide 29 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 Cu
79. ee is some Not Run TS000051 gt Edit Og step 8 User clicks on the Bold B SeS Bold DoLClick 11 14 Not Run TS000052 Edit button Show 15 rows per page M lt Displaying page 1 Fa 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 WL Release 1 0 0 0 Library k 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 System Release 1 SP2 1 0 2 0 0001 Iteration 001 1 0 2 0 0002 Iteration 002 2015 Inflectra Corporation Rapise User Manual 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 Lo 5 EB ZU A Arial Atio Aly My Baal t Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Step 7 Step 8 E A Blocke 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 EBZ U A Arial v Afl0 Avy BSE zil Add Attachment Log Incident
80. files arf 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 Filefsi New Group Reload Create Sub Test Remove from Test Del Remove All from Disk e Create File Create and add a new file to the test e Add File Add an existing file to the test 2015 Inflectra Corporation 284 Rapise User Manual e New Group Create a logical grouping of files in the test This will not add a folder to the file system e Reload Refresh group contents Use it for filter groups IsFilterGroup is set to True in group properties e g for Report group e 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 Remove 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
81. frameworks libs automation swe C Program FPiles Infilectra Rapise Extensions Flex FlexAdapter bin FlexAdapter swc The compiler arguments for FlashBuilder 4 should look like include Libraries C2 Program Files Adobe Pilach Builder 4 sdis 4 020 frameworks libs automation_agent swe C Program Files Adobe Flash Builder 4 sdks 4 0 0 frameworks libs automation swe Cr Program Files InmilectrayRapise 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 SWEs 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 appli
82. i Name Arthur Conan Doyle 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 start Page Fy MyRestTesti ps E LibrarninformationSystem rest REST Request Sal x Name Aid_Book a LibracyinformationSystem rest eee ___________e ___ Get_Session Method GET hip veww libraryinformationsystem org Services ResiSerice svc book sesson_idelsession_idl x Send io Get Books Credentials hibranan X n Add_Book Headers od Harme Value Operatans Accept application json E Content Type arolieation igen x Parameters ja Name Value Operations session id 82499beo 37ed 4c64 820e a2d790ed Tea tnsertin 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 E Start Page Fa Stee ae LibraryinformationSys
83. in the Edit tab Test Edit Debug lA Save Cut e Undo Courier New 10 Toggle Breakpoint WoSaveds 3 Copy Redo Paste File Clipboard History Font Debug See Also e Ribbon Debugger e Control Execution 2015 Inflectra Corporation Rapise User s Guide 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 ki 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 Wocript Echo Ses Player Starting nM 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 138 Rapise User Manual Ga ved on ce E eB ces a j ea hic beat tT
84. 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 Usinglnclude This sample demonstrates two ways to include external files functions 1 eval g_helper Include include a file 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 Rapise User s Guide 13 This sample demonstrates usage of the Optical Character Recognitio
85. intricacy as well as the flexibility of Rapise and SeS There is a method whose names looks interesting DoLButtonDown If we were to invoke DoLButtonDown 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 DoLButtonDown 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 305 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 irresp
86. ipboard Farii baniground Col ors Calibri im ase When you click Finish to complete the recording Rapise will now display the list of populated manual 2015 Inflectra Corporation Rapise User s Guide test steps with the embedded screen captures tb Start Page Manual Steps _rmt vy x DA eee ee es Stepld Description Expected Result Sample Data Step 1 User clicks at 37 11 in Application menu EEn SeS Application_menu DoLClick 37 11 1T Step 2 User clicks at 42 12 in Application menu SeS Application_menu DoLClick 42 12 qv Step 3 User clicks at 44 13 in New L SeS New DoLClick 44 13 M Step4 User clicks at 15 9 in Pencil m SeS Pencil Dol Click 15 9 M Step5 User clicks at 14 16 in Text A SeS Text Dol Click 14 16 1 Step 6 User clicks at 156 256 in a 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 Typically you may want to add some additional steps e g we added a line to describe the process of
87. ledit_username SeSConnectMobile gt aa home home iif Recorded at Thursday April 16 2015 11 48 37 PM b A texti text gt C Global i User Functions ar User Variables g load libraries Mobile Object Tree Allg Now that we have the objects we can drag them into the test script editor and write the following script tHEHHHPHEE Script Steps HHHHEEHHEHETF function Test SeSConnectMobile SeS text1l DoClick SeS edit_username DoSetText test user SeS edit_password DoSetText test pwd 2015 Inflectra Corporation 64 Rapise User Manual 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 back in the mobile device U Start Page Android Test3js J Android Test 3_2015 04 16_23 51 tp x Drag a column header here to group by that column Type Start Name Status Comment Iteration G E E a 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
88. 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 2015 Inflectra Corporation Rapise User s Guide 115 Ob Loe version 0 object type Sessimulated object name reqgex E ae A vobject class IMS PaintApp Tob ject rolei UROLE SYSTEME WINDOWNY Tobpject tert 2 regex i Paint window_name regex Paint window_class MSPaintApp Locator Parameters If 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_name param object_name Object elass pata Cb yect class topJject role param object rolen Over riding Locator Parameters You can over ride the information used to locate your object 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 0b39 MESES ESSERE You may want to change a parameter value for every locator object in the program For instance perhaps the
89. machines found in common places ic oragram fles avaljdk1 b 0_ 21 bin ic proqram files icdb yavaljrebybin 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 EEN Rapise User Manual 2 1 5 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 http appium io that is used to actually host the mobile devices and Rapise essentially communicates to the device via 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 U
90. mouse movements keyboard inputs and clicks and stores them in a special ARF Analog Recording File format file Test Files T Start Page B Analog Test2js J AnalogQ0001 arf 4 ga Test 4 Analog kes C Users tadam sandman Documents My F Analogt0ti arf b gal Scripts E Play 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 Analog mode Recording Activity for Inflectra Library Information System Internet Explorer Press Cirl Break to Stop Analog Recording nE and keyboard activity is now being SETER 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 sa Rapise User Manual Recording Activity for Inflectra Library Information System Internet Explorer Action Data Comment Analog Analog Ana
91. p Please enter your name Please enter someone else s name Summary Thank you Your name is chris act 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 wi Please enter Set7est chris Please enter your name Change text to chris We OK Action Press button OK Verify Ctrl 1 Learn Ctrl 2 lt Spy Ctrl 5 Pick Object RER Analog Ciri 4 _ _Simulated Caneel Finish Cir 3 Last captured Wwin32Button OK For a full explanation of the controls on this dialog refer to the reference for Recording 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 28 Rapise User Manual Open Open Test from Spira i Run with Internal Debu are a ld Object Mgr Pa AA Search Help G Start Page io b f j g GF g W Save s iy Spira Properties PN Level 1 Minimal Pae s Helpindex S Spira Dashboard Save Record Leam Play Options Find in Help g Save to Spira cg Web Services gt P Files D About
92. path lett te iy DodppActyvate tithe iy DolrvokeT est pathT ol es iy Do KullByN amelprocessN ar iy Dok By Pid pid DoLaunchiendLine wrkD iy DotessageBbox prompt b i Do crT esseract img i Do crT extracting iy DoS endeeys keys 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 32 Rapise User Manual By Open B Open Test from Spira Run with Internal Debu x Pan Zy i J Object Mgr DM A Search Help G Start Page gt A 4 GF Tade a DW Save ds ui Spira Properties n Level 1 Minimal X xa Save Record Learm Play Options Find in g Save t p 3 et vices So le i ecorcing amp Leaming p Object Iree Ud Start Page B TwoDialogs Testjs Qj TwoDialogsTest_2014 09 04_12 09 trp id n 6B J ect Tree C Users adam san a 7 Inflectra Rapise Two D 2ft2t2tf2 Script Steps 2422222 22 gt 05 OKIOKI 5 lool Pi function Test abi Please_ente q 4 CJ Global gt WB Database Database 4 Global Global
93. 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 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 Am 0 Blanks 0 NonBlanks 0 ont Fail 0 Pass 0 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 Dialo 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 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 2015 Inflectra Corporation Rapise User s Guide 121 2 4 4 1 Understanding the Script Purpose When you create a new test in Rapise four files are created lt TestName gt sstest the te
94. 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 8 Rapise User Manual 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 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 A
95. 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 G Start Page LESI Manual Steps nnt x MS Paint Test Stepld Description Expected Result Sample Data 0 Step 1 User starts up the MS Paint Application The application loads with a blank x canvas 1T Step 2 User clicks the main Application menu EER SeS Application menu DoLClick 42 Q Step 3 User clicks the New entry Ite SeS New DoLClick 44 13 i Step 4 User clicks on Pencil A SeS Pencil Dol Click 15 9 U Step 5 User clicks the Text tool A SeS Text DoLClick 14 16 1 Step 6 clicks at 156 256 in the canvas 4 O 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 178 Rapise User Manual fe 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 SpiraReposito
96. 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 82lle a 2d 798ed 1e 84 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 bttpvwww libraryinformationsystem org Services RestService svclbook session_id session_id Send Credentials librarian gt Headers A Name Accept application json Content Type application json Parameters T Name Value Operations session_id 82499bcc 37e4 dc64 820e a2d798cd1e84 _ Insertin URL X 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 a Rapise User Manual Response Header Response Body Formatted JSON Author Age 125 Id 3 Name Arthur Conan Doyle oth I Authorid 3 Genre Id 2 Name Murder amp Mystery Genreld 2 ld 1 Name Hound of the Baskervilles Id 3
97. the Pick Object button which then allows you to pick a specific object from the Mobile Spy 2015 Inflectra Corporation s Rapise User Manual Recording Activity for Device 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 AUT 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
98. the child nodes of the bookstore element Selects the root element bookstore Note If the path starts with a slash it always represents an absolute path to an element 2015 Inflectra Corporation 334 Rapise User Manual bookstore book Selects all book elements that are children of bookstore ffeook Selects all book elements no matter where they are in the document bookstore book Selects all book elements that are descendant of the bookstore element no matter where they are under the bookstore element Le lt book gt Oliver Twist lt book gt Rapise XPath Extensions Web pages sometimes use HTML frames The XPath works inside the frame contents Rapise has a special syntax that is not part of standard XPath to combine multiple XPath statements into a single line frame name main 1 al 3 The special statement COUCH Is used as a separator for XPath statements pointing to constituent frames The top level frame is found by name main frame name main Then the frame s contents are searched for the third lt a gt element i e 3rd link on a page There are several different ways to use XPath queries in Rapise Using Web Spy To most easily use XPath queries in Rapise we recommend using the Web Spy tool tables td style Test XPath Learn Test CSS Learn orators If you enter in the XPath query at the top when you click Test XPath it will display all of the DOM eleme
99. 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 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 pa i j e E i Spy Open the Object Spy Dialog This can be done directly using the Spy button in the main Ga Spy Ctrl 5 Rapise window s toolbar or by pressing the 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 Sp
100. them into the test script editor and write the following script HHEEFHHFHEE Script Steps FHFFEEEEHHE HH HT function Test SeSConnectMobile SeS text1 DoClick SeS edit_username DoSetText test user SeS edit_password DoSetText test pwd SeS android_widget_Button DoClick SeS 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 G Start Page Android Test 3 js wD Android Test 3_2015 04 16_23 51 1p bl Bas Drag a column header here to group by that column Type Start a Name Status Comment Iteration a E A 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 ee Test SSSR 131 ANGLO Test en ASS POSES Falled 0 l Test Pass Total 7 Pass 6 Fail 0 Info 1 2015 Inflectra Corporation Rapise User s Guide This is the report of the test being executed Examp
101. to XPath is that there is not a way to select an element based on its contents So it would not be possible to locate a cell in a grid for example based on the contents of the cell For that you would need to use XPath Rapise CSS Extensions Since Rapise uses XPath as its primary means of locating an HTML element when you Learn an object using CSS Rapise will prefix the Locator listed under the XPath property for that object in the Object Tree with css to let Rapise know that the locator is actually using a CSS selector ess html gt body gt form ct101 gt div nth of type 3 gt div first of type gt div first of There are several different ways to use CSS selectors in Rapise Using Web Spy To most easily use CSS selectors in Rapise we recommend using the Web Spy tool Test XPath Learn able td style Test CSS Learn Locators If you enter in the CSS selector at the top when you click Test CSS it will display all of the DOM elements that match the selector Test Results 4 Locator CSS table td style found 4 lt td style padding night 50px gt lt td gt lt td style padding right 50p gt lt td gt lt td style vertical align top gt lt td gt lt td style vertical align top gt lt td gt You can now refine the query to only find the items you want to test Learning Objects When you have created the query in the Web Spy that returns the HTML elements that you were expecting
102. to capture 2015 Inflectra Corporation 182 Rapise User Manual Bik A ERR EE Resize l gt h A a E i ja mi s qate rushe size Color colo i 31 2 k r Pit oe Be wa ee eee L Li ja F F 7 Pn if ee a i i en pA 5 l S i f j i j a ji ng i rae oe al Se eTA a J 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 m ial Draw Tools Untitled E File Edit Draw Help g G ea Lg 2o0 4T i Tahoma 9 B wiih A E Cia Aam e Gre rg F kT OMIM Visas 2 j i wr t A V E a z Ea n SIT dH Resize lt DN S O Q gt Var T Paste Select j Brushes o E Rotate 7 gt Ww iz J J7 nm 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 s Guide 183 ja Draw Tools Untitled File Edit Draw Help a salk o O AT Tahoma s B wio A 2 c 2 ri i lt Hi y A mA SVOODOGA Jute d Resize gi wr Oo OOD Of BA bh Rotate Trk hap s Select Brushes Scale 1 In the e
103. 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 type arf Analog Recording File 2015 Inflectra Corporation s Rapise User Manual 2 4 1 4 Application Under Test Tzs 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 canva
104. used to uniquely locate this element If you click LEARN using CSS this is what will be recorded with the object o xpath this is the XPath selector that can be used to uniquely locate this element If you click LEARN using XPath this is what will be recorded with the object Test Results 2015 Inflectra Corporation 102 Rapise User Manual In addition to navigating the DOM tree and Learning specific objects the other main capability of the DOM Spy is the ability to create queries using either XPath or CSS to see which objects match the query and then learn the specific result For example we want to find all the table cells that have at least some style information specified a Using XPath If you enter in the XPath query to locate the table cells in the Locators box at the top itable td style Test XPath Learn Test CSS Learn orators When you click Test XPath it will display all of the DOM elements that match the query Test Results 4 Locator itable td style found 4 lt td style padding right 50po gt lt td gt etd style padding right SOpoc gt lt td gt lt td style vertical align top gt lt td gt lt td style vertical align top gt lt td gt You can now refine the query to only find the items you want to test b Using CSS If you enter in the CSS selector to locate the table cells in the Locators box at the top Test XPath Learn able td style T
105. 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 e Redo this will redo the last operation Font Name this will let you change the font family and size Select Font Font Family Style Weight Stretch Tahoma Normal Normal Normal Sylfaen T lt c Microsoft Tai Le Oblique Egla Times New Roman Tunga Vrinda Shonar Bangla Microsott 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 220 Rapise User Manual 2 5 12 Available Colors OOOO E i I mmn SS mi mm i m Ej mm i Pe EEA EAM OBD EB OPAR O H HOOOU SS ie EE E _ a Sea Rn ee BEH C OBM OM Bim es ae a ee lle ee Standard Colors aie j i i mm Recent Colors Advanced e Line Width This lets you change the current line width used in the various annotations lmage Editor Footer The fo
106. your package This often needs to be preceded by a e g MainActivity instead of MainActivity Values MainActivity 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 Enable 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 Devtools socket name Needed only when tested app is a Chromium 2015 Inflectra Corporation 230 Rapise User Manual embedding browser The socket is open by the browser and Chromedriver connects to it as a devtools client Values e g chrome _devtools_remote o avd Name of avd to launch Values e g api19 o avdLaunchTimeout How long to wait in milliseconds for an avd to launch and connect to
107. 0sMainContent LoginUsersLoginButton DoCicki Pass Intemet Explorer HTML Retumed Value true Assert 11 47 14 517 Book Management DoClickif Pass internet Explorer HTML Retumed Value true 0 Assert 11 47 15 063 Create new book DoClick Pass Internet Explorer HTML Retumed Value true i Assert 11 47 15 609 Name DoSetText The Restaurant at the end of th Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 15 812 Author DoSelect Agatha Christie Pass Internet Explorer HTML Retumed Value true 0 Assert 11 47 16 015 Genre DoSelect Soence Fiction Pass Internet Explorer HTML Retumed value true a Assert 11 47 16 186 chloosMainGontentsbtnsubmit bodick Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 16 654 Failure in Test Fail Internet Explorer HTML g Test Fail Total 15 Fass 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 scripts can be run from the command line 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 SmarteATM SmarteATM sstest evals optional is a statement like this eval varname 1 value 1 varname2 value2 varname is a gl
108. 1 4723wdshub 6 C Users Public Documents Rapise Samples Using Mobilet AUT AUT browserName device Name Nexus 7 platform Name Android plattor Version 447 udid 015d24bcSd4el5 4 Common Capabilities 3 auto Launch automation ame auto Webview _ Primary Lapabiliti i oes Desired capabilities are a set of keys and values 6 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 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
109. 1 X Notes B ZU A Arial A1 7 AW HSS sS 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 s Guide 185 Ai MS Paint Test E B i uU A Arial v A710 A mY I j ot a a a ten A PERRIN sockes ceutical side e Frien J 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 WBZ U A Aral A10 Aly My lel izi c Add Attachment Log Incident fIN 71 j 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 i
110. 121 Open 292 Open a Test 292 Open File 282 Options Dialog 236 Output Verbosity 138 Output View 240 Override Action 90 Overview 9 P Pause Execution 136 Playback 112 Properties Dialog 240 Q Qt Framework 312 R Rapise Overvew 9 Recording 78 Recording Activity Dialog 241 Recording Library 8 7 Regex 125 Regression Testing 200 Regular Expressions 125 Replace 215 244 Replace Text Dialog 244 Report 115 252 Filtering 118 212 Writing 117 Report Viewer 245 Re record 91 REST Web Services 150 REST Definition Editor 246 Tutorial REST Web Services 41 Restore Default Layout 294 Restore Layout 294 Ribbon Debugger 255 2015 Inflectra Corporation Index 351 Ribbon Edit 254 Report 252 REST 258 Spreadsheet 253 Test 249 S Sample Projects 10 Sample Tests 10 Screen Capture 266 Scripting 120 ScriptPath 267 Select an Application to Record Dialog 260 SeS Spy Dialog 274 Settings View 263 Simulated Object 86 Source Editor 267 Spira Dashboard 269 SpiraTest Integration 187 Spreadsheet Viewer 268 Spy 92 274 Start Page 268 Sub Test 211 Syntax Checking 140 Syntax Errors 288 Syntax Highlighting 139 a ae TAP 148 Test Anything Protocol 148 Test Entry Point 294 Test Files View 282 Test Function 121 294 Test Script 1271 TestFinish Function 121 Testing DLLs 144 Testinit Function 121 TestPrepare Function 121 Text Editor 267 The Test Script 121 Tooltips 135 Tutorial 13 32 2015
111. 15 Percent Complete 0 Estimated Effort hours minutes Projected Effort 0 hours 0 minutes Actual Effort lt hours lt 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 much 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 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 Rapise User s Guide 223 2 5 13 Manual Playback Screenshot r 5 Executing Ability to create new book c E l Ability to create new book
112. 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 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 Ee LibraryinformationSystem rest E Start Page e MyRestTest1_2013 06 19_14 49trp 4 ps pe yau REST Request EE ed aa Name Get_Books 4 c LibrarylnformationSystem rest __ m Get_Session Method GET http www libraryinformationsystem org Services RestService svc book session_id session_id X Send Get Books Credentials librarian 35 lt Add_Book Headers A Name Value Operations Accept application json x Content Type application json gt Parameters lt Name Value Operations session_id 82499bcc 37e4 4c64 820e a2d798cd1e84 Insertin URL X Body v Response Header Response Body Formatted JSON Name Value Status Code 200 OK Content Length 2173 Cache Control private Cnontont Tuna sonliestinnfican charcat HO 2015 Inflectra Corporation Rapise User s Guide 151 Each REST request can then include the following items e Method the type of HTTP req
113. 29 779 193 XPath android widget Frame Layout 1 iang a 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 f 194 Views 4 Properties checkable alse checked e lickable true enabled true cusabie false crollable false ele ted fois ext Drop DownSele If 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 gt Cancel Finish Ctrl 3 _ E Transparent 2015 Inflectra Corporation 170 Rapise User Manual Now click on the Pick Object button and the Rapise Spy will be displayed in Recording Mode m r Sm pe R Disconnect gt Get Snapshot CJ Page Source Go To Url Learn 3 Select Profile W Edit Profiles Ctrl G Object Te
114. 48 Rapise User Manual REST Request Mame Add Book Method POST https www libraryinformationsystem org Services RestService sve book session_id session_ id Send Credentials libranan Fa Headers A Name Value Operations Accent application json gt Content Type application json gt Parameters m Hame Value Operations isession_id 62499bec 3 fed 4ce64 820e a2d 98cd1e84 InsertinURL Body A The request form has several sections that you need to populate Method the type of HTTP request being made GET POST PUT DELETE etc URL the URL of the web service request with any parameter tokens included e g session_id in our example above Credentials Any HTTP Basic Authentication Headers Headers Any other HTTP headers both standard and custom Parameters Any parameters that have been defined in the URL that will be called from the Rapise test script Body The body of the request for POST and PUT requests This can 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 8 Date Thu 20 Jun 2013 18 00 27 GMT Set Cookie ASP NET Sessionld 3ggghumykgb4n4xb02h Server Microsoft IIS 7 0 AspNet Version 4 0 30319 X Powered By ASP NET 2015 Inflectra Corporation Rapise User s Guide 29 Response Body Formatted XML esti ng xm
115. 6789598c42703429379d147a6f81 ecea95edb66 Production You can find out the UDID by connecting it to the Mac and viewing the device inside Xcode 2015 Inflectra Corporation 330 Rapise User Manual aoo Devices a DEVICES f Device Information E ener 10 9 5 LIFI Name Goshen iphone Goshen iphone Model iPh 4 CDMA 7 1 1 110201 EHE TERON Capacity 13 52 GB 12 89 GB available HMULATORS iOS 7 1 1 110201 7 al itae Identifier b54ciblc05a4438eb95e322a7ed8df3e45978654 ere a a S S1 128411 View Device Logs Take Screenshot iPad Air 7 1 LID167 a iPad Air 81128411 Installed Apps a einai Name Version ldentiner PL a LIB 1h AUTIOS com inflectra AUTIOS voa 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 Xcode File Edit View Find Navigate Editor CCM Debug Source Control Window _Help Run AR Test U e00 AUTIOS xco Profile el i i AUTIOS O Goshen iphone An alyze PB AUTIOS on Goshen iphone a ao A Oo co l Archive hy AUTIOS xcodeproj iua By Tyne E i Build For General Capabilities ag AUTIOS a PEro Action eo Y Bal 3 issues Levels Y E AUTIOS xcodeproj Build eB Retina 4 inch Support Clean DPRK Applications using Launch Screen Files and targetting Stop ap earlier need to also include a Launch Image inanAss fing ii NE Scheme
116. 7CDB6E AE6D llef 96B8 444553540000 i1d HelloFlex width 100 height 100 codebase http fpdownload macromedia com get flashplayer current Swrlachie cab gt 2015 Inflectra Corporation ES Rapise User Manual 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 lt MoOse rao gt lt body gt e Wem 4 Compile the application 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 mxmIc exe a Open CMD window in C HelloFlex directory b Run command mxmlic HelloHex mxml CA WINDOWS system onene Miceaosoft Windows KP Uers fan gt oe A j CC Copyright 1985 27001 Aicrocaft Carp C2 wHelloPFlexdmxmic He lloPle mxxnl Loading configuration file Proqran Piles AdobesPlex Buil
117. 80 CJ Page Source amp Select Profile WR Edit Profiles 4 Calculated Automation ld IndexlInParent TagName Text Title XPath Layout Height Width A Y 4 Properties hi nt label name Value iPhone4 Profile Rapise Spy Recording Mode Select Context UlATarget local Target frontMostApg AUTIOS i UlAApplication AUTIOS 0 UlAApplication D 209 320 430 NAApplication 1 460 IN 0 WN AUTIOS AUTIOS Context eec Verizon 1 40 PM aap 4 lt AUTIOS Basic Send Login login data Mercury Mercury i 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 162 Rapise User Manual Recording Activity for Device Object Acti Dat Comment Basic Contro Lea Leamed Basic Controls Button TextField Label Picker Message Label Leamed MessageLabel Usemame Leamed Usemame Password ea Leamed Fassword AUTIOS eam 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 E iOSTest2js Oo id n idh a ffRSEESESEEE Script Steps FFF FF FFF FFF a Object Tree C Users adamsandma i F c Device 5 i function Test gt A Advanced_Controls_ Webi
118. 9 Pass 7 Fail 0 Info 2 Congratulations You have just created your first test script that tests a RESTful web service 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 hawe already installed Rapise on There is other documentation that describes the full range of mobile testing options 2015 Inflectra Corporation Rapise User s Guide 53 1 Setting up Appium and the Android SDK 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 and click the Play button to start the Appium server Appium e a OL gt Starting Node Server gt info Welcome to Appium v1 3 4 REV c c 9a8S5fbd68 0cd6fcid66d038all5ebe22efe 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 plattionmName Android platfommVersion 18 automationName Appiu
119. 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 Manual Bik A ERR EE Resize l gt h A a E i ja mi s qate rushe size Color colo i 31 2 k r Pit oe Be wa ee eee L Li ja F F 7 Pn if ee a i i en pA 5 l S i f j i j a ji ng i rae oe al Se eTA a J 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 r d l Draw Tools Untitled calel File Edit Draw Help g G ea Lg 2o0 4T i Tahoma 9 B wiih A E Cia Aam e Gre rg F kT OMIM Visas 2 j i wr t A V E a z Ea n SIT dH Resize lt DN S O Q gt Var T Paste Select j Brushes o E Rotate 7 gt Ww iz J J7 nm 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 s Guide ja Draw Tools Untitled File Edit Draw Help a salk o O AT Tahoma s B wio A 2 c 2 ri i lt Hi y A mA
120. Adapa Va Naida aiaee 267 Spreads heei VIC W CE onion a a aaa a a a ae aa oaa iaaa a 268 Start Page saene aaa e aap AEG aa Aaaa aA Aaaa aa a aSa aAa aae aa E dead sadsbueraSeesieueeseeat 268 Spira Dashboard cccccecccssseseeeseseseeeeeeeeeeeensneneeeseeneeeeeeeseseeeensssseseneeeeeeoeeseeeseeesesensaneseseaaoosseseseseseeenanseeesssaaeseees 269 Spy Dialog sertana andana aaa a eO aaa a Aaaa aAa aaia aa aaae eaaa daaa aaiae 274 TeSt Fles Dialog rie aeaa aa Aa aaae a a Pa aO AAE aaa raa EA Aaaa aa Eaa aa 282 Variable Call Stack Vi Wis scscivetscccsssescvcctecscsesvicclastastdeectccecdeesecsivensnnesncedescedetevesssaushussecddencatcuctsdiacsivennsliesecbcnecteess 284 Verily Object Properties Dialog szscsicesizssssisscaccosdessvidedessiacacctadsnesiasesveasitstaiisinsicazentdesasiasiedeeneeneaeaewiearas 285 Warning VIEW sisena aatra maaana naaa Aaaa aa aaa Aaa Aaaa a uacteascatautadecccecse wlassanseteatsdeatcetsccessnateavecsvsbetesceds 288 MV AUCH WOW E EE NAE EA E E E E A E TA 288 Fil Menu ainena aaaea aa aaa aAa aa Aaa A aa ha aSa aiaa aia a A Aa aa tatensied seceiuetante DNAS ANARA 290 WED Se HN GS srssprises cance n a a aa aSa e a a E 290 O TOW TOS aron a aa a aae aa a a Ea a a e a RE 291 Opena TOS izmira a a a a 292 Create A NEW TES benra a A E E 292 REStOFING the De Taun Layout iissa aS A sisson eit 294 Change Test Entry POIN iirin a a 294 Do Absoltite Analog Recording ssciciscccctcvectccccacectecci rack ceccuceeweacs a sees ENE AS 295 Do Re
121. Android Simulator 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 166 Rapise User Manual RJ Create or Open Test htto doctorspirateam New Folder I gt Nitki create new book Ability to edit existing book pi Ability to create new 47 New Test Case Ability to report on books on loan ae Teg that the arien lets you report Mobile Mobile Basic Manual Scripting Mode Crete Local 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 nexus7 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 Mobile Settings Select Profile android nexus 7 bttp 127 0 0
122. 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 Rapise User s Guide RA Create or Open Test htto doctorspirateam New Folder E Ability to i create new book Ability to edit existing book pi Ability to create new author New Test Case Ability to report on books on loan i Test Marie aes lets you report Specity methodology Mobile Mobile Mobile Mobile Support Basic Manual Scripting Mode _ Create 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 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
123. Appium Once it is installed you need to select the option for Android and click the Play button to start the Appium server 2015 Inflectra Corporation Rapise User s Guide 317 Appium Q Yo Stop debug gt GET wd hub status debug Responding to client with success status 0 value build version 1 3 4 revision cBc79a85Tbdb878cd6fcsd66d038all5ebe22efe isShuttin gDown false sessionId a2da69c0 1le33 4a63 a898 5b196997cb6b gt lt GET wd hub status 7 921 ms 178 status 0 value build version 1 3 4 revision c8c79a85fbd6870cd fc3d66d 38a115ebe22efe isShuttin 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 6 value UIAScrollView debug Responding to client with success status 0 value UTAScroL View sessionid a2da69c0 1e33 4363 3898 5b196997cb6b lt GET wd hub session a2da69c0 1e33 4a63 a898 5b196997cb6b element 74 name 145 722 ms 87 i status 0 value UIAScrol View sessionid a2da69c0 1e33 4363 3898 5b196997cb6b gt GET wd hub session a2da69c0 1e33 4a63 a898 5b196997cb6b element 74 enabled debug Pushing command to appium work queue au getELement 74 isEnabled Z 4 debug Sendi
124. Application to Record Dialog SAR dialog will open R Select an Application to Record Select From Running Applications 23 Inflectra Library Information System Windows Internet Explorer C Program Files Internet Applications Path C Program Files w86 Micosot Office Office C Windows Sys WV0 W64 rundll3 exe Bt C Windows Sys WV OW 64 nundll 32 exe Gi Adobe Photoshop CS3 Extended Untitled 16 C Program Files amp 6 Adobe Adobe Photost CAFrogram Files DellT Pad Apntex exe C Program Files DellT Pad Apnt Ex exe 8 Help AndSamples Microsoft Visual Studio C Program Files amp 6 Microsoft Visual Studio a Himi C Windows explorer ex Inflectra Gibrary Information System Wind Program Files wntemet Explorer explore ex C Program Files amp 6 X PRO VonageX PRi C Windows Sys WOW 64 nundll 32 exe ea TdmNotify C Program Files Wave Systems Com Truste e Tutorial Record and Playback Mozilla Fire 48 C Program Files 26 Mozilla Firefox firefox e Windows Media Player C Program Files amp 6 Vindows Media Playe BRX PRO Vonage C Program Files c86 X PRO Vonage X PR 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 s
125. Book count matches 14 books length Var newBook 4 newBook Name A Christmas Carol newBook AuthorId 2 newbook GenreId 3 se5 LibraryInformationsSystem Add Book SetRequestBodyObject newBook se5 LibraryInformationsSystem Add Book DoExecute session id sessionid se5 LibraryInformationsystem Get Books DoExecute session 1d sessionid books Se5 LibraryInformationsSystem 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 E LibraryInformationSystem rest Start Page MyRestTest1_2013 06 19_14 49 trp Name Start Type Status Comment Iteration m m E nN E 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 O0dd181b3ccel 14 49 04 334 Message Info 0 Get_Books DoExecute session_id c3d8dcd4 6125 4 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 61254 14 49 05 597 Assert Pass Returned Value true 0 Book count matches 14 49 05 597 Assert Pass 0 H gt MyRestTest1 14 49 05 597 Test Pass Passed 6 Failed 0 TestPass Q Total
126. Box radioz System Windows Forma Radio Button fai El ManagedSpy Properties Component Type Handle 1180844 ls Managed True E Misc Accept Button AccessibilityObject Accessible Default Action Descripti Accessible Description Accessible Name Accessible Role ActiveControl Active MdiChild Allow Drop False Allow Transparency False Anchor Top Lett Auto Scale False y Auto Scale Base Size 5 13 i F bam p Default 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 detail in the Mobile Spy topic Spy gia Disconnect CJ Page Source MH Select Profile iPhone4 gt s Go To Url Edit Profiles Get Snapshot 3 J Ctrl G a Test Locator Connection Device Profile 4 0 UlAApplhication O0 20 320 480 4 Calculated b 0 UlAWindow 0 0 320 480 Automation b 1 UlAWindow 0 0 320 480 Rapise Spy X Discovery Mode Select Context M Context WA Target local Target front Most And 0000 Verizon gt 3 04 PM tarpt JIA larget local arget trontViostApp a AUTIOS JlAApplication EA AET EET Master Detail Table View UlAApplication 1 Table view with items 460 Basic Controls 320 Button Tex
127. Corporation 212 Rapise User Manual How to Open Choose Create Sub Test in the context menu of a folder in Test Files dialog 2 5 5 Content View Screenshot Ras W aa Eeit te O pen Open Te t fron Spir e No Debu iN P l J4 Ob ect Mar P Saati h Help cS Start Pane al gt a mi A Sy cia a X Save As iy Spira Properties Level 1 Minimal Fad Help Inder R P Options Find ir Help Files V About f Activation Record Learr Play eve Save to Spira cg Web Services est ries Gj Start Page S Spire Dashboard 8 SampleATMjs 4 wl Test function Test SampleATM exe 4 a Date fileOvervicw DJ ATMDatabase mat This example shows how you can test an MFC application and organize your ed Reports script as a set of functions The test was recorded and then split into 4 OD Seri parts sach as DoLogin DoDeposit etc SampleATM js a Eeen objects js The AUT being used in this test is SampleATM This is a version of ATM B SampleATM users 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 DoLogin DoWithdrawal DoDeposit gt DoTranstfer Test Files Settings Object Tree DoBalance DoExit Purpose To view and edit files This includes the following file types e JavaScript js automated test script files Report trp files that open in the Report Viewer
128. Data Documents Rapise Sample C Program Data Documents Rapise Scnpts Lib C ProgramData Documents Rapise Scripts True False CAUser adam sandman Documents My 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 Rapise User s Guide 237 a Pe ee I Object Mor Spira Properties Options Find in P P py Files Tools Misc Misc Splash creer True e SplashScreen A splash screen is the image that appears while a program initializes The Rapise splash screen looks like this E api Loading module Accessibility COT 2 seconds remaining 1 1 24 Set SplashScreen to False to prevent the splash screen from appearing Settings E Settings AutoReload odifiedF ile True DetaultF older Temp FrameS tile Modern LoadLastT estUnStartup True NormalzeFileN ames True Recent ests 10 ShowStatPagelnStartup True StyleLibrary e AutoReloadModifiedFiles 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 b
129. During a Recording session Rapise learns about each object with which you interact For details see Recording 2015 Inflectra Corporation Rapise User s Guide st 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_enter_your_name_ locations I locator_name Location location 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 paYramtwindow class path I object_name param object_name object_class param object_class object_role param object_role by object_name param window_text object_class param window_class object_role ROLE_SYSTEM_DIALOG 2015 Inflectra Corporation e2 Rapise User Manual Locator name LocationRect location 4
130. EHE Script Steps FHHHFEHHTE FHF 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 playback 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 188 Rapise User Manual 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 ao lie K Z fom Hog a Joj Sta se Ri Wag Te o User 1 with User 2 wit
131. Groups Filter groups read its contents from disk according to specified path and wildcard You may setup a filter group by editing group properties Properties Gl FilterPath Reports Filtenildcard irp lsFiterGroup True Name Reports lsFilterGroup true if directory should show the list of all files matching Filtenwildeard belonging to FilterPath e FilterPath Root path to find files via wildcard valid only if lsFilterGorup 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 2015 Inflectra Corporation Rapise User s Guide 285 Function Var H Test C Program JScript global code Ti Admin Wrappers Engine Player js 411 W5Script f Seswait a _Se5GetObjectinfo La Variables Watch Output Warnings Errors Find 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 2 5 42 Verify Object Properties Dialog Screenshot 2015 Inflectra Corporation 286
132. Inflectra Corporation 36 Rapise User Manual Piriles Adcbe Pilash Builder 4 7sdkse lt Version gt 7 frameworks libs aulomation swo c27 Program Files Inflectra Rapise Extensions Flex FlexAdapter bin FlexAdapter swc fs Sdminictrator E incik Ti Microsoft Windows Version 6 1 7600 Copyright ic 2669 Microsoft Corporation All rights reserved Cosxrlemp He lloPlexsmxmilc HelloFlex mxml locale en_US include Libraries c Prog ram Files Adobe Flex Builder 3 sdks73 35 6 framevorks 1ibs automat ion_agent suc ei Program Files Adohbe Flex Builder 3 sdks 3 3 6 framevorks libs automat ion suec Veo cifProgram Files Inf lectra Rapise Extensions Flex FlexAadapter bin FlexAdapter fuc wading Configuration File c Program Files AdoberFlex Builder 3 sdks 3 43 6fram works f lex config xm C TempHe lloFlexsHelloFlex swf 574228 hytes gt Co lempsHe LloFlex gt Add HelloF lex 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 Macromedi
133. Inflectra Corporation U Unit Testing 144 User File 121 V Variable View 284 variables query value 135 view values 284 Verbosity 138 Verify Object Properties Dialog 285 Views 7 205 W Warning View 288 Watch View 288 Web Service Testing 149 REST Web Services 150
134. L gsBilelete lees UserName administrator Password Default Repository Path C Temp RapiseTesis 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 272 Rapise User Manual Automation Hosts Select host Create Hostfor 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 Using the dropdown list you can select one of the displayed automation hosts Automation Hosts Select host w Select host Windows Vista Host 2 Windows Vista Host 1 Windows 8 Host Windows 7 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 If 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 Automatio
135. M_TEXT indexinFarert P Recorda ROLE SYSTEM_LINK mk Sore CiUsers FubhiciDocumenis FapseHel LocatienRECT i 246 Y 108 Width 7101 Height 1566 4 takes pace It quenes the user for which program to record as well as what ROLE 57ST Name F E Recording Library ROLE SYSTEM_UNKink MST Stre CWU sers Public Documents Ra Role AOLE_SYSTEM_CELL touse ROLE SYSTEM_TEXT State 0 ROLE_SYSTEM_TEXT 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 2015 Inflectra Corporation Rapise User s Guide 277 Properties Object fields and field values are displayed here Tools 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 rey Start Tracking Ctrl G H li a panelOfava awtPanel El Primary labelO java awtLabel Handle 790046 textArea l java awt TextArea Indesn Parent 0 l list java awt List Name panel button java awt Button Lan 463120 i El Secondary button java awt Button accessibleContext java awt P
136. 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 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 O ON OT F amp F O Build your own custom library to support the technology in use by the AUT 10 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 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 observ
137. ObjectLookupAttempts This is the number of times Rapise will attempt to locate an object Recording Beautify S ayved bjects False e BeautifySavedObjects affects how the Script Recorder writes object information to your test script If False the object definition will be written as a single line var saved_script_objects Balance version 0 object_type SeSSimulated object _name Transaction Completed Successfully n nAccount 00000005 Balance 1046 00 ob ect class State object roles ROLE SYSTEM STATICTEXTY Yobject text Transaction Completed Successfully n nAccount 00000005 Balance T046 00i locations lt t locator name Location locat on TM Oca con 4 24 M window name Smar Ee cATM Y wandowl2clace Umro Oun locator name Locatrtonrarh location window name SmarteAIM window class lJz2770 path object_name Transaction Completed Successtully n nAccount 00000005 Balance 1046200 ob yect class Starve object role TROLLE sis TEM ST TATTCOCTEXTN object_name Transaction Completed Successfully n nAccount 00000005 Balance 1046 00 ob 7ect class State object role ROLE SYSTEM _ WINDOW opec t name SmarleAIM ob lect class s32 70 object role 2 ROLE SYSTEM DL yee e Cale ale EIA bi If True the object definition will be written in a manner that takes more space but is easier to read and change var sav
138. 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 CustomListboxControl Rda soW ae Test j Wy Open g Open Test from Spira No Debugging f gt C ty dd Object Mgr re 7 A Search Hele GS Start Page 3 WW Save As ity Spira Properties 4 Level 1 Minimal y Fs y Helpindex 5 Spira Dashbo Save Record Learmn Pla iptions Findin Help WW Saveto Spira cg Web Services P Files V About Activation est Files Start Page O Spire Dashboard B libUserjs gt ra LiblE a j gt a Libinfragistics fileOverview gt wal LibJava This is a first place to include and test user defined libraries and extensions gt sal LibManaged i LibMSOffice gt en lublUt gt pn UbSeSinte jat gt wal LibSyncfusion fileOverview gt Dd LibTelenik User library for CustomListboxControl gt T LibUlAutomatic 4 pan labUser var WinS2CustomListboxControl 3 LibUser js t gt a LibVerifyRules actions gt eal LibWebService a saj LbWp actionName SetItemValue i _ K jel j m Lddctrvexsit DeAction function String itemName Number value i LibActveXC1lj v Test Files Settings Object Tree var item this findItemByName itemName if nuil icem 4 Analyze CustomListboxControl in Spy
139. Rapise User Manual Version 3 1 Inflectra Corporation Wednesday July 08 2015 i inflectraZ 2015 Inflectra Corporation 2 Rapise User Manual Table of Contents Foreword 0 Parti Company amp Copyright 6 Part Il Rapise User s Guide 7 1 JADOUE THIS GUIGC itecsie cet cee eet Scccea iene iat Grail atte euideceeian bet aittelel in cadea anette Noehie isl cavinicn gett 7 2 GIOSSANY sateen ieee a deh ewe ea nciiedea a a a eco rmstenertndeee 8 3 Getting Startdato a cates aa aoaaa ra a a aa A a aar 8 Overview aa a E ace ice acmomweccaustestessudeass aos cetucuees vases 9 Sample S Nde NC csan ected eset ta ent eee aa ES aaa E EES aAa Ae aea 10 MIS URE real WeD TESSIN aa aaa ere tone AN EEEN EE E 13 UPORTAL Windows TO SUING soiien e a a ERA Aa aa aE 22 Tutorial Testing Adobe Flex Applications unnnunnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnen 32 Tutorial Testing REST Web Servite S oscri ea aa Ea dense eia a a Aa EE aa aaiae 41 ULC Hale MODIS eS CLIN soa aas Aaa ate aE EA EEEE EAE E aS A A A aari 52 T torak amp pl ratory TESUNG riri 65 4 Feature S cea R EA A aces Sicaasecascuusicwcneustee 76 Recordi g and Learning saene nenna aaraa aana aa aaa a aaaea a Aaaa aAa Aea KE Aa Aaaa a AOE eA aaa Aa aaa EAOa aa AAA AAAA AA aAA k AKA Aa REAGERA 77 PROC OF GING ieezeca ee cisd AA aeolian eee A cal da ated Sel al See cee ail 78 Learning seen a a aac rete aa a 80 Analog Recor
140. Regi 244 62 1122 065 E Text viable VW reco i UP i The HWND Object section of the Spy dialog shows properties of the object that are visible with its HWND handle Tree 2015 Inflectra Corporation 282 Rapise User Manual The spied upon object and its children are displayed here Properties Object fields and field values are displayed here Tools e Mouse Button Click Emulate Left mouse click for the item 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 http msdn microsoft com en us magazine cc301312 aspx e HWND is described HERE e Microsoft UlAutomation is described here hittp support microsoft com kb 971513 2 5 40 Test Files Dialog Screenshot 2015 Inflectra Corporation Rapise User s Guide 283 Test Files q 4 gal Test 4 go Application C Sample ATM exe 4 gal Data D ATMDatabase mdb eal Reports 4 go Scripts SampleATM objects js 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 the script Report files trp Images captured during execution using Checkpoints Analog recording
141. S Spira Dashboard Save Record Learn Play Options Find in Help W Save to Spira 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 m save Test to Remote Repository Serer bitpshocalhost s para Progect Library information System Test Case Folders Library Information Sysher a Functional Tesis Regression Tests e O Scenaro Tests C Common Tests Local Path read oniy C Users adamsandmaniDocuments My Rapase Tests Spire New Testl iSpia New Testl sste Cancel i The first 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 194 Rapise User Manual ich Save Test to Remote Repository Server bitociocalhostisoare Progect Library information System Test Case Folders a 9 Library Information System A Functional Tesis QE Regression Tesis J Scenario Tests L Exception Scenano Tests O Common Tests Hi ere l Renosilory Faik R Abality bo cresie new book T Ability bo edi existing book R Ability to creme new sulho A Aba
142. SVOODOGA Jute d Resize gi wr Oo OOD Of BA bh Rotate Trk hap s Select Brushes 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 s memen 5 Executing MS Paint Test E So MS Paint Test gt i BZ U A Aral A107 Aly My Basa ijl es Step Se Pass Pass Ally Caution Fail 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 E wrong E WBZ U A Aral A107 AY My Basa i 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 Manual Click on the Log Incident button to display the new incident entry screen 5 New Incident o e lel Save Details Description Name The text did not display correctly in MS Paint Description B Z U A Arial Miy AVY Sas When entered some text it did not display correctly in MS Psint Sy Type Bug X Status New D
143. 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 Servces 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 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 Overview Creating a REST web service test in Rapise consists of the following steps 2015 Inflectra Corporation oa Rapise User Manual 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 Rapi
144. TML 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 objects 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 Passwo
145. Test q i se5 LibraryiInformationsystem Get Session DoExecute null var sessionId S5e5 LibraryInformationsystem Get Session GetResponseBodyObject Tester Message sessionid se5 LibraryInformationsystem Get Books DoExecute i session id sessionid var books Se5 LibraryInformationsystem Get Books GetResponseBodyObject Tester AssertEqual Book count matches 14 books length Var newBook newBook Name A Christmas Carol newBook AuthorId 2 newBook GenreId 3 se5 LibraryInformationsSystem Add Book SetRequestBodyObject newBook se5 LibraryInformationsSystem Add Book DoExecute session id sessioniId se5 LibraryInformationsystem Get Books DoExecute session 1d sessionid books SeS LibraryInformationsystem Get Books GetResponseBodyObject Tester AssertEqual Book count matches 15 Books 1length 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 operation
146. Test Hew Tesi C Users adam sandman Documents My Rapise Tests Spira New Test Spira New Testi sstest _ New les te m y p Ea td C A Users edam sandman Documents My Rapise Tests Web Test 1 Web Test Lsstest Open C Users adam sandman Documents My Rapise Tests My Testl My TestL sstest Test Open an existing Open File C ProgramData Documents Rapis Samples CreateNewBook CreateNewBook sstest Save C Users adam sandman Documents My Rapise Tests TwoDialogsTest TwoDialogsTest sstest fave fhe current Test Goan Tet From Spire C Temp Smoketest Smokelest Smokelest sstest Save to Spira C Users adam sandman Documents My Rapise Tests Auto Test 1 Auto Test Lsstest C Users edam 2andman Documents My Rapise Tets REST Test Project REST Test Project cstest C Temp Rapiselests ECF_AuteProjectBackup DO NOT DELETE ECF AutoProjecthackup DO NOT DELETE sstest 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 Rape Quick Start Guage Preparing Firg fox for Testing Open Spira Dashboard Spira New Testi Test Description Use the dashboard fo link tests to fest cases create and run test seis Scenari wiew aulomabon hosts and more _Piay_ User Functions Spire New Test users Shortcuts Rij Create Haw Test Project PRODO Test Foder TCORKO1 Test Case TCOMMNG Cr ateNeweBook CrossBrowsar
147. Text dialog e The Replace button opens the Replace Text Dialog Font Courier Mew Filidp Font e Use the above font and size drop down menus to change the text appearance The entire file will be affected Debug i 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 256 Rapise User Manual 2 9 31 Test Edit Debug LZ Step Over SE StepIn E Stop Debugger Fe Step Out gJ 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 F11 Step into a function procedure e 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 Ribbon Manual Screenshot Test Manual e Reload mA Add Step View in Browser C gt Release wa Record Screenshots i ial Save Local 9X Remove Step w3 New Inc
148. TextView 21 324 779 388 4 android widget TextView 21 389 779 453 Page Source Select Profile android nexus7 Edit Profiles Indexin Parent TagName 7 Discovery Mode Select Context android id text 1 android widget Text View E Drop Down Select NATIVE_APP LOntext oF np a AUTAndroid Login 1 android widget Text View 2 1 1 54 DropDownSelect android eLayout 1 an narod widaet Frame La Buttons Bars Views If 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 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 Rapise User s Guide 61 Recording Activity for Device Now click on the Pick Object button and the Rapise Spy will be displayed in Recording Mode Bs Rapise Spy Spy ee R Disconnect Cd Page Source Select Profile android nexus7 Recording Mode
149. Visual Studio C Proaram Files w86 Microsoft Visual Studio 4 In HelloFlex application press Button and then press Ok in the alert message 2015 Inflectra Corporation Rapise User s Guide 39 5 Then press Verify button on Recording activity dialog and click on Hello Flex label In Verify Object Properties dialog check Enabled property _ AutomationClassName FlexLabel Automationindex Index 0 Automation ame Hello Fle Bitmap Hello Flex Bw Bitmap Hello Flex Class Internet Explorer Serve ClassN ame rx controls Label Color ra4012 CurrentS tate null DisabledColo 11187123 IUE o 6 You have recorded three basic steps of your test 2015 Inflectra Corporation 40 Rapise User Manual Recording activity for HelloFlex Windows Internet Explorer Object Action Data Comment Button Click Click FlesButton Button 0K Click Click FlexButton OK Hello Flex Verity tre Verity that Enabled true Learn Ctrl 2 ala Spy Ctrl 5 Analog Ctrl 4 a Simulated Cancel Finish Ctrl 3 Last captured HTMLObject file C HelloFlex HelloFlex html fF Transparent 7 Press Finish button on Recording activity dialog You now have recorded the test File Test Edit iy Open E Open Test from Spira No Debugging X gt ty da Object Mgr amp amp Search Help Gi Start Page W Save As 2 Spira Properties Level 4 Overflood p Bl HelpIndex
150. a x A 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 If you want to test using the Android simulator 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 e080 Android Virtual Device AVD Manager _ Android Virtual Devices Device Definitions List of existing Android Virtual Devices located at Users elise brooks android avd AVD Name Target Name Platform API Level CPU ABI 7 _ emulator64 Android 4 3 1 4 3 1 18 ARM armeabi v7a f Rev Status Create f 24 0 2 F 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 C Not installed 21 0 2 Not installed 21 0 1 Not installed Details 21 q Not installed 20 Not installed 19 1 Not installed 19 0 3 Not installed 19 0 2 Not installed 19 0 1 Not installed 1n Jiles Leasint es Start Delete Install 27 packages Refresh 1 Delete 14 packages
151. a Record Screenshots L5 k Me ial Save Local 9X Remove Step w3 New Incident Whole Window Save Execute Record i Manual Manual With Cursor Spira Editor External Tools Playback Recording The test step list will initially be empty td Start Page 3 MS Paint Test TC34 js Vy Manual Steps nmnt 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 2015 Inflectra Corporation e Rapise User Manual if Record Screenshots Whole Window Record Manual i 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 LOick 37 1 User clicks at 37 11 in Application menu LOick 4 12 User clicks at 42 12 i
152. a 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 Rapise User s Guide 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 HelloFlex HelloHlex swf a create file lt ApplicationData gt Macromedia Flash Player Security flashPlayerTrust HelloHlex cfg b add this to the file c HelloHlex Tr O Oocuments and Settings ifm File Edt Wer Fasie Tools Help EES bi 3 5 pe Search E Folders Hal Address E lication DakaiMacromedialFlash Playery Security FlashPlayer Trust gt fo Folders x a HelloFlex cfg E Documents and Settings j AM Administrator zi G Application Data HH Adobe a e Help m 7 ES Identities DEGE olx Logviewer File Edit Format view Soe Macromedia Help EM Flash Player crsHellorFlex H Security a FlashPlayerTrust Flies 5SharedObjects Fl macromedia com EH Microsoft SGM Smartesoft 4 Jm 1 objects Disk free space 11 1 5 E bytes J My Computer Record a Simple Test 1 Open C HelloHlex HelloHex html in Internet Explorer 2 Start Rapise and press Record Learn button 2015 Inflectra Corporation 38 Rapise User Manual a Open E Open Test from Spira No Debuggi
153. a New Test user ps Download C Temo RapiseTests Spira New Test Gara New Test sses Download C TemgpFapse Tests Spira New Test F p P Spira New Test objects js Download C lTamp Rapiselests Spira New Test Sora New Test ys Dhowinboad C Temp Fapiselests Spira New Testi Repository json Downlosd C Terp Repise Tests Sore New Test Extensions of files fo exclide lep inp log user omd OK Cancel A dialog box will be displayed that lists all the files on the server which will be downloaded 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 20 Rapise User Manual 5 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 This will display the name of the current Rapise test together with the name of the SpiraTes
154. a method for the object Steps 2015 Inflectra Corporation Rapise User s Guide 301 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 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 Recording Activity for Two Dialogs Sample Object Action Data Comment Leam OK Learned UF Cancel Finish Ctrle3 Learning abject 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
155. aTeam 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 270 Rapise User Manual Ug 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 i i Tre ooge X 5 Meme See Spira URL https devcom spiraservice net UserName fredbloggs Spa Folder Create Host for this Machine Auto Login L Local Folder c SpiraRepository Edit Connection Settings Test Cases and Test Sets Project Description Library Information System w Sample 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 scription iction Va ee oo Tcoo0001 Ly Functional Tests C Teoooo02 w Ability to create new book Tests that the user can create a new book in the system coooa W Ability to edit existing book Tests that the user can login wiew the details of a book and then if z J Tcooo00s i y S he she desires make the necessary changes Each of the secti
156. ademarks of Inflectra Corporation 2015 Inflectra Corporation Rapise User s Guide 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 OO 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 O1 Tutorial Testing REST Web Services a tutorial in using Rapise to test a RESTful web service API O Tutorial Testing Adobe 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
157. alog Locate the line where g_load_libraries is initialized Under the Hood It is possible to have more control 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 If you recorded your script in IE you will see g lead libraries sgq_browserLibrary Internet Explorer HIML2 If you recorded it in Firefox you will see 2015 Inflectra Corporation Rapise User s Guide 311 gj 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 O Settings Metadata C Users Public Documents Shared Objects Path TwoDialogs Test objects js Report Path TwoDialogs Test trp Script Path TwoDialogs Test js C Users Public Documents Shared UserFunctionsPath TwoDtalogs Test user js 7 Expand the Test Params option and click on the Browser dropdown list A CommandLine EntrPoint Test L 4 TestParams 5 ite
158. alogs 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 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 be
159. an 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 investigate 2 Mouse over variables as you advance through the script A small box will popup displaying the variables values War Yu w 15 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 136 Rapise User Manual 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 Test Edit Debug P Run Step Over StepIn GH Stop Debugger Fe Step Out T 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 StepIn E Stop Debugger Step Out Break Debugger 4 lf the Debugger tab is not visible you can also use the Toggle Breakpoint option
160. anage 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 SpiraTest 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 sample 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 Reco
161. anagement button 2015 Inflectra Corporation 20 Rapise User Manual LIBRARY INFORMATION SYSTEM Home Book Management Author Management You should now be on the Author Management page see image below LIBRARY INFORMATION SYSTEM Welcome librarian Log Out Home Book Management Author Management AUTHOR MANAGEMENT The following authors exist in the system Create new author ei 3 arthurconan Doyle fhs m EO e S a e Click the Create New Author link AUTHOR MANAGEMENT Create new author The following authors exist in the systen Arthur Conan Doyle 125 Agatha Christie 98 You should now be on the Create New Author page see below Click the Home button to go back to the main menu 2015 Inflectra Corporation Rapise User s Guide 21 LIBRARY IN FORMATION SYSTEM Welcome librarian Log Quit Home Epok Mana gem ent Author baa nagem ant CREATE NEW AUTHOR Please enter the author information and click Insert Author Information SS At this point there should be 11 rows in the RAdialog grid You are now back on the Main Menu Click Log Out top right LIBRARY INFORMATION SYSTEM Welcome librarian Log Out Home Book Management Author Management WELCOME TO THE LIBRARY INFORMATION SYSTEM This sample application lets you view create and edit books in the liban catalog as well as view create and edit authors To view the library catalog or the
162. anel AccessibleAW T Panel df S advAwtContrals java awt Button alignment 05 checkboxljavaawt Checkbox alignment 0 4 textField2 java awtTextField background java awt Colorfr 200 g 220 b 255 ichoice2 javaawt Choice component componentCount 5 components Java awt Component ct40F5 2 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 278 Rapise User Manual iy Start Tracking Ctri G la a MainForm AUTDotNet MainForm H propertyorid1 System Windows Forms Propertyorid checked ListBox1 System Windows Forms Checked ListBox dateTimePicker1 System Windows Forms DatelimePicker datatGridView1 System Windows Forms DataGrid View H toolStrip1 System Windows Forms ToalStrip btAlias System Windows Forms Button listvView2 System Windows Forms ListView listvView 1 System Windows Forms ListView contextMenuHolder System Windows Forms Label H gutTabContral System Windows Forms TabControl treeViewNoC B System Windows Forms TreeView autLabel System Windows Forms Label treeViewCB System Windows Forms Treeview autEdit System Windows Forms Text
163. 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 js file with the following code function LaunchMsPaint 2015 Inflectra Corporation Rapise User s Guide 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 1 Step 1 LaunchMsPaint The application loads with a blank TS 45 User starts up the MS Paint Application canvas iV Step 2 User clicks the main Application menu E TS 46 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 HHEFHHHFEH
164. arried 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 Manual implications Firstly if the AUT is in a different 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
165. arting Verbose level Library Information found T Admin Wrappers E ngine Libs LibAdvanced AAC jalb 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 PN e The text box is a search box e The icons from left to right are Find Next Entry 4 Copy Selected 4 Clear All Text O and Select All Text a 2 5 21 Properties Dialog Screenshot VETSIOM Locators Object locators that can be used to identity the object within AUT Purpose 2015 Inflectra Corporation Rapise User s Guide m 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 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 Object Learn Cirl 2 Gn Epe _Simulated Cc Finish Ctrl 3 Transparent Purpose The Recording Activity Dialog is used for Recording Analog recording absolute and relative Object Learning and creating Simulated Objects How to Open 1 Open the Selec
166. ase 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 Inu 3 46 2015 1105 1U KB wSelecta Scredraregion to take 2napshOt or press ESC to aboitind comer Account Thu 3 26 2015 10 57 1KB 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 lmage Editor Toolbar The image editor provides the following tools File Edit Draw Help Sea le gt 0O AT I Tahoma My wish a eee eee eee ee ee eee ee ee ee ee ee ee ee ee eee eee ee ee eee eee eee 2015 Inflectra Corporation Rapise User s Guide ag 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
167. ation Loader wad ingUiKitControlsObj CandSwitt Objective C Quit Xcode C More Developer Tools hybrid md Ta Oa o e eee ee node_modules appium docs an Version 6 1 A1052c D InternationalMountains a al Documents mobile web md node_modules appium decs an Get started with a playground nF Explore new ideas quickly and easily troubleshooting md node_modules appiumydocs ean A Create a new Xcode project ofa 4 Start building a new iPhone iPad or Mac application InternationalMountains app zip ar 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 sie Rapise User Manual 8OoOo Appium gt GET wd hub status debug Re
168. authors list you will need to login as a borrower and to make changes to the list of books or authors you will need to begin as a librarian 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 Comoration 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 i i Open Es Open Test from Spira Y Save As 2 Manual Steps Save Y SavetoSpira cy 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 22 Rapise User Manual icy 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
169. 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 Recording 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 298 Rapise User Manual Recording Activity for wo Dialogs Sample Object Action Data Comment Verity Ctrl 1 Lean Ctrls2 Lear Ctrl 2 lt Spy Ctrl 5 Pick Object Pick Object Pause _ Simulated Cancel Finish Ctrl 3 Click or eei bo start analog ae Tiaenarent 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 Lo E mE To Finish recordingiplayback 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
170. brary This allows you to save time by having the system recognize the 2015 Inflectra Corporation Rapise User s Guide so various controls directly e 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 e The Adobe Flex AIR library is for use with applications that are written using Adobe Flash Flex or AIR e The Qt Framework library is for use with applications that are written using the cross platform Qt Framework e 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 e Recording e To write an Object library specific to your application see Custom Libraries e Cross Browser Testing e f 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 If 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
171. cation manually E g C Program Files Adobe Flex Builder 3 sdks 3 2 0 bin aal exe C Program Files Inflectra Rapise Samples AdobeFlex3 AUTFlexAlR bin debug AUT FlexAlR app xml 2015 Inflectra Corporation ao 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 Di
172. ccess 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 Rapise User s Guide 6 Tutorial Testing Adobe 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 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 re
173. ccsesssesssseesseeeseeseeseseeeeensneeeeseensseeeoeseseeeesessennnneeeeseneeeeeesesseeeens 233 ODE CUTE Dialogo aE aaa aE aaa raaa 235 Options Dial Gy eare araara aaa aaa aa Aa E aa A Aaaa aAa EA a ces Aa a aaa aaeanoa aaa a adaieg 236 OuUPU VE aaO a aaa a a r teins Ea E 240 Properties Dialog oirinn aaaea aaa anaa aaan aaa Ea aAa a A wate snevbteceactaseeastweivssiedecetntcesbstatestastantdectecosetates 240 Recording ACUIVITY DialOG isasi aaa a aaa aa EA RE rA a aAA EEEa 241 Replace Text Dial g sscciscdsscccceweesisces sos tnevcndedcccwencsseiicat catcczatveticdsassansavensencactecusdcndse a aaa AAAA AAAA aaa Kaa RENA AAGE RASAS 244 PE DOL VIOW CF ea iaaa a a a aaa aaa a aaa a Aaaa a E EEEa 245 REST Definition EdiItOr msaren aaao a e A aa Rada a aA aaa aa E E Taaa aO aAa aaa aAa 246 PID DON TOS A E E E A A ETE EAA E PEE E E A 249 PID DON RE DOME Aera EPE E E A P AA E A E T 252 RIDDON Spreads hee hia aaa aie aaa a a Eaa aaa a Aaa naa aa E a aaaea iaa 253 PUD DOr Bii a aa a aaa a A A A a aa EA Aaaa aE aa Eaa od ee es 254 ADDON D DUO GOR sisa eE eE aa iaaea sancessessanseusehsexsbesesctesaeeatests 255 FID DOM MANU al Eea an EE T E E A NE EA E EA EE 256 ADDON REST arne E E a Pree 258 Select an Application to Record Dialog sssssssssesssssnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn nnmnnn nnmnnn nnen nnmnnn 260 Setting S Dilog sssi E a aaa aiaa AE OE 263 Source BOOM sriain aaa aaaea aaa a a e A A aaa aaa a eaa aaaea A E E aaaea i aa
174. ce 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 AdobeHex AdobeHexjs 6 1 Tester AsserttEqual Verfy that Text Moved to New Fol C Users Public Documents Rapise Samples AdobeHex AdobeHexjs 1 1 Tester AssertEqual Venfy that Label Paste SeS pb C Users Public Documents Rapise Samples Adobe Hex AdobeAlexjs 95 1 Tester Assert Equal Venty that Visible tue SeS OR C Users Public Documents Rapise Samples Adobe Hex AdobeHexjs 101 1 Tester Assert Equal Venty that Visiblestrue SeS OR C Users Public 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 CA Users Public Documents Rapise Samples AdobeAlex AdobeHlexjs 101 1 Tester Assert Equalf Verify that Visible true Double click on a message to go to the corresponding source line Widgets 2015 Inflectra Corporation Rapise User s Guide 217 e The text box Is a search box J The icons from left to right are Find Next Entry Copy Selected E Clear All Text D and Sele
175. charCodeAl index concal string sting indexOiseserchsting start i lastindexOfisesrchstrng start i match regexp replace regexOrString newstn seanch regex Y shoe begin end splitiseparstor Invst The chactt method mhuna the character at the speciied index in a Aning The indies of the first character is D and the index of the last character ina stnn 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 vi string input var number v2 So now Rapise will be able to display the list of available methods and properties 2015 Inflectra Corporation Rapise User s Guide 143 Vit Gi toExponential x toE xponentialls toFixed x Retume string toPrecision x l l toString radix The toExponentiall method converts a number into an exponential notation valueOi constructor ge MAX VALUE MIN_VALUE y NEGATIVE_INFINITY POSITIVE_INFINITY Another common case
176. ck 15 9 qv Step 5 User clicks at 14 16 in Text A SeS Text DoLClick 14 16 vy Step 6 User clicks at 156 256 in SeS Simulated DoLClick 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 e Rapise User Manual 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 G Start Page LESI Manual Steps nnt x wi MS Paint Test Stepld Description Expected Result Sample Data 0 Step 1 User starts up the MS Paint Application The application loads with a blank za x canvas T Step 2 User clicks the main Application menu EER SeS Application menu DoLClick 42 x 12 Step 3 User clicks the New entry SeS New DoeLClick 44 13 W Step 4 User clicks on Pencil oh SeS Pencil DoLClick 15 9 T Step 5 User clicks th
177. cks mouse movements keyboard inputs and clicks To end Analog Recording press CTRL Break e The _Simulated Drop down Menu Recording activity for Google Windows Internet Explorer Object Action Data Comment w q n 2 btn _ Simulated HIMLFlashObject Internet Explore AL Objet Internet Explore ed a ins Cancel i Finish Ctrl a 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 object 2015 Inflectra Corporation 24a Rapise User Manual 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 Trans
178. 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 2 MS Paint Test TR 000041 Overview Attachments Incidents v Details Release 1 0 0 0 Library System Release 1 v gt Estimated Duration hours Tester Name Fred Bloggs v Actual Duration 0 05 hours Test Set Execution Date 3 31 2015 1 54 11 PM Test Case TC000034 Execution Status Failed Build None v Test Run Type Manual Web Browser PeaseSeet vy Operating System Please Select 0 T Notes Font v sze BZ U 828 ee ke epneomf 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 Manual Test Steps TC000034 TS00D045 RS000084 User starts up the MS The spplicaton loads with a blank Paint Application canvas RS000085 User clicks the main EER SeS TC0O00034 TS000046 Applicaton menu Application_menu DoLClick 42 12 RS0000286 User clicks the New SeSi New DoLClick 44 13 TCOD0034 TS000047 entry RSOO0087 User clicks on Pencil m 5 SeS Pencil DoLClick 15 9 TCO0D0034 TSa0Da48 RSOO0D8S User clicks the Text
179. ct All Text Bi 2 5 10 Find Text dialog Screenshot Find and Replace gt Find g Replace Find what Look in Current Document Find options Match case Include sub folders Match whole word Include hidden Use Standard Search 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 gh 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 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 zis Rapise User Manual 2 5 11 Image Capture Screenshot ia Draw Tools Untitled File Edit Draw Help inflectra Products Solutions ideas Partners Support About Us swa ee w wW I ae wo a _ w me hae we ajs SIU CITES 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 c
180. cuments My Rapise Tests Auto Test 1 Auto Test L sstest C A Users adam sandman Documents My Rapise Tests REST Test Project REST Test Pre C Temp Rapiselests ECF_AutoProjectBackup DO NOT DELETE ECF_AutoProjectBacku C Users adam sandman Documents My Rapise Tests Spirateam v4 0 REST API Testit C ProgramData Documents Rapise Samples WebServicesREST WebServicesREST sste C Users Public Documents Rapise Samples Usinglnclude UsingInclude sstest Step 3 Navigate to the desired path using the button on the Create New Test dialog Leave the Use Methodology as Basic for now Press the Create button H Create New Test Please specify the name of the new test Specify the folder where this test should be created CAUsers adam sandman Documents My Rapise Tests CA Users adamsandman Documents My Rapise Tests TwoDialogsTest TwoDialogsTestsstest Specify methodology Basic Manual Scripting Mode Rapise supports multiple testing methodologies Select one to be used for newly created test mae You will now see the following 2015 Inflectra Corporation Rapise User s Guide 25 IR da kd nA Rapise 2 1 3 33 C Usersiadam sandman Documents My Rapise Tests TwoDia TwoDialogsTest ss o p x E o yy Open Open Test from Spira No Debugging i They 4 J Object Mgr 2 Search Help Gib Start Page Ae Save ty Spira Properties Level 1 Minimal X Helpindex S Spira
181. d 2015 Inflectra Corporation Rapise User s Guide 297 11 The Rapise screen will now be restored and will have placed focus in the editor 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 Rela
182. d 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 146 Rapise User Manual Use the GetCustomString method to retrieve a custom string s value See the example below var factory new ActiveXObject Rapise Test Test Val test Lactory LoadrPromPile Global GetFullPath UsingCuslomsStrings sstest Var BRUIDS test Gercustometcring Bugib var TestID test GetCustomString TestID See Also e NameValue Collection Editor Dialog e There is a sample test called UsingCustomStrings 2 4 6 3 2 MbUnit Purpose SeSMbuUnit 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 gallio org e To install SeSMbUnit open the following directory C Program Files Inflectra Rapise Extensions UnitTesting 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 SesMeUnic MbUnit uses the class attribute Test to identify test methods The corresponding attribute for SeSMbUnit is SeSMbUnitTest
183. dData AUTIOS gvdyymxgyzrigqdfviylapawjoyd 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 devices 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 1 Successtuly connected to P http adams imac corp inflectra com 4723 wd hub ca 2015 Inflectra Corporation Rapise User s Guide 159 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 application specified in th
184. dent Description B Z U A Arial A AY BSS ja was trying to creste a new book in the system and it displayed sn error message Type Bug v Detected By Fred Bloggs X Owned By z None x Priority None x Severity None x Detected Release None Resolved Release None x Verified Release None z 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 222 Rapise User Manual 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 critical 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 oomments Add New Comment 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 l m Start Date Select a date fis End Date Select a date 1
185. der 3scdko3S 3 0f ran eworke lt f lex conf ig xnl C2 He lloPlex HWelloPlex sawf 181661 hijbes ie sHe lloPlex _ 5 Test the application by opening C HelloFlex HelloHex html in Internet Explorer 2015 Inflectra Corporation Rapise User s Guide 35 TA S HelloFlex Windows Internet pls Hello Flex Button CTET T emaer Mar Rice 7 Enable HelloFlex Application for Testing To make HelloFlex application testable by Rapise you need to link it with automation libraries Link HelloFlex with Necessary Libraries For Flex Builder 3 x recompile the HelloFlex application using the following command line that links automation swec and automation_agent 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 swc from Flash Builder 4 x and FlexAdapter 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
186. 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 2015 Inflectra Corporation 168 Rapise User Manual 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 igi E Disconnect CJ Page Source I Select Profile android nexus7 v Discovery Mode 4 5 kB GoTo Url F Edit Profiles Select Context NATIVE_APP X Get Snapshot r Ctrl G Test Locator Connection Device Profile Context 4 0 android widget FrameLayout 0 0 800 1205 4 Calculated g a 4 0 android view View 0 0 800 1205 Automation gt 0 android widget LinearLayout 0 33 300 108 id ee AUTAndroid gt 1 androtd widget FrameLay
187. dget FrameLayout 0 33 800 108 0 android view View 0 33 800 108 0 android widget LinearLayout 0 33 158 108 El 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 800 1205 E 0 android widget LinearLayout 0 108 800 1205 0 android widget TextView 21 129 779 158 1 android widget EditText 21 15817739 276 2 android widget TextView 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 Select Profile Edit Profiles 4 Calculated Automation Id IndexInParent TagName Text Title XPath Layout Height Width X Properties checkable checked clickable enabled focusable focused scrollable selected texi Rapise User s Guide Rapise Spy android nexus7 X Recording Mode Select Context NATIVE_APP X Profile Context com inflectra autandroid id edit_Usen 1 android widget Edit Text sone Name 1 android widget Edit Text 21 15817 android widaet Frame Layout 1 ang 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
188. dgets 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 Rapise User s Guide 263 R Select an Application to Record Full path to application C Users Public Documents Rapise Samples Sample T M sampleAT M exe ieg cwindows system3 calc exe Use working directory Cancel e Path drop down list If the program you would like to record is 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 Scre
189. ding sei aA ee E cena ial A eee en Ai ce 82 ADSOlULE AMalOGiINGC ONGING 22tetarccoes acre su0h dot aident o 2s suded poeta Meneuened Miata Reeareueedee ees 84 Relative Analog TReECOrGING Sener acct cle he Sy sles Lt etisalat ne asl ae 85 Maed fh 6 oe Ne weeer eee nnn ae eae eee eee eee eee ee eae ree eee ee eer ee eee eee ee 86 OBJECTED aS Seni ah sh a a ce eae 87 CUSO EID Ale oann na scarce enone tan ede A chee near geiaa nate ese a 89 PNGUIONS Bauer esha ee Oe a ee a ee ae eal eel ee as Sac ate 90 WRITIDIG TRE COMINGS s cerccoteessecssenearcies este cndcataneaaceotveane os a a N 91 DISCS Oy ares chee ee eee E heAe S 92 PROCES SIDIOM WSU ODY oiii race ad cae et gas enacted ont nena oees dentate ede Mees eter 94 DAVAO hte el ese tle a i al eed ae ets 94 38 8 opie 6 aR tar ene ae ts eee er eee a eee ae ere ee ea eee eee eas cen eet 95 Managed CNET SOY circ Reece a ec a a Oe er ee ele asa 97 WPAN U Ya g 211 019 SOV Gaemee rine Meee anne Me ete ere wee OREO EMER Orie Rr tc ree Ree Ren teeter eer ce ene nce errant eee N 97 NNGDSSDY keepers i eee a ea oe A hal eee 98 ODECENANA GE ammeter ener er Mena er ene ee one er ee ane eee een ee ete ener ete ene eect een Cree eter ee 103 PlayDaCK vissar a A aA a aa A Ea AA AEA Ara EEE EANA aA EA araa 112 CONTAE EE a E A re ee eee eer eee eee ee 113 OBJEC gl Eo ey Ca gare eure ree Merrett DRT a ee ee eee ee ee eee eee 114 AUTOM ale Reporting irera ies saves aaa Oaa Aaaa aa a aa aaa aa aa
190. ding 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 s Guide tet 5 Executing MS Paint Test Ee MS Paint Test gt EB Z U A Arial A710 A Yr Blas ijl m SS SS Ste c E A Biocked Coution Fails 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 BaS i 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
191. 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 198 Rapise User Manual ito ocalhost s para Library Information System Tesi Case Folders 4 Library information System aj Regression Tests e 9 Scenano Tests G Common Tests Hare Repository Path A3 Ability to cresle new book CresiehNewbook Crestele Book se A3 Abhity to edil ecishng book Chick bo view AJ Ability bo create new author Click to view AJ Ability te edi exishng author r Click bo view Aj Ability to reassign book lo different suitor 1 Spira Hew TestTiSous New Local Path read onby C iTempiFapiseTests Spira New Test 1 Spira New Test sstest Load Synchronize Le 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 Rapise User s Guide 199 Synchronize Files Fides To Upload File Hame Acton Fath Spir
192. e 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 206 Rapise User Manual notifications The number of notifications skipped is printed to the right of the word Skip 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 Accessibility is described here http msdn microsoft com en us magazine cc301312 aspx 2 5 2 Add Web Service Dialog Screenshot 2 Add New Web Service This wizard will create a new web service definition file inside the current test WyRest best rest CA Useri 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 o
193. e then DOM Element pane shows internal ID of an element This ID is purely internal to Rapise and is not part of the HTML web page or web application 2 6 Howlos This section focuses on specific tasks that a Rapise user might want to accomplish 2015 Inflectra Corporation 292 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 f i a Open ee Open Test from Spira Y Save As V2 Manual Steps Save W SavetoSpira uc 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 E lt Rapase 2 1 5 33 C Users adam sandman Documents My Rapise Tests Spira New Testl Recent Tests Recent Tests Ci Create From Spira Manual Test C Wsers adam sandman Documents My Rapise Tests Spara New Testl Spira New Test sstest _ New Test R Create a new Test CAUseriadamsandman Documents My Rapise Tests Web Test 1 Web Tes
194. e DoSeect Science Fiction Pass Internet Explorer HTML Returned Value true 0 Assert 11 47 16 186 ctl0O MainContent btnSubmit DoClick Pass Internet Explorer HTML Returned Value true 0 Test Files Settings Object Tree Assert 11 47 16 654 Fallure in Test Fail Internet Explorer HTML 0 ee Test Fail sati ee Outp ul N J9 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 Pi n Errors Find Resul NU infle orporg For more information on the report see Automated Reporting 2 3 4 Tutorial Windows Testing This section outlines 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 Rapise User s Guide 23 at Inflectra Rar is a WA A kk oe aia 3 mp Please enter your name Please enter someone else s name summary a 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 s
195. e 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 application 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 150 Rapi
196. e Text tool A SeS Text Dol Click 14 16 1 Step 6 clicks at 156 256 in the canvas 4 o 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 g 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 SpiraRepositoryy MS Paint Test TCH Remote Folder Root Folder MS Paint Test TCH 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 Rapise User s Guide e ti Start Page CES Manual Steps nmi gt x MS Paint Test Stepld Description Expected Result Sample Data TS 47 WR i Step 4 User clicks on Pencil of SeS Pencil DoLClick 15 9 TS 48 jStep5 User clicks the Text
197. e Settings ME O Advanced E Tag TAAdminWrappers S ample Beautiivoaveddbyje True Cachelbjects False Commandinterval 1000 CommandLine Customs tings Collection lterationsCount 1 Metadata T admin rappers S ample Methodology Basic ObjectLookupAatter 500 ObjectLookupater 10 ObjectsPath CrossBrowser_objects 3 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 Rapise User s Guide 205 e Play Execute selected sub test e Record Start recording into selected sub test e Save Save options of a sub test e Show Objects Show objects form a sub test in the Object Tree e Delete Remove reference to a sub test from its parent test Dialogs Views and Menus 2 5 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 Hind Aecessihle Event Aac ROLE SYSTEM WINDOW O00 Oe O 00d51 Obie Type 0205347 000 EVENT_OBJECT_SHO W EVENT OBJECT LOCATIONEHSNGE ROLE_SYSTEM_WINDOW ROLE SY STEM_CARET invisible Us0S 321 000 EVENT OBJECT HIDE ROLE SY STEM_CARET finvisible EVENT OBJECT DESTROY WW Ignore Mouse Mov
198. e User s Guide 125 Usage See the example below function Test 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 0 Description Combines with whatever character sub expression precedes it to represent 0 or 1 occurrences of that character sub expression Combines with whatever character sub expression precedes it to represent O or more occurrences of that character sub expression Combines with whatever character sub expression precedes it to represent 1 or more occurrences of that character sub expression Any arbitrary character Denotes a choice between two strings Denotes a sub expression Denotes one character chosen from all the characters with the brackets You can use a hyphen to denote a range 2015 Inflectra Corporation eval g_helper Include Global GetFullPath myfunctions js Examples a describes the set p a a describes the set aaa adda ae a aa aaaaa aaaaa a describes the set aaaa aaaaa ta
199. e Web Test 1 TC42 Conf Copy Objectto the Right F5 Remove from Destination Ctrl D 5 Copy All to Destination Source ID Destination a Log_ln Wsename__ Password _ cil00_ Gook_Management Amsterdam Log Out Hound of the Bas Ee a 1 otal 1 1 el L ick 1 1 rick Then click on the Copy Object to the Right F5 icon in the toolbar This will copy the object from the source to the destination 2015 Inflectra Corporation no Rapise User Manual dd Object Manager SOUT Destination C SpiraRepository Rapise Web Demo TC8e Rapi S C SpiraRepesitery Conference Web Test 1 1C42 Cont Copy Object tothe Right F5 Remove from Destination Ctrl D Copy Allto Destination Source ID Destination Log In Usemame_ Password_ cil00_ Gook_Management Amsterdam Log Out Hound of the _ Bas 1 nad 1 m 1 aai ick 1 pgi 1 rick a amy n yam em m am army a i ee a ee You can tell that the object has been copied because the not equals sign changes to the equals option Conversely to remove an object e g Hound of the Baskervilles from the destination simply select the row 2015 Inflectra Corporation Rapise User s Guide 11 a Object Manager __Destinstion _ _C SpiraRepository Rarise Web Demo 1 TC88 Rapi_ _ C SpiraRepository Conference Web Test 1 TC42 Conf Copy Object to
200. e displayed during playback 2015 Inflectra Corporation 238 Rapise User Manual 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 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 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 RecentTests The maximum number of recent files displayed in the Recent Tests list To see the Recent Tests list open the Application Menu Recent Tests khi Create From Spira Manual Test _ New Test i Creote o new Test Open Openan existing Test Choen File Save Save the ciment fest Choen Test from Sora save to Spura Save Aa a 7 gt tove current Test As Erit CALUL Rapise 2 1 3 33 CA ProgramData Documents Rapise Samples Create Recent Tests C ProgramData Documents Rapise Samples CresteNewBook CresteNewBook cstest CAProgramData Documents Rapise Samples sampled Thi SampleATM sstest C Users adam sandman Documents My Rapise Tests Auto Test Auto Test L
201. e following sequence is executed DoActionC gt DoActionB 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 92 Rapise User Manual Note that the Script Recorder only has knowledge of four functions and two data structures function Test function Testlnit function TestFinish function TestPrepare array g_load_libraries Map saved_script_objects Oo rWND 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 o
202. e mobile profile on the screen Get Snapshot button to display the F ap Spy ga Disconnect CJ Page Source Select Profile iPhone4 Discovery Mode _ uD GoTo Url A Edit Profiles Select Context X Get Snapshot Ctrl G Test Locator Connection Device Profile text 4 0 UlAApplication 0 20 320 480 4 Calculated ee0c 20 izon hal gt 0 UlAWindow 0 0 320 480 Automation UlATarget local Target front MostApr varizo 3 04 PM b 1 UlAWindow 0 0 320 480 d AUT IndexinParer i AUTIOS TagName UlAApplication Tex AUTIOS Title 0 UlAApplication 0 201 320 480 Master Detail Table View XPath U AApplication 1 Table view with items 4 Layout Height 460 Basic Controls Width 32l Button TextField Label Picker Switch Slider Image Advanced Controls Properties hint WebView ScrollView TextView Search TabBar Pagel labe AUT la AUT 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 ar hapise Py Ee gt Disconnect CI Page Source Select Profile iPhone4 X Discovery Mode kB GoTo Url F Edit Profiles Select Context X Get Snapshot Ctrl G Test Locator Connection Device Profile Context 4 0 UlAApplication 0 20 320 480 4 Calculated asooo a i a 4 4 0
203. e test script Put these functions either in lt estName gt js or lt TestName gt user s e Testinit This 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 2015 Inflectra Corporation 122 Rapise User Manual 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 2 4 4 3 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 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
204. e 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 Test Files nE Lit Start Create File _ Create Spreadsheet 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 ES Rapise User Manual R Select a file to add into test ele Rapise Samples TwoDialogs Organize New folder Documents library TwoDialogs rm Samples a Adobe d Analog i CrossBr P Maine a oe W TwoDialogs Arrange by Folder Y ai Extensit es TwoDtalogs exe uh Java d Libraryl p Manag Sample oh Sample Simulat J TwoDia vine a File name Now you hawe the executable as a part of your test files set Test Files n 4 ga Test b gal Reports b go 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 S
205. eate 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 can be played back by a computer 2015 Inflectra Corporation Rapise User s Guide 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 Ley Reload mA Add Step E View in Browser C Release a af Record Screenshots LS k i E5 Save Local 9 Remove Step w3 New Incident A Whole Window Save Execute Record Hjt Manual Manual With Cursor Spira Editor External Tools Playback Recording The test step list will initially be empty td Start Page MS Paint Test TC34 js Wy Manual Steps nnt 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 s
206. ect 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 O O O O O O O O O OO OOOQOO 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 O O O O 000 0 DOM GWT DOM GWT Ext DOM SmartGWT DOM YUI DOM jQuery Ul HTML 5 DevExpress Infragistics 2015 Inflectra Corporation Rapise User Manual o Telerik o ActiveX ComponentOne o SyncFusion 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 H
207. ective 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 applied 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 b
208. ed 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 s Guide Recording Activity tor Inflectra Library Information System Windows Internet Explorer Finish Ctrl 3 Transparent You ll notice that the RA dialog has a grid As you interact with the AUT your actions will be listed 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
209. ed 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 246 Rapise User Manual Roae apise 2 1 3 3 oara ata Doc sts iRapise Samp steNew Book S00k sstest za gt P x CAP Data Do ts Rapise Sam A F Merge Cells Collapse rogramData Documents Rapise Samples 4 5 gt X a s dad Merg ma olla Plain Hierarchical d Save Layout Expand Export Export Choose Images to Excel toPDF Reset Layout Columns tenza l Gad Start Page 8 CraateNewBook js Fi CreateNewBook userjs i CreateNewBook_2014 09 04_11 47 up x 4 w Test gt Gad Reports Drag a column header here to group by that column 4 ad Scripts Type Start Name Status Browser Comment Iteration Fj CreateNewBook js 8 CreateNewBook objec iw amp z 5 o at 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 In
210. ed_script_objects Balance Verse won 2 0 Object type SesSimulared object_name Transaction Completed Successfully n nAccount 00000005 Balance 1046 00 vtobJject elass So oka ue y Mob ect irole f VROLE TS STEM SiATIPOTRAT object_text Transaction Completed Successfully n nAccount 00000005 Balance 1046 00 locations Y VoCawoers tame 2 bec Lon V lOGat ikon A vocat omne tA ee a window name YSmarteATMY twindow elass ToO section omitted for brevity 2015 Inflectra Corporation 266 Rapise User Manual Objects that were learned in previous recordings are affected by the value of BeautifySavedObjects False False Include in Report False Widget Only False e Capture Execution Set this to True if you want to save screen images for each recognized object during playback e Capture 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 bui
211. el AccessibleRole Default H autTabControl System Windows Forms TabContral ActiveContral treeViewNoCB system Windows Forms TreeView isha autLabel System Windows Forms Label sonia 3 mE Allow Transparency False treeView B System Windows Forms TreeView a Top Left autEdit System Windows Forms TextBox AutoScale False radio2 System Windows Forms Radio Button z Auto Scale Base Size 513 hi Features The Managed Spy has the following features 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 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 o Rapise User Manual e g Windows Presentation Framework Silverlight or Java s Standard Widget Toolkit running on Windows Screenshot J Start Tracking
212. eload 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 Test Edit Debug lel Save H 64 Cut 1 Undo Courier New 10 7 Toggle Breakpoint Y Saves 3 Copy Redo Paste 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 Save Wy 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 f gt A Cut EE Lo Paste di 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 2015 Inflectra Corporation Rapise User s Guide 255 clipboard e The Copy button Shortcut CTRL C copies whatever text you have highlighted to the clipboard History Undo Redo l 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 i Replace Search e The above text box is a search box d Pressing the find button opens the Find
213. en 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 Ctrl 4 on the Recording Activity dialog Recording Actrity for Two Dialogs Sample Object Action Data Comment Fress Chrl Break to Stop Analog Recording Tour mouse and keyboard activity is now beng recorded Transparent 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 296 Rapise User Manual A minimized window will be created that indicates that analog recording is in progress and allowing you to stop the recording Analog Recording fo I mE To Finish recordingiplayback 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 in
214. enshot 2015 Inflectra Corporation 264 Rapise User Manual CommandLine Entry Point Test TestParams 3 items Execution Methodology H Recording O Settings Metadata C Temp Rapise Tests Create Ne Objects Path CreateNew Book objects js ReportPath CreateNew Book tm Script Path CreateNew Book js TestPath C 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 O 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 Execution E Execution Cachelbyects False Command nterval 100 lterationsLount 1 ObjectLookupAttenptinterval 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 IterationsCount Your test script will be executed this many times consecutively during Playback 2015 Inflectra Corporation Rapise User s Guide 265 e ObjectLookupAttempitinterval This is the time Rapise will wait between attempts to locate an object e
215. ep 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 The icon will move the highlighted test step one position higher in the current manual test e The 4 icon will move the highlighted test step one position lower in the current manual test External Tools View in Browser ai 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 Release Execute Manual Playback 2015 Inflectra Corporation 258 Rapise User Manual e The Execute Manual icon will execute the current manual test When you click the Execute Manual icon you will be asked to 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 De Y Release 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 Iterati
216. eployment Target Devices Universal Main Interface Main i Device Orientation Portrait Upside Down Landscape Left 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 326 Rapise User Manual auTiav Qj Denis s iPhone O m 4 A Gz DP TI p iPad 2 T iPad Air M images iPad Retina me Text png U iPhone 4s h ae iPhone 5 bags iPhone 5s a ListView png jhe Dp iPhone 6 Plus week i iPhone 6 A ComboBox png fe ae Button png Dp Resizable iPad y fi auTIOS p Resizable iPhone h AppDelegate h Once you have selected the simulated 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 sna 8 P E AUTIOS gt Wf iPhone 5s O m A E AUTIOS 2 targets IOS SDK 8 1 Y P images a Text png Y Identity amp Tre png Assuming that this is successful you will see the AUTIOS running in the iOS Simulator 2015 Inflectra Corporation Rapise User s Guide 327 Carrier 1 57 PM m Edit AUT Items T Button al Text Table Combo Box Contents If you are
217. ernal Debugger option When you Playback your test script with a 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 Rapise User s Guide 135 G Start Page B WebTest1is 4 W Object Tree C Users adam san F7 Script Steps gt e nflectra Library Informator Pesseteste Script Steps FESTFES SITE FTE function Test gt C Library Information System BREACH SER6 A A does Q var success Database DoAttach Provider SQLOLEDB 1 Integrated Security SSPI Persist Security Info False Initial Catal 0 User Functions _ a gt r Tester Assert 5uccessfully Connected success fe User Variables var count Database GetRowCount Tester Message count Loop through the rows While Database DoSequential var projectiId 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 de scription defined nce ace 2 nnd d ned 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 c
218. ero_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 FlexActions js e behavior array of behavor 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 p
219. ervice 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 provide 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 Heweook Name s A Chris mas Carol newBook AuthorId 2 newBook GenreId 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 Assertioqual Book count matches 15 books 7lengt You should now have the following code 2015 Inflectra Corporation 52 Rapise User Manual 2 3 1 function Test i SeS LibraryInformationsSystem Get Session DoExecute null var sessionId S5e5 LibraryInformationsystem Get Session GetResponseBodyObject Tester Message sessionid se5 LibraryInformationsystem Get Books DoExecute i session id sessionid var books Se5 LibraryiInformationsystem Get Books GetResponseBodyObject Tester AssertEqual
220. est CS5 Learn Locators When you click Test CSS it will display all of the DOM elements that match the query Test Results 4 Locator CSS table td style found 4 lt td style padding right 50px gt lt td gt lt td style padding night 5Opoc gt lt td gt lt td style vertical align top gt lt td gt lt td style vertical alian top gt lt td gt You can now refine the query to only find the items you want to test In either case if you can adjust the query to only match a single element you can then click the appropriate Learn button next to the Test XPath or Test CSS buttons That will learn the specified query as a new object that can be scripted against in Rapise This is very useful if you want to dynamically select an object based on its content rather than a hard coded ID or position 2015 Inflectra Corporation Rapise User s Guide 103 In addition in the test results vew when you click on a result e The right click popup menu is the same as for DOM Tree if type of the result is a DOM Element e lf the result is simple text then only Copy is available which copies the text e Clicking on a DOM element in the results list opens it in DOM Element pane and also selects it in the DOM Tree pane 2 4 1 8 Object Manager 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
221. etected By Fred Bloggs v Priority 2 High Severity None X Detected Release 1 0 0 0 Library System Release 1 X Notes B ZU A Arial A1 7 AW HSS sS 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 s Guide Ai MS Paint Test WBZ U A Aral A10 Aly My BaS j c m l M Step 8 E E oeeo cation Erren J 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 WBZ U A Aral A10 Aly My lel izi c Add Attachment Log Incident IN 71 j 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
222. f 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 m SARR 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 Recordin 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 select 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 Rapise User s Guide 93 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 to the Spy icon in the Tools ribbon Mobile Object UlAutomation Object a Web Object There are five types of Spy available 1 Accessible This is used to inspect applications that expose
223. 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 Nas Ea Ll Libraryintormation System rest lt Get Session 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 aml 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 Rapise User s Guide Start Page FH Diets a Libraryinformationsystemsrest REST Raquest a SAA Name Get_Books fa E Libraryinjormabon System rest Libranyingonnaten yemes Get_Session Get_Books Method GET w http Aves librarnanformatonsysiem org Seraces Resi Senice svc sessaon Sand Credentials hibranan E Herders a Narre Value Operators Accept application son Content Type Spolicstion jaan x Endy 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
224. flectra Corporation 26 Rapise User Manual 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 Learn Cirl 2 Sm Spy Ctrl 5 Pick Object Fause _Simulated Cancel Finish Ctrl 3 The AUT will be brought to the foreground and Rapise will 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 Rapise User s Guide l Inflectra Rapise Two Dialogs Sample
225. from a test that you have already written Screenshot B Object Manager Destination eb Demo 1 7C8s Rapise Web Demo TEES objects js i Copy Object to the Right FS Remove from Destination Ctrl D Copy All to Destination Source ID Destination How to Open Click on the Object Mgr icon in the main Rapise Test Ribbon This will display the object manager screen for the current test as illustrated in the screenshot above Choosing Files to Merge In the example above we have opened up a test case that has some objects Now we need to open up 2015 Inflectra Corporation 104 Rapise User Manual another test that also has some objects To do this click on the button to the right of the Destination text box to open up a Rapise test object file objects 4s da Object Manager Source C SpiraRepository Rapise Web Demo 1 TC8E Rapi Copy Object to the Right F3 2 Remove from Destination Ctrl D Copy All to Destination ource ID Destination This will then bring up the File selection dialog box where you can choose which other object file to open Ja Choose left file Orgamce New folder igi Documents library E Adobefled CpestehewEoob b AdobeFlest A AnalagRecerder Ae CrossBrowser J Dortdet20 D Extensibility p FarPaint d HTML ina P davaSWT d Query A Uibranyinformationsystem d CresteMevetiathor il gt LibraryinformationSystem CreateNew ock lt
226. gram 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 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 2015 Inflectra Corporation Rapise User s Guide If 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 Verifying Object Properties e Writing to the Report 2 4 4 8 Data Dr
227. gression 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 was 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 consis
228. gth 113 Cache Control private Content Type applicationisml charset utt 8 Date Tue 18 Jun 2013 20 01 05 GMT Set Cookie ASP NET_Sessionid acbhexcazumbo4tvine Server Microsoft IIS 7 0 AspNet Version 40 30319 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 Rapise User s Guide 45 Pace So hee LibraryinformationSystem rest REST Request Name Get_Session Methad GET http www libraryinformationsystem org Services RestService_svc session as Credentials librarian Body Response Header Response Body Formatted XML lt stnng xmins hiip schemas microsott com 2003 10 Senalization gt e46ee579 fdef 4ec1 9391 2deb3 7 0924 e lt sting gt x 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
229. h Looke i Find options Match case Include sub folders Match whole word Include hidden Look at these file types js Use Standard Search Find Next Find All 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 ae Rapise User Manual Directory path Use the Directory Path text box to specify the directory in which to search The Directory path text box cannot be accessed and is ignored if the Test files checkbox is checked 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 lf 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 Repla
230. h 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 The 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 Open E Open Test from Spira Run with Internal Debu a i U8 Object Mgr gt amp Search Help G Start Page id Users E 7 Mini D i 5 Spira Proper Level 1 Minimal 4 HelpIndex S Spira Dashboard Sav Record Learn Options Find in N Save to Spira 5 Web Sen 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 Rapise User s Guide 189 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 Password Defau
231. h2 gt lt h2 gt 4 lt div style margin right 150px gt b lt p gt lt p gt lt p gt lt p gt b lt p gt lt p gt lt br gt lt br gt gt lt table gt lt table gt b lt p gt lt p gt ch2 gt lt h2 gt Test Results pr Recording Activity for Inflectra Library Information System Internet Explorer lt Dr gt lt or gt lt div class clear gt lt div gt Object Action Data Comment lt div class footer gt lt div gt lt script type text javascript gt lt script gt The Web Spy dialog shows a hierarchical representation of the HTML DOM elements that make up the web application being tested as well as the properties of the currently selected object You can select the object by clicking on the object hierarchy displayed to the left The properties displayed are categorized into different types that are described below The Web Spy also lets you visually highlight an item in the web browser from the object hierarchy and also the reverse selecting an object in the hierarchy by clicking on its representation in the web browser Spy Toolbar The Web Spy toolbar provides the following tools 3p real S Track Ctrl T a My Test XPath Learn 9 Highlighting Mode oe Get Snapshot Options Test CSS Learn Ctrl G ani Browser Object Tools Locators A e Get Snapshot Ctrl G Clicking on this command will refresh the contents of the DOM Tree This should be done whe
232. he 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 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 Ug Start Page 4 Manual Steps _rmi w MS Paint Test Stepld Description pA e Result Sample Data TS 47 L w Step 4 User clicks on Pencil ek SeS Pencil DoLClick 15 9 TS 48 E T Step 5 User clicks the Text tool A SeS Text DoLClick 14 16 TS 49 w Step 6 User clicks at 156 256 in the canvas SeS Simulated Dol Click 156 256 TS 50 i Step 7 Enters text This is some text This is some text SeS Text1 DoSetText This is some TS 51 text r 17 Step 8 User clicks on the Bold button e 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 SeS Bold Del Click 11 14 180 Rapise User Ma
233. he repository local directory used to store the working copy of the Rapise test Click Create to confirm Synchronize Files Fies To Upload Selected File Name Acon Fath vf Spira Hew Test ps Upload L Users adam saniman Documents My Aapse este Spira New best Spira New Test objects i Upload Ciillsersiadem sendman Documents My Aapse Tests Soirs New Test Spira New Test1 sstest Upload CUsersiadam sandmran Documents My Rapise Tests Spira New Testi Spira Hew Tesi sstestus Upload C Usersiadam sandman Documents My Aapse Tests Spira New Test Spira New Test user js Lipoad C Users adam sendran Documents My Aapse Tests Spire Wew Test Repository jaon Downoad C Users adam sandman DocumentsiMy Rapise Tests Spira New Test Extensions of files fo exchide fap itp log user omid 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 196 Rapise User Manual oe Uploading to Spiralest Server Uploading If an error occurs during the save a message box will be displayed ot
234. heckpoints 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 Rapise User s Guide 201 Usage A checkpoint can be added in two ways 1 during recording with the Verify Object Properties dialog or 2 by manually adding an 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 oubTest1 Scenariol using objects and functions from the Test SubT est2 Scenario 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 functi
235. here 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 Rapise User s Guide 220 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 dewce first Note that this capability 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 And
236. herwise 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 i Open gt Open Test from Spira a Run with Internal Debu f ga Object M J Search Help Gi Start Page p le pe p gt gr p ge W Save As G8 Spira Properties r Level 1 Minimal X 4 8 Help Index 5 Spira Dashboard Save Record Learn Play Options Find in z SW Saveto Spira cy Web Services Spy Files 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 Rapise User s Guide ac Load Synchronize t Garibi http localhost spara Propect Library Information System Test Case Folders Zz Library Informatenn System g Functions Test CE Regression Tests e Jj Scenano Tests aj Coren Tests Rieoasitony Fath Local Path read only Es 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
237. his 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 Rapise User s Guide os gy Start Tracking Ctri G Hq Js Jas panelO java awt Panel El Primary labelO java awtLabel Handle 7906 textAreal java awtTextArea Indexin Parent 0 list fjava awtList panel buttonl java awt Button 463120 El Secondary his ima accessibleContext java awt PanelSAccessibleAWT Panel Ed SA adv wtControls java awt Button alignmentX 05 checkbox ava awtCheckbox alignment 05 textField2 java awt TextField background java awt Colorfr 200 g 2270 b 255 cchoice2 java awt Choice component component Count 5 components Lava awt Component ct40F5 as Features The Java Spy has the following features 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 high
238. hoose 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 JAP file which allows integration with Unit Testing frameworks 5 Rapise tests can be invoked from MbUnit and NUnit tests DLL Testing Purpose You can create 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 dilly Shelikxecute oo l hessal tee p07 rai UserWrapeReqistver USHERS2Z DLL MessageboxA I Hssu res R L 3 UserWrap MessageBoxA null elapsed Time Elapsed ooon 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 Als
239. hot 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 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 Disconnect This option disconnects the Spy from the mobile device and ends the connection 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 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 treeview represented as an XML document Go to URL This will instruct the mobile device to navigate its b
240. hould be selected See below Library Description F Auto Detect library automatically NET AMET 1 1 2 0 3 0 3 5 with Accessility Internet Explorer HTML HTML DOM based recorder for Internet Explorer Firefox HTML HTML DOM based recorder for Mozilla Firefox Generic Generic library 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 16 Rapise User Manual 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 Path C Program Files amp 86 Microsoft Office Office Windows Sys VW OW 64 rundll3 exe C Windows Sys VW OW 64 rundll3 exe Adobe Photoshop CS3 Extended Untitled C Program Files 6 Adobe Adobe Photost C Program Files Dell TPad Apntex exe C Program Files Dell T Pad Apnt Ex exe 0 HelpAndSamples Microsoft Visual Studio C Program Files 6 Microsott Visual Studio Co Windows explorer exe Inflectra Library Information System Wind C Program Files Intemet Exploreriexplore es Menu 644 C Program Files amp 66 PRO Vonage PR J Msg 63624 C Windows Sys VW OW 64 rundll3 exe Tdm Notify 54 C Program Files Wave Systems Com Truster E Tutorial Record and Playback Mozilla Fire 48244 C Program Files amp 66 Mozilla Firefox
241. ibbon Report 2 5 25 REST Definition Editor Screenshot 2015 Inflectra Corporation Rapise User s Guide 247 SENEE LibraryinformationSystemrest Pawicua GEL Oats En SEE e Cre REST Request ES fea a Name Get_Books a LibrarylnformationSystem rest s N Get_Session Method GET httpJ www libraryinformationsystem org Services RestService svc book session_id session_id 7 Send Get Books Credentials librarian X Add_Book Headers a Name Value Operations Accept application json x Content Type application jison X Parameters Name Value Operations session_id 82499bec 37e4 4c64 820e a2d798ed1e84 Insertin URL Body v Response Header Response Body Formatted JSON Name Value Status Code 200 OK Content Length 2173 Cache Control private f D nntentTy me snnliestinn Senn pharect 2 j Purpose The REST Definition Editor allows you to edit REST web service definition files 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 2
242. ident a Whole Window Save i Execute Record a tn 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 tab 2015 Inflectra Corporation Rapise User s Guide 257 Spira a Reload g ial 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 GF Add St
243. ied 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 SpiraTest 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 Test Case in SpiraTest that the Rapise test will be associated with This is important because without being associated to a SpiraTest 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 Rapise User s Guide 193 amp Open E Open Test from Spira Run with Internal Debu gt Mm ty 4 44 Object Mgr Z Search Help Go Start Page W Save As EF Spira Properties he Level 1 Minimal Poet HelpIndex
244. ieeateaaeeca aa tea 135 RG AROOINS peracetic si te ee A A ee Ae 136 External DEBUGGER ete neeencantanataaioveneed 137 MCV DOS IY LEN CIS aceve Coheed earlier all i al ot yl Sa Oe etl oa 138 YME vO MING MIC iaescee echt ose tecesatc eee seca sendan O O 139 COGS ONIN sir etcetera A ase are Al Mee eet N 139 YAX HTS 16 4 8 6 Romper atin iter neo rr eee ee ier E Anne ee eer ete ee E a eee ee ee eee eee ee ee 140 COGS COMMISION cesses eesti ee ee ee eth he ah eee ae ate 141 Unit TS CMG aiiin aana aa aa Naaa aaa ahaa a aaa a a AAAA a Da Aaaa EDANA ANANA stems aaan 144 DLL FES ING aare a E A E E eee nea 144 CON TOSIN SUDO erais a a E a a er erent a re eee mere eee er cone 145 INGEG ration Witt rd Pary TOOS ea a at a A aa 145 CU tOM WING S eee A O tessa see oss te ateeceeennesceeene ces teeemean asa 145 NOW aA a cece ra ce As aes ra cr et lee 146 DO E A E N E E E E A E O O 147 TAP ROSU eina aaa a a E 148 Web Service Tes ting ea aa aaa aa aiaa a a aA AAA aa aaa a aAA AANO aAa aAa Oa AAAA Naa aaa E Aaaa 149 Testno RES T WED Services m ae a hae oe eee 150 Testing SOAP WED SENICE S aai ia cet eon ee nse eet e O a aetages es 154 MODUE TESNO airaa ra Oae EONA AAA eee Oca hs eal 154 APPIE B bc Sper E E E 155 ANGIO creas cet ee a ed a cect ete A A Sih eh ar Aili a 163 Manual TO SUING sisccescsicceeccetutc ciseiccsvadscstedenccassenss a Aa Aaaa a aa Aena aAA Aaaa aa eaaa aa AAA Aaa Eaa AEAN ARRERA EAA 173 Manual Recording asnasa stent at Gite tl
245. ies 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 6 Web Object This is used to inspect web applications using any of the supported web browsers It also allows you to dynamically query web pages using CSS or XPath and learn the results as objects 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 2015 Inflectra Corporation 276 Rapise User Manual Tracking Mode The Spy
246. ill 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 http www libraryinformationsystem org Services RestService svc session You should now have it populated as illustrated below EE Start Page 5 MyRestTestLjs Ll LibraryinformationSystem rest REST Request Name Get Session Method GET bttpowww libraryinformationsystem ong 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 Add Credentials button 2015 Inflectra Corporation aa Rapise User Manual Requests Object Tree Header Parameter Add Network Credential Enter librarian as both the username and password and click Add Now click the Send button and the request will get sent to the web service eet ee Oe ai e LibraryinformationSystem rest REST Request Name Get_Session Method GET http lwww libraryinformationsystem org Services RestService svc session n Credentials librarian x Body w Response Header Response Body Formatted XML Formatted AML Name Value Status Code 200 OK Content Len
247. imple 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 a Record Screenshots Z Whole Window Record Manual i 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 2015 Inflectra Corporation 176 Rapise User Manual Recording Activity for Untitled Paint Data Comment 47 11 User clicks at 37 11in Application menu 4 12 User clicks at 42 12 in Application menu 44 13 User clicks at 44 13 in New 15 9 User clicks at 15 9in Pencil 14 16 User clicks at 14 16 in Text LOlick 156 256 User clicks at 156 56 in SetText Thisis some Change text to This is some text LOlick 11 14 User clicks at 11 14 in Bald Verify Cirl 1 Learn Cirl 2 S Spy Ctrl 5 Pick Object Analog Ctrl 4 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 BE Home View Text M ht BERD OM I 5 copy laj Tm e A Paste be ll or C HS is m CLE a tae teo
248. ing code conflicts as we do not support user customizations However let us know if you 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 Login 2015 Inflectra Corporation 132 Rapise User Manual CreateBook g_book_name g_book_author g_book_genre j Logout The test function calls three scenarios that comprise the main test The scenarios themselves are JavaScript functions Lunetioen Logini Click on Log In 71889 Log In DoClick Set Text librarian in Username SeS Username_ DoSetText librarian Set Text librarian in Password SeS Password_ DoSetText librarian Click on at1l00SMainContentSLoginU serSLoginButtor SeS ct LOOSMainContent SLoginUserSLogi DoClick runetion Logout Click on Log Out Ses Log _Out
249. ingle 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 If at this point you do not understand what the application is supposed to do or the 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 button top left Choose the first option there New Test 2015 Inflectra Corporation 24 Rapise User Manual Recent Tests Recent Tests RI Create From Spira Manual Test hee Ts C ProgramData Documents Rapise Samples CreateNewBook CreateNewBook sstest jew Test R CA Userstadam sandman Documents My Rapise Tests Web Test 1 Web Test 1 sstest C Temp Smokelest SmokeTest Smokelest sstest C Users adam sandman Do
250. ink Dol ButtonLUpi p Change text to testi ges E4itbex De i Dol Click x y gg Q DEL OClickix y pe E adi Tais 2 iin 7 Chan Text to tesc nosh an i a T 4 g DoMButtonDown ange Tex az PSH TEGATDOX DO G DoMButionlipi r Advanced Rapise has built in code completion logic that lets it suggest the available list of functions for a specific 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 142 Rapise User Manual 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 Sart Page 8 Calculator ja iUas Records Learn button to begin test recording function Test j fon a aj apa i T Cha Al onde a i i
251. ins http schemas microsott com 2003 10 Senalization gt 6c8a3e1e edel 47d0 bead4 3 5604b91 75 lt sting gt Response Header Response Body Formatted JSON 62 499bec 3 e4 4cb4 820e aed I8cd 1284 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 ie l Ea 2s La Library Information System rest Get Session m 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
252. ion Rapise User s Guide 65 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 2 3 8 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 Spiralest 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 recording 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 Test Manual e ft Reload cy Add Step View in Browser C Release 7
253. irectory 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 Rapise User s Guide ot 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 behavior 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 tunchion DeAcr onc this BaseAction SesExXLendAction Wins Zzbucron DoAction DoAcr Tone SeScExtendActron Wins Buttont Dekct ion DoActionCc When DoAction is called for the Win32Button th
254. 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 function my func number patient index string patient name i patient _index Gi toExponential x toE xponerntialls toFimed x toPrecision x toString radix valueQOt y constructor MAS VALUE g gt MIN_VALUE NEGATIVE_INFINITY g POSITIVE_INFINITY A etums string The toE sponentiall 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 14a Rapise User Manual 2 4 6 Unit Testing 2 4 6 1 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 c
255. iven 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 function Test Poet Text Inflectra in g Ses Obj DosetText Iintlectra ff Clieck on DENG Seo4 OD52 jn DOC Lick O 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 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 example we will parameterize the Test function we created in step one EUNCEiOn Test function Logic searchterm
256. l Therefore if we 2015 Inflectra Corporation 304 Rapise User Manual want to refer to the OK object we will use SeS OK to refer to it 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 DOACT1 0n 4 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 FHHFFHFEEE EE EF function Test Goede brarles Generic Between the open and close brace add the following command S S 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
257. l Result Please enter the actual test result if it differs then click the appropriate button S5359 EB Z U A Aria A310 7 Aly My BES ii This section displays the details of the current test step and lets you enter in the observed actual result Description This displays the description of the action that the tester should carry out on the application being tested Expected Result This contains a description of the expected result if the application performs as expected Sample Data This optional field contains any sample data that should be used during testing 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 In addition you can click on the picture icon to add a screenshot or use one of the two buttons underneath Add Attachment this lets you choose a file from your local system and attach to the test result 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 Rapise User s Guide 225 Minimized Playback Dialog s 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 http www libraryinformationsystem
258. l et tie a el eed oN eo eel 174 Weal PAY DAG cerca etersnsecssceeatss teers ccacanet cacehaceavacue tee Gece saan sceteatores ou orens Seas oanecaeehavatee aden eceoesaeeanmepeeteas 179 Semik Manual TES ti ssa et e ee es er Aes he ee 186 Spiralest INTE OM ANON a aaa aaa aaa araa aaa aa aa eaaa aaea Aaaa Aa aaa a Aa aa aai aa aaa AEn aaide 187 C ECKDOINIS aaraa a a a e E E 200 Tests ANG SUD TeSUs a aaae a a aaea a aA aA aa OA EAA Naa a a AA ea aaea ONERA NEAR RAA 201 5 Dialogs Views and MenUS sisisi nae Aa a beveneetieediiesiew iced 205 Accessible EVENTS DOO a a a aa a a aa a Ea E a aa Eaa aa a ecto 205 Add Web Service Dial OG isea a e aaa a aad ea 206 Create New Test Dalgo a a A E Aa a 206 Create SUD TES t Dialog miiia a a aiae aa a 211 COEN VE a a a EE 212 Enter TINGE CRITERIA Tor DIQIOG eei a a a a aa aaa a aa 212 Errors Vie W eere a a aea ae e a a aaa a aea E aaa 214 FING and Replace DIGIOG sisirin a eee aaee aaa a A aare ae aias Eae Eoaea 215 UPVC RESURS VE WW a a a a Eaa a aaaea 216 PINA TextAd SBeeeesereereenere aaa aE Aa raan 217 mage Capture roria a E A a a a 218 INGCTG OREO G QING iseis a A a aeaea a as ESE 220 Mantial PAV DAO a aO 223 Mandal TES BANOR cccscscecctccecsscs cectceces sascha aA aaa A wastes ea a 225 M bile Senings Dial OG siria a E a aa a aO 227 Mobile Test GoCatonr DiglOG rss a a Aaaa ae erates 231 2015 Inflectra Corporation 4 Rapise User Manual NameValue Collection Editor Dialog ccc
259. lAApplication 0 20 320 480 Calculated 68660 4 E 0 UlAWindow 0 0 320 480 Automation UlATarget local Target front Most Ape 2 Verizon 4 12 58 PM 0 UIANavigationBar 0 20 320 64 id Basic Controls Button TextField Lak E 1 UIATableView 0 0 320 480 indexinParent 0 AUTiOS 0 UIATableCell 0 64 320 108 1 UlATableCell 0 108320 152 0 UlAStatic Texct 0 108 320 152 2 UlATableCell 0 152 320 196 2 UlAToolbar 0 480 320 524 E 1 UlAWindow0 0 320 480 TagName Text Title XPath Layout Height Width T Properties hint label name value LAStatic Text Basic Controls Button TextField Lak 0 UlAStatic Text 0 1087 320 152 LiAApplication 1 UlAWindow 1 ty Basic Controls Button TextField Lak Basic Controls Button TextField Lak 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 gta E Disconnect A Go To Url Get Snapshot Learn Ctrl G Object Test Locator Connection Device 0 UlAApplication 0 20 320 480 0 UlAWindow 0 0 320 480 1 UlAWindow 0 0 320 4
260. lative Anrialog Rec rding ee ionene orenean tcc EEA AA E E AAEE AAAA 297 LG arn an ODIC GL iiris iroso aa a aea aa aaaeaii 299 De al W ith a Simulated OD iS Cinsa aa E E E a 305 T WHO CHINOIOOIC Skaran iri cee eee eae ent Mate eee carause ate tac neta 308 AdODE FIEX Qleiten a fie ree tS Sen rsa le ins eS ee ee ee eee ree ee ae eee eee sree tetas eneeeeeer 308 Cross Browser TS UNG aninion a ven ah ct taste a co ceinin vensmactentaertenceeds 310 QU Framework ionn aaa aa Aa aa a aE EE 312 Java AWT SWING ai 5 acca a A aae Sc wets a wna nev ana seen cae baba na cha E Ea 313 Mophie TESUNG epee eee sees ese er sss Sener s fae ee en ees fee ea et S 314 MODIG TES ING IOS SOU st tsa a a ddd heh les tetas as atlanta gad duce eset ind ta 323 WED Te STIG cios aa A E 331 XP aiaa a a a n 333 CSS Aieri tech ve dale a a a R A A a 335 Be TEN EE a 3s esac E E ce E EE A E E E A E E E 339 Tutorial CUStOM LIDrary istesisecsievescccewerscesecteceveiwececcteaticecccecececeveevecvedduerecctecst cecutucivesvecteetadestdebcecdeveesectecsewencesecds 339 2015 Inflectra Corporation Contents 5 index 349 2015 Inflectra Corporation Rapise User Manual 1 Company amp Copyright inflectraZ This documentation and the software it describes is the proprietary and copyrighted intellectual property of Inflectra Corporation All Rights Reserved Rapise Inflectra SpiraTest SpiraTeam and Spira are either trademarks or registered tr
261. le 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 W ebAndroid 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 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 2 4 9 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
262. lighted 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 96 Rapise User Manual gs Disconnect CJ Page Source Select Profile iPhone4 Discovery Mode uD GoTo Url f Edit Profiles Select Context Get Snapshot a Test Locator Ctrl G est Locator Connectio D ofile 4 0 UlAApphication 0 20 320 480 4 Calculated gt E i ka e600 Verizon gt 3 04 PM hat gt 0 UlAWindow 0 0 320 480 Automation UA Target local Target frontMostApn P gt 1 UIAWindow 0 0 320 480 AUTiOS i PANE onj0 201 320 480 Master A Detail Table View UlAApplication 1 Table view with items Height 46l Basic Controls 32l Button TextField Label Picker Switch Slider Image Advanced Controls WebView ScrollView TextView Search TabBar Pagel The Mobile Spy dialog shows a snaps
263. lity bo sdi existing gutha 3 Ability to reassign book to diferent author Local Path read ony save SCO zs 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 Manual test case that has no automation script attached Repository Path will also be blank 2 E Test case that has an existing Rapise test attached 3 Test case that has a non Rapise automation script attached If you are adding a new Rapise test choose 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 Rapise User s Guide 195 ca Create Test Repository in Spira Rapise wil create a new folder in the selected Sorp poed to Sore the fest sopi and associated files Local Repository Path C Users adem sandman Documents My Racise Teitsi Spra New Test Remote Folder Root Folder Spira New Test This dialog box will let you know where the Rapise script will be stored in SpiraTest and also the location of t
264. ll Programs gt Inflectra gt Rapise The following window should appear 2015 Inflectra Corporation 14 Rapise User Manual R fre 9 Rapise 2 1 3 33 C Users adam sandman Documents My Rapise Tests Web Test 1 Web Test 1 sstest Bi P x Test Open Ss Open Test from Spira No Debugging gt gt 2 Sy By 4 da Object Mgr ae Search Help Cb Start Page Wd Save As By Spira Properties Level 1 Minimal af W Help Index 5 Spira Dashboard Save Record Leam Play Options Find in Q Saveto Spira G Web Services Files About 7 Activation File Recording amp Learning Debugging Executing Tools Help a Test Files D p e g gt _ Gj Start Page x a T Test gt gt Gad Reports gt U Scripts SpiraTeam Current Test Documentation Open Spira Dashboard Name Web Test 1 Test Description Ragse Quica Start Guide Use the dashboard to link tests to Preperng Firafox for Testing test cases create and run test sets Scenario lt 7 Preparing Chrome for Testing view automation hosts and more Test lt iv Play User Functions Web Tesi 1 user js 1 Web Test 1 Script eb Test 18 Shoricuts Browse Samples Parameters Ry Create New Test Fetch Samples Oven Existing Test AdobeFiex3 Browser Chrome HTML v Start Recordin AdobeFiex4 Record Tiie inflectra Library information System AnalogRecorder Googie Chrome Cros w Ser FarPoint Test Files Settings Objec
265. llustrates 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 button edit tree combo box menu etc 2015 Inflectra Corporation 12 Rapise User Manual 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 SampleATM 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
266. lt 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 of 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 190 Rapise User Manual To create a new Rapise test based on the manual test steps already defined in a SpiraTest test case File 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 hittp doctor spireteam im _ Sa ee M Newt New Test cae Basic Manual Scophng Moie Rapise supports multiple testing methodologies Select one to be used for newly created test lt 2 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
267. lt in test parameter that you can use to change the playback browser Settings 4 Advanced Command Line EntryPaint Test L 4 TestParams 5 items F Intemet Explorer HTML Record Title Intemet Explorer HTML a ServerProjectld Firefox HTML Server TestCaseFoldgChrame HTML Server TestCaseld 3 4 Execution CacheObjects False Command nterval 1000 teration Count 1 Y ibin l mle oe AH eet Led AE Settings 2015 Inflectra Corporation Rapise User s Guide 267 O Settings Metadata C Users Public Documents Shared Objects Path TwoDialogs Test objects js RepartPath TwoDialogs Test trp Script Path TwoDialogs Test js TestPath C AUsers Public Documents Shared UserFunctionsPath TwoDtalogs Test user js e UserFunctionsPath Path relative to the test directory to the file with user defined functions utilized in this test Normally this file has name in form user js e 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 e 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 e ScriptPath Path relative to the test directory to the test script e TestPath Path to the test defini
268. m 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 54 Rapise User Manual T Android SDK Manager Packages Tools SDK Path Progran Files x86 Androidiandrord sdk Packages ligt Name i ew Status 4 F Tools Ela Android SDK Tools Installed F Android SDK Platform toals amp Installed la Android SDK Build tools F Installed 1 Android SDK Build tools Not installed 1 Android SDK Build tools _ Not installed E 4 Android SDK Build tools 3 Not installed a FCJ Android 5 1 1 AF122 E E Documentation for Android SDK EFA gt Installed EA SDK Platform 22 Installed E 4 Samples for SDK Installed TE Android TV ARM EABI v7a System Image Ai Installed E Android TY Intel x86 Atom System Image Installed ME ARM EABI v a System Image z E Installed Show W Updates New W Installed Select New or Updates Obsolete Deselect All 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 Corporati
269. mContraltest js Customlontrolestobjects js CustomControllestuser 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 created 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 sas Rapise User Manual processed by Rapise engine as needed 2015 Inflectra Corporation tte index A About this Guide 7 Accessible Events Dialog 205 Accessing Functions 122 Action 90 Active Accessibility 205 Add File 282 Add Web Service 206 Adobe Flex 32 Analog Recording 82 Assert 126 Automated Reporting 115 Bo Breakpoints 136 C Call Stack 284 Checkpoint 200 Create 126 Checkpoints 285 Code Completion 141 Code Folding 139 COM Testing 145 Command Line 113 Component Object Model 145 Content View 212 Control Execution 135 Create a new Recording Library 89 Create aNew Test 292 Crea
270. mages toExcel toPOF 6 Reset Layout Object Tree Ca Start Page B TwoDialogs Tests Bw TwoDialogs Test_2014 09 04_ 12409 p x i n o Drag a column header here to group by that column WJ Object Tree C Usersiadam sand 4 j Inflectra Rapse Two Dialogs Type Start A Name Status Comment Iteration gt KOKI tal u gt jadi Please_enter_your name x Sloba 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 Te I jettings bye e Properties FDA 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 Rapise User s Guide 20 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 w
271. me itemName if null item return item instance Value recura nul l Sventes OnValueChange function SeSObject param var itemName param name if 12 Log2 OnValueChange itemName var item this findItemByName itemName if null item var value item instance Value RegisterAction this param name SetItemValue parseInt value Set atem tparam namet to tvaluet in this namet return i During recording process OnValueChange function captures progress bar change events and calls RegisterAction function that adds SetltemValue action to the test 7 CustomListboxControl 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 345 ROLE_S 3TEM_LIST Hw ND CustomListboxl E String I ROLE_SYSTEM IndexInParen O E String 2 ROLE_SYSTE M Location REC f 411 r 328 E String 3 ROLE_SYSTEM_ Name String 4 ROLE_SYSTEM_ t Role B State 0 Value Customl ere d d 264 ary moue Click essible0k HOLE SySTEt tame CustomListboxl 411 320 404 2 True Highlight You will see Accessible Events dialog Skip Ignore Mouse Move Select an item in CustomControlApp and advance its
272. ment element element element element gt element div gt p element element div p element element2 Selects every lt ul gt element that are preceded by a lt p gt element arget Selects all elements with a target attribute target _ blank Selects all elements with target _blank attribute lS is 5 attribute value Selects all elements with a title attribute containing the word flower attribute valu ttle flower Selects all elements with a lang attribute value oe starting with en attribute value attribute value a href https Selects every pa en whose href attribute value begins with https attribute value a href pdf Selects every a e whose href attribute value ends with pdf a href w3school Selects every lt a gt element whose href attribute value contains the substring w3schools attribute value active a active Selects the active link p after Insert content after every lt p gt element setae Insert content before the content of every lt p gt a element input checked Selects every checked lt imput gt element mwnput disabled Selects every disabled lt input gt element empty Selects every lt p gt element that has no children pemp including text nodes input enabled Selects every enabled lt input gt element 3 first child p first child Selects every lt p gt element that is the first child of its parent Selects the fi
273. 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 property 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 302 Rapise User Manual Object Tree Two Dialogs Sample ab OK y y y g g 9 Do cton Do nalogPlay DoClick DoE neureyisible DoLButtonD owr DoLButtonLp DoLClick DoLOClick Dob ButtonD own DoMButtonlp DobiClick DoMD Click DoMouseblove DoRButtonDown DoAButtonup DoR Click DoRDClick DoSendheys GetBitmap eth Bitmap Letllass GetHeight GetN ame GetO bjectT ype GetState GetValue Getwidth GetindowT ext Gets Get SetValue Th SetwindowT ext 4 oe mh 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 a3 Properties i HO Locators 4 A Ao 3 Enabled
274. ms Intemet Explorer HTML im Record Title Intemet Explorer HTML ServerProjectld Firefox HTML Server TestCaseFoldd Chrome HTML Server TestCaseld 4 Execution CacheObjects False Command nterval 1000 eration Count 1 yr i a ee ar NH rr leeke 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 Spiralest Integration topic for more general information on using Rapise with SpiraTest 2015 Inflectra Corporation 312 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 Use
275. mt 3A list Boor 1 18 1378098 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 This is the Spy dialog that is used for Web objects It is described in more detail in the Web Spy topic 2015 Inflectra Corporation Rapise User s Guide 281 A s Rapise Spy m x Spy R Track Ctrl T Via Test XPath Learn Highlighting Mode Get Snapshot H Highlighting Options Test CSS Learn Ctrl G Learn Browser Object Tools Locators A IE DOM Tree DOM Element 4 lt html xml lang en xmins http www w3 org 1999 xhtml gt a b lt head gt lt head gt ID 7bf3872c bced c921 bbc6 e9decc13 ce 4 lt body gt tagName DIV 4 lt form id ctl01 action method post gt eer s 3 ciass page b lt div gt lt div gt i dam ORPS di ra lt scriptsrc WebResource axd d 9_D5u0u Rawwil type text javasci lanai 690 e e en ae width 962 4 lt div class header gt y 77 b lt div class title gt lt div gt 4 Selectors gt lt div class loginDisplay gt lt div gt css html gt body gt form ctl01 gt div nth of ype 3 gt lt div class clear hideSkiplink gt lt div gt xpath html body form id ctl01 Vdiv 3 4 lt div class main gt lt h2 gt lt h2 gt 4 lt div
276. n Application menu 44 13 User clicks at 44 13 in New LOlick 15 9 User clicks at 15 9in Pencil LOlick 14 16 User clicks at 14 16 in Text LOlick 156 256 User clicks at 156 256 in SetText Thisissome Change text to This is some text LOlick 11 14 User clicks at 11 14 in Bold Verify Cirle Learn Ctrl 2 Sm Spy Cirl 5 Pick Object sun Analog Ctr 4 _ _Simulated Caneel Finish Ctrl 3 __ 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 Rapise User s Guide BE Home View Text _ Cut d Calibri G Copy ipboard Farii paciground When you click Finish to complete the recording Rapise will now display the list of populated manual test steps with the embedded screen captures la Start Page 4 Manual Steps _rmt bl Ba ee ene Ee tS Stepld Description Expected Result Sample Data Step 1 User clicks at 37 11 in Application menu EER SeS Application_menu DoLClick 37 x 11 W Step 2 User clicks at 42 12 in Application menu a SeS Application_menu DoLClick 42 12 Step 3 User clicks at 44 13 in New SeS New DeL Click 44 13 Q jStep 4 User clicks at 15 9 in Pencil A SeS Pencil Dol Cli
277. n MS Paint Test TCH 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 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 li Start Page Es Manual Steps nmi w MS Paint Test Stepld 0 Step 4 TS 48 T Step 5 TS 49 TS 50 i Step 7 TS 51 iT Step 8 TS 47 Vy Step 6 Description Expected Result Sample Data User clicks on Pencil User clicks the Text tool User clicks at 156 256 in the canvas SeS Pencil Dol Click 15 9 SeS Text Dol Click 14 16 Enters text This is some text User clicks on the Bold button a SeS Simulated Dol Click 156 256 SeS Text1 DoSetText This is some textir m SeS Bold Dol Click 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 l v Test Steps gt Insert Step Insert Link Delete Copy Refresh l Show hide columns O O Step Description Expected Result O qv Step 1 User starts up the MS The application loads with a blank Paint Applicati
278. n 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 Regular reporting Tester Assert Tester Message Custom attributes Tester SetReportAttribute Tester ResetReportAtiribute Stacked attributes Tester PushReportAttribute Tester PopReportAttribute Nested Tests Tester BeginTest Tester EndTest Inserting Links Text and Images into the report tags parameter SeSReportText SeSReportLink SeSReportimage O AON 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 WebServicesREST 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 A
279. n 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 Rapise User s Guide 273 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 Tcooo001 Ly Functional Tests C TCOOO002 Ry Ability to create new book Tests that the user can create a new book in the system ooo003 W Ability to edit existing book Tests that the user can login view the details of a book and then if LI ee J Nyi PEE ei heshe desires make the necessary changes Create Test Set Add to 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 2 Manual test case that has no automation script attached 2 fe Test case that has an existing Rapise test attached 3 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
280. n 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 If 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 zh Create New Test Please specify the name of the new test t i ee Specify the folder where this test should be created C Users All Users Public Rapise Tests CAUsers All Users Public Rapise Tests Public Rapise Tests sstest Specify methodology Basic Manual Scripting Mode Rapise supports multiple testing methodologies Select one to be used for newly created test 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 Rapise User s Guide 21 o Mobile Mobile Support this should only be selected for mobile device testi
281. n Spira Now click on the Failed hyperlink in Spira and the new test run will be displayed Test Run 2 MS Paint Test TR 000041 Overview Attachments Incidents v Details Release 1 0 0 0 Library System Release 1 v gt Estimated Duration hours Tester Name Fred Bloggs v Actual Duration 0 05 hours Test Set Execution Date 3 31 2015 1 54 11 PM Test Case TC000034 Execution Status Failed Build None v Test Run Type Manual Web Browser PeaseSeet vy Operating System Please Select 0 T Notes Font v sze BZ U 828 ee ke epneomf 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 186 Rapise User Manual 2 4 9 3 Test Steps RS00CO0084 User starts up the MS The spplicaton loads with a blank TC000034 TS000045 Paint Application canvas RS000085 User clicks the main EER SeS TC0O00034 TS000046 Applicaton menu Apolication_menu DoLClick 42 12 RS0000286 User clicks the New SeS New DoLClick 44 13 TCOD0034 TS000047 entry RSOO0087 User clicks on Pencil m E SeS Pencil DoLClick 15 9 TC000034 TS000048 RSOCOC8S User clicks the Text A SeS Text DoLClick 14 16 TCO000034 13000046 RS000029 User click
282. n 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 1 0 00 01 Passed 1 Failed 0 Unresolved 0 Starting scenario Test 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 2015 Inflectra Corporation Rapise User s Guide 113 D Start Page Eil CremeheaBook js 2 CresteNewBook user js a CreateNewBook 7014454 1 47 tp Drag a column header here to grou p gramData Documents Rapise Samples CreateNewSook CmateNewBookuse ss Type Start Name Status Browser Comment iteration TA E A rm iA g 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 ctlo
283. n 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 Rapise User s Guide 207 R Create or Open Test New Fol entera Basic Manuel Scophng Mode Rapise supports multiple testing methodologies Select one to be used for newly created test Create Locally 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 28 Rapise User Manual RJ Create or Open Test Attp doctorspirateam 5 7 Ability to create new book Ability to create new author lt 8 Ability to reassign book to different author El Renrecainn Teta Rapse supports multiple testing methodologies Select one to be used for newly created test If 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 Rapise User s Guide 29 RA Create or Open Test Server htto doctor spirateam Library nioma Syse Test Cases New Folder Ea Functional Tests Ability to create new book i Ability ta edit existing book Ability to create new author Ability to edit existing author s Ability to reassign
284. nagement page see the below image Click the Home button to go 2015 Inflectra Corporation Rapise User s Guide 19 back to the main menu LIBRARY INFORMATION SYSTEM sree Meare E AE A J Home Book Management Author Management BOOK MANAGEMENT The following books east in the system Create new book D Name Author Genre Et Fg Hound of the Baskervilles Murder amp Mystery Murder amp Mystery Edit Contemporary Fiction _ Edit Saturday Contemporary Fiction The Comfort of Strangers Contemporary Fiction Edit Lun fo olvertwist Charles Dickens Hatoncal Fiction 10 Nicholas Nickleby Chaves Dickens HistoncalFicion Eat 21 David Copperteld chartes Dickens Historica Fiction e 12 The Pickwick Papers Chaves Dickens Hitoncat Fiction el 13 Death onthe Nile Agatha Chrisie Murder amp Mystery Eat fia Betams Hotel Agatha cise Murder amp mystery El Click the Create new book link BOOK MANAGEMENT The following books exist in the systeng Create new book f 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 Author Management CREATE NEW BOOK Please enter the book information and click Insert Book Information eee a E TE Author Genre Science Fiction wa Insert Cancel Now click the Author M
285. net Explorer and Google Chrome Rapise lets you record or create your tests against one browser and then play the same test back against all of the other browsers Rapise provides comprehensive support for testing Web applications Rapise supports cross browser testing It uses the web browser Document Object Model DOM to interact with the current web page The various web browsers on the market have various differences in DOM implementation In many cases these differences are not significant But sometimes they require special handling Rapise tries to overcome the differences and make the recorded scripts as universal as possible Cross Browser Testing When developing and testing a web application you naturally need to test it with different web browsers and of course based on bitter experience multiple version of each web browser With Rapise you can record a test script using one browser and then play it back using Mozilla Firefox Google Chrome or Microsoft Internet Explorer Bayer oT i awe wie arabe Cece AA Fase ees Loire Lee Crabtree Firini a Spe F i n u i F a mum J 1 7 Ge Ej ee me a LIBRARY INFORMATION SYS Pataca Ade ee eter el Acithew bare With Rapise you can run your recording in a different browser than the one in which it was recorded simply by changing the specified browser in the playback settings 2015 Inflectra Corporation 332 Rapise User Manual CommandLine En
286. never a change is made to the state of the web page in the web browser and you want to view how the DOM objects have been changed after the change e Track Ctrl T This tool lets you select items in the web application as rendered by the web browser and have the corresponding object be selected in the DOM tree window This is useful if you are not sure where an item is located in the DOM tree but you can see it in the browser 2015 Inflectra Corporation 100 Rapise User Manual e Highlighting Mode When this is selected whenever you select an object in DOM Tree it will highlight the item in the rendered web page with a red square This allows you to visually see an item in the DOM tree and how it appears to the user e Learn Clicking on this tool 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 When you click on the Learn button you have the choice in the dropdown list of learning the object in terms of either its XPath or CSS properties e Options Clicking on this brings up the Web Settings dialog box e Locators This section is described separately below in the Test Results section These tools allow you to try out different XPATH and CSS queries to see which objects match You can then Learn the results of these queries as new Rapise objects DOM Tree The DOM tree lets you view all of the HTML elements also Kno
287. ng gt ie ka 4 Wy Object Mgr Qg Search Help O Start Page Fu Helpindex 5 Spira Dashboard PY r W Save s U Spira Properties Level 4 Overflood Save Record Learm Play __L_ Options Find in Hel WW Saveto Spira Web Services Files T About 7 Activation File Rex ording amp Learning Debugging Ex cuting Tools Hep A Test Files g Ca Start Page BlMyTesttjs r x d s Test Use Record Learn button to begin test recording gt iad Reports I 4 Scripts function Test B MyTest js MyTest objects js 8 MyTesti user ps Test Files Settings Object Tree y Properties A ja 7 _ G52 _ _ Tes 0 MatchedObject OK Win32Button f 1 Do ERROK DoAction i Hae Two Test 1 El Test execution done a 4h Output Warnings Errors Find Results NUM linflectra Corporation 3 Choose HelloFlex application and press Select recording will start RI Select an Application to Record Select From Running Applications Run Application ei HelloFlex Intemet Explorer C Program Files Internet Explorervexplore exe Applications Available Applicatians Path G3 Adobe Photoshop C53 Extended Untitled 2 C Program Files amp 86 Adobe Adaobe Photashi i C Program Files DellT Pad Apntex exe C Program Files DellT Pad Aont Er exe i HelloHlex Intemet Explorer C Program Files ntemet Explorer iexplore cue 8 Help AndSamoles Microsoft
288. ng 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 CSE CAUsers Public Documents Rapise Samples SampleAlTM Use Methodology Basic Manual Scripting Mode Rapise supports multiple testing methodologies Select one to be used for newly created Test J New Test should have own set of Objects If unchecked the test will re use objects from containing Test Le it will mot have own file lt testname gt objects js and will refer one from its parent V 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 users and will refer one from its parent e 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
289. ng 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 select an item by name set value for a particular item you need to create a Custom Library Recording activity for CustomControl4pp Object Action Data Comment String 2 LClick 1893 5 Mouse click at 189 5 in String 2 Global Sendk RIGHT Type Global Sendk RIGHT Type Global Sendk RIGHT Type i Lear ctrl 2 py Ctrl 5 Pick Object Pause Analog Ctrl 4 I Simulated maen Finish Ctrl 3 Last captured SeSSimulated CustomControlspp F Transparent 2 LiobUser 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 am 3 Open Engine sstest
290. ng command to instruments au getElement 74 isEnabled 1 debug i Once that is installed you will then need to download and install the latest version of Java SE Development Kit JDK from the Oracle website http www oracle com technetwork java javase downloads index html Once that has been installed make sure that the JAVA HOME environment variable has been set 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 sis Rapise User Manual a oOo Android SDK Manager SDK Path Users elise brooks Downloads android sdk macosx Packages im Name API Rev Status Tools Android SDK Tools 24 0 2 E Update available rev 24 1 i Android SDK Platform tools 21 F Update available rev 22 i F Android SDK Build tools 22 0 1 Not installed Android SDK Build tools 21 1 2 amp Installed ai Android SDK Build tools 21 1 1 Not installed P Android SDK Build tools 21 1 Not installed L f Android SDK Build tools 21 0 2 Not installed Android SDK Build tools 21 0 1 Not installed a Android SDK Build tools 21 Not installed i P Android SDK Build tools 20 Not installed a Android SDK Build tools 19 1
291. ng this element DoDOM Prev Sibling Return previous sibling element for this one DoDOMRoot Returns Root element having this element See Also 2015 Inflectra Corporation Rapise User s Guide 333 e Web Spy How to use the Web Spy to inspect web pages and dynamically query for HTML elements e XPath An explanation of the XPath language how it can be used to dynamically query objects in web application and some examples e CSS An explanation of how to use CSS selectors common in frameworks such as jQuery to dynamically query objects in web applications e Web Testing Tutorial a basic example of how to record learn and playback tests using a our sample web application 2 7 6 1 XPath Purpose When testing web applications you will often need to use XPath to query the browser DOM for elements based on the scenario under test This section explains how you can use XPath queries with Rapise to make your browser testing more flexible and adaptive to changes on the screen XPath Fundamentals XPath uses path expressions to select nodes in an XML document such as HTML The node is selected by following a path or steps The most useful path expressions are listed below Selects all child nodes of the named node Selects nodes in the document from the current node that match the selection no matter where they are In the table below we have listed some path expressions and the result of the expressions bookstore Selects all
292. nto the script editor in between the opening and closing braces of the Test function S MyRestTestLljs 5 Libraryinformation system rest F Start Page 2 J H Script Steps 444444444 function Test 6 i 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 add a 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 se5 LibraryInformationsSystem Get Session DoExecute null var sessionId SeS5 LibraryInformationsSystem Get Session GetResponseBodyObject Tester Message sessionId 3 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 Rapise User s Guide 51 E MyRestTestLjs 3 LibraryInformationSystem rest Start Page wp MyRestTest1_2013 06 19_13 37 trp Drag a column header here to group by that column Name Start Type Status Comment Iteration
293. nts that match the query 2015 Inflectra Corporation Rapise User s Guide 335 Test Results a Locator itable Mtd fj style found 4 lt td style padding right 50px gt lt td gt etd style padding right 50px gt lt td gt lt td style vertical align top gt lt td gt lt td style vertical align top gt lt td gt You can now refine the query to only find the items you want to test Learning Objects When you have created the query in the Web Spy that returns the HTML elements that you were expecting you can click on the Learn button to learn that object What this will do is create a new Rapise object in the Object Tree that maps to this specific XPath That means that the object in Rapise is effectively a pointer to this specific XPath query For example if you want to find a specific book in a grid of books you can search by its name using XPath and the text XPath expression described above then learn this object as Oliver_Twist so that you can access it in your code as Ses Oliver_Twist Every time you call a function on Oliver_Twist Rapise will use the learned XPath expression and use that to evaluate which HTML element in the web page to access Dynamic Queries In addition to learning objects based on specific XPath there are a set of general functions that can be used to query for objects in the web page SeS Book_Management DoDOMQueryXPath tr td text Oliver Twis
294. nual 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 it 1 0 2 0 Library System Release 1 SP2 o 1 0 2 0 0001 Iteration 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 r 5 Executing MS Paint Test qoagso ce csecssaccnenccoses qpasepenseosocesesessnescreveneserswesesesesesenesenccen epensnesenseenasenesenes esos snenanesasenseenesenenessnepesesenes sneceneuacenesenesessnesesesssencsesescsenenesesenesonesenenesescnswenenesesesensneneveneresesssenesenesensesnesssevenesasesesesesenenesesessresenasesaperessneseseseseseressseneseress WBZ U A Aral A107 Aly My Bas il i 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 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 Arial v A10 Ar Yy Ea j e 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 ad
295. o 2015 Inflectra Corporation Rapise User s Guide 145 e For more information on the WScript object see http msdn microsoft com en us library atSydy31 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 software 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 Ad
296. obal 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 2015 Inflectra Corporation ona Rapise User Manual Settings i a2 24 CommandLine EO Contents TestFiles Test onmmandintense IUL lteratiansLount 1 ObjectLookupatl 150 ObjeactLookupatl 1 O Recording Se aero ali lon CacheObjects Remember locz chink them for speec g cachelbyects m Other variables include e g_scriptPath g_reportPath g_objectsPath g_configPath Exit Code e 0 indicates a pass e 1 indicates failure See Also e Settings Dialo 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 encapsulating 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
297. obile 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 UI 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 Rapise User s Guide 233 e Link Based on the WebDriver standard it lets you find hyperlinks using an exact match of the link anchor text e Partial 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 dewce to find the element 2 5 17 NameValue Collection Editor Dialog Screenshot TestParam Collection Editor new _test param properties 1 Server TestCaseFolderld 2 Server estlaseld B new test param Default Value Description lsOutput Name Options
298. oject and select the root node enra ie w ALITIOS JE aa OSs A O E ce a P AUTIOS 2 targets OS SDE 6 1 T T Images gt Text png a 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 for accepting such an invitation is typically https developer apple com programs start jointeam index php success 2Fios 2Finutation 2Faccept action Click on this link and accept the invitation 2015 Inflectra Corporation Rapise User s Guide 325 Meanwhile back in XCode Use the Add an Account to login with your Apple ID BA x B auTIOS E AUTIOS General Capabilities Info Build Settings Build Phases Build Rules Identity Bundle Identifier com inflectra AUTIOS Version 1 0 Build 1 Tean inflectra Corporation markovisev gmall com None Y Deployment Info Add an Account D
299. on 1 Rapise User Manual Recording Activity for Infiectra Library Information System Windows Internet Explorer t Comment Click on Log In Set Text librarian in Usemame Set Ted libranan in Password F e ee ell wei U mu hi a Verity Ctrl 1 You should now be on the main menu of the Library Information System with the user s name listed in the top right LIBRARY INFORMATION SYSTEM Welcome librarian Log Out Book Management Author Management WELCOME TO THE LIBRARY INFORMATION SYSTEM Ths sample application lets you view create and edit books in the libary catalog as well a5 view create and edit authors To view the library catalog or the authors list 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 librarian Mote This is not a real application but is just a sample application used in the popular SpiraTest fest management system and Rapise est aulomation system Both of these products are marketed by Inflectra Corporation o a e a DE es a 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 m z Ty LIBRARY INFORMATION SYSTEM Home Book Management Author Management You should now be on the Book Ma
300. on location L CACIOMN s Mga Fa La t window name param iwindow text window class param window class t i locator _ name Locationfath location window name paramiwindow text window class param window class path i object name paramiobject name object class param object class object role paramiobject_ role te i object name paramiobject name object class param object class object role ROLE SYSTEM WINDOW E i object name paramiobject name object class AfxControlBardeu object role paramiobject_ role he 8 Press Ctrl 3 to end the recording 2 Technologies This section focuses on specific technologies supported by Rapise 2 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 309 FlexAdapter swe part of Rapise and automation _agent swc and automation swc part of Flex Builder The compiler arguments for FlexBuilder 3 should look like inelude lLibrarives C Program Piles Adobe Plex Builder 3 sdkse 3 2 0 trameworks Lice automa c Tron agent sve C Program Files Adobe Plex Builder 3 sdks 23 2 0
301. on Rapise User s Guide 55 T Android Virtual Device AVD Manager Target Name API Le CPU ABI No AVD avaiable Edit Repair Dereee Details 4 A repairable Android Virtual Device An Android Virtual Device that failed to load Click Details to see the error Create new Android Virtual Device AND AVD Name AVD_for_Nexus_7_by_Google Device Nexus 7 7 02 1200 x 1920 xhdpi 5 Target Android 54 4 API kevei22 eee CPU ABE ARM armeabi w7a x Keyboard Hardware keyboard present Skin Front Camera Back Camera Memory Options Internal Storage SD Card Emulation Options Snapshot 2015 Inflectra Corporation s Rapise User Manual 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 AVD Manager Tools Android Virtual Devices Device Definitions List of existing Android Virtual Devices located at C Users adam sandman android avd AVD Name Target Name Platfor API Le CPU ABI E AVD for Ne Android 51 4 S12 g ARM armeabi v7a I LEKYYEEEYYENEYEYYEYEYYEYEYYEKYYYEYYYIYEYYYYEYEYYEYEYEEYEYEYYYYIYYYYENEYYYYEYEYYEYYYEYEYYEYEYYEYEYYEYEYYYKEYEYEEEEYEYEYYEYYYYEYYYEYYEYEYEEYYYEYEYYEYEYYEYYYYYYYYEYEYYYYEYEYYEYYYYEYCYEEYYTEYETYYEETEEEETECTETETETETTETEETE Refresh 4 A repairable Android Virtual Device An
302. on There are two ways you can aggregate combine filter conditions All of the following conditions A a 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 Status onene m a N 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 EEF ipt runtime error Exception thrown and riot Caught p T Admin wrappers Engines Playen jsl4OF A Microsoft Purpose The Errors View displays execution error details Execution errors are those that cause Recording or Playback to stop How to Open 2015 Inflectra Corporation Rapise User s Guide 215 The Errors View is part of the Default Layout Error Message Tadminrappers E aginesPlaver js 40 7 4 Microsoft JScript runtime eror Exception thrown and not caught Double click on an error message to go to the corresponding source line Widgets e The text box Is a search box F The icons from left to right are Find Next Entry 4 Copy Selected et Clear All Text 0 and Select All Text B 2 5 8 Find and Replace Dialog Screenshot Find and Replace gt Find Replace Find what Searc
303. on 001 1 0 2 0 0002 Iteration 002 You can then choose the appropriate release that the current test is being executed against Recording ta i Record Screenshots Whele 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 of the mouse pointer cursor inside the image 2 5 32 Ribbon REST Screenshot t e Update Add Add Add Requests ObjectTree Header Parameter Credentials 2015 Inflectra Corporation Rapise User s Guide 259 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 di Save Update Requests Object Tree e Save Re
304. on Login username password 2015 Inflectra Corporation 202 Rapise User Manual SubTest1 may be used to check login with valid Credentials SubTest1 js looks like EUnet onm Test Login valiauser valldpassword Now check that login is successfull 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 function Test Login wnvaliduser 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 Test Objects User Functions Scenario 6 Test2 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 Rapise User s Guide 203 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
305. on canvas g 8 step 2 User clicks the main s Application menu E g step 3 User clicks the New entry Eo g O g step 4 User clicks on Pencil A OC o Step 5 User clicks the Text tool Al O step 6 User clicks at 156 256 in the canvas O 9 qv Step 7 Enters text Thisissome This is some text text O Step g User clicks on the Bold button WR Show 15 rows per page Now this test case is ready for manual playback See Also y Edit Parameters Execution Sample Data Sae ID gt Edit Not Run TS000045 gt Edit SeS Application_menu DoLClick 42 Not Run TS000046 Edit 12 SeS New Dol Click 44 13 Not Run Ts000047 edie SeS Pencil DoLClick 15 9 Not Run TS000048 Edit SeS Text Dol Click 14 16 Not Run TS000049 Edi SeS Simulated Dol Click 156 256 Not Run TS000050 jEdit SeS Textt1 DoSetText This is some Not Run TS000051 gt Edit textir SeS Bold DoLClick 11 14 Not Run TS000052 F Edit ld lt Displaying page a Fa of 1 gt i 2015 Inflectra Corporation e Manual Testing e Manual Playback 2 4 9 2 Manual Playback Purpose Rapise User s Guide 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 SpiraTest T
306. 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 328 Rapise User Manual Developer People Programs amp Add ons Your Account Organization Inflectra Corporation Developer Program Resources Technical Resources and Tools Dev Centers Certificates Identifiers amp Quickly access a range of technical Profiles resources Manage your certificates App IDs igs Mac Safari devices and provisioning profiles App store Distribution 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 329 Certificates Identifiers amp Profiles FET Provisioning Profiles Learn More 4 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 n IOS Devices t 7 qQ V Certificates You can register 98 additional devices All Name UDID Pending Denis s iPhone cd68f859a6ff27fc68dcl642cb988db065137f89 Developriient Inflectra b
307. onn a Letter size is 44 15 32 25 685 Assert ki Z CAProgram Filesi 15 3228 96 Test Passed 7 Failed 1 el eo e Se S 7 ra Status Pass 7 items y e Bia Drag the Status icon back to undo the sort Status 4 a i ec Name Start status ype Comment Iteration meg e b ud E E Status Fal 2 tems e Report Filterin 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 2 4 3 1 Writing to the Report You can write to individual columns create columns and add data to the report Use Tester PushReportAtiribute or Tester SetReportAttribute to set values in specific rows Tester PopReportAtiribute reverses the effect of Tester PushReportAttribute PushReportAttribute If columnName does not exist it will be added to the report 2015 Inflectra Corporation one Rapise User Manual SetReportAttribute Tester SetReportAttribute columnName value If columnName does not exist it will be added to the report Column co umnName will be populated with value for rows created after this function call unless specified otherwise Adding Data Data must be associated with an Assert row or a Message row Tester Assert description expression data columnValuePairs Tester Message description data columnValuePairs e description is a string e expression is the Boolean expres
308. ons 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 E 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 Rapise User s Guide 271 Spira Login Sign Up Welcome administrator Logout Auto Login E 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 UserName administrator Spira Folder Local Folder C Temp Rapiselests 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 WR
309. onverted by Rapise into a scriptable object 2015 Inflectra Corporation 152 Rapise User Manual 1 Object Tree H I Object Tree CAUsersiadamsandma Ad LibraryinformationSystem Ee did Book d et Libranjinformationsystem 0 Add Book H Get Books Get Session Global i th User Functions Mar User Variables ay Do Execute Somme GetCredential Gethlethod GetName Spann y y 4 i GetParameters o gt GetRequestBodyObject o gt GetRequestBodyText We GetRequestHeaders we GetResponseBodyObjec gt GetResponseBodyText a GetPecnoanceHeadarc Pr I eales Object Tree EECH 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 Rapise User s Guide 153 function
310. oration 22 Rapise User Manual Ep Record Learn Recording amp Learning Libraries Library Description F Auto Detect library automatically E NET AMET 1 1 2 0 3 0 3 5 with Accessility Internet Explorer HTML HTML DOM based recorder for Internet Explorer E Firefox HTML HTML DOM based recorder for Mozilla Firefox Generic Generic library 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 PID Path ta fOs2 CW indows explorer exe af44 C Program Files Google GoogleT oolbart Ges C Windoweeystems2scmd exe 4796 CAWindowseystemse crid ere gl Help amp Manual fUe4 C Program Files4EC SoftwaresHelpandh jk Program Manager z Lindos explorer exe sample ATM Login Windows IntermetEs 7000 C Program Files Intemnet Explorerviexplon 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 Wi
311. ordin e Assert Statements 2015 Inflectra Corporation 288 Rapise User Manual 2 5 43 Warning View Screenshot Ci Program Files InflectraRapise UsingMsexcel Usinghsexcel s 11 mismatched input expecting RPSREN Output Warnings Errors Fma 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 CAProgram Files Inflectra RapiseUsingMseExcel UsingMSExcel s 1 1 mismatched input i expecting RRARENM Double click on an error message to go to the corresponding source line Widgets C OS e The text box Is a search box e j The icons from left to right are Find Next Entry 4 Copy Selected z Clear All Text 0 and Select All Text B See Also e Syntax Checking 2 5 44 Watch View Screenshot 2015 Inflectra Corporation Rapise User s Guide 289 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 Value 3 Input the expression you wish to investigate Press Enter Expression Value g_commandInterval 100 2015 Inflectra Corporation 290 Rapise User Manual Widgets ke F
312. ordings 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 CMNCrLUSen Test nit number_of_visited_links 0 This variable becomes global var boca yar 52 7 J thie varigole te loreal for Test ior finer ion 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 script e For details on the structure of the test script see Understanding the Script 2 4 4 5 Including other Files Purpose The eval keyword lets you use external functions and data structures in your test script eval is a javascript reserved word 2015 Inflectra Corporation Rapis
313. ot x Ctrl G Test Locator Connection Device Profile Context 4 0 android widget FrameLayout 0 0 800 1205 4 Calculated on ay 4 0 android view View 0 0 800 1205 Automation gt 0 android widget LinearLayout 0 33 300 108 id AUTAndroid gt 1 android widget FrameLayout 0 108 800 1205 Tag nd u Login Text Title 0 android widget FrameLayout 0 0i DropDownSelect XPath roid widget FrameLayout 1 4 Layout Buttons Height 1205 Width B00 Bars Views 4 Properties checkable Tals Kable fals nabled true cusable fals focused fal scrollable fal selected fal 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 eo Rapise User Manual left will expand to show the properties of that object Spy ala Disconnect GJ _ KB GoTo Ur Get Snapshot Ctrl G Test Locator Connection Device android widget FrameLayout 0 0 800 1205 0 android view View 0 0 800 1205 gt 0 android widget LinearLayout 0 33 800 108 4 1 android widget FrameLayout 0 108 800 1205 4 0 android widget LinearLayout 0 108 800 1205 4 0 android widget LinearLayout 21 129 779 453 4 0 android widget ListView 21 129 779 453 Lt A i T3 2 android widget TextView 21 259 779 323 3 android widget
314. oter 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 Incident Logging Screenshot 2015 Inflectra Corporation Rapise User s Guide 221 is a S New Incident ial Save A Details Description ez Name This is a new incident Description B Z U A Arial Miv AY elas was trying to create s new book in the system and it displayed an error message Ili iii ui Type Bug Detected By Fred Bloggs Owned By None Priority None Severity None Detected Release gt co Nane Resolved Release None Verified Release None Notes B Z U A Arial 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 inci
315. 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 behaviors var yourApplicationRule new SeSMatcherRule object type yourAppOb 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 HIMLFirefoxBehavior Set Ieome 7 aor onName Elliek DOACE DON rime mivom 4 by actionName SetText DOACE One Funct Mont Ssering EEN 2015 Inflectra Corporation 90 Rapise User Manual Enable Recording 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 d
316. out 0 108 800 1205 IndexinParent TagName android widget Frame Layout Loain Tex 9 Title 0 android widget Frame Layout 0 Hit DropDownSelect Path android widget Frame 1 4 Layout Buttons Height 1205 Width 800 Bars Views 4 Properties checkable necked able talse enabled true sable f e rollable elected e 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 left will expand to show the properties of that object 2015 Inflectra Corporation Rapise User s Guide 169 gt Rapise Sp Spy gla Disconnect CJ Page Source amp Select Profile android nexus7 Discovery Mode _ BP GoTo Ur Edit Profiles Select Context NATIVE_APP Get Snapshot Ctrl G R Test Locator Connection Device Profile Context android widget FrameLayout 0 0 800 1205 4 Calculated Seo 0 android view View 0 0 800 1205 Automation gt 0 android widget LinearLayout 0 33 800 108 id androidid ext1 a AUTAndroid 4 1 android widget FrameLayout 0 108 800 1205 IndexInParent 1 4 0 android widget LinearLayout 0 108 800 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 Tile 1 android widget Text View21 1941 0 android widget TextView 21 1
317. owserName device Name Nexus 7 platom Name Android plattform Version 447 udid 015d24bcSd4el5 Common Capabilities 5 auto Launch automation ame auto Webview l rima C ap ab iliti ES 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 during 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 different 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 T
318. ox Press the Run button If you are unfamiliar with MS Paint take a few minutes to play with it In particular notice the toolbox that appears in the upper left margin of the utility and the color selection box that appears on the bottom left of the application window 4 Press Ctrl 5 to spy on the Ul Press Ctrl G to spy on the Paint application Notice several things 2015 Inflectra Corporation 306 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 iii 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
319. parent e Verify Press to open the Verify Object Properties dialog 2015 Inflectra Corporation Rapise User s Guide a e 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 e 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 e 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 e The Pause Button The Pause Button on the RA dialog temporarily stops Recording Any interacting you do with the AUT is ignored When you press the Pause Button the title of the button changes to Resume Press the Resume button to continue recording e The Analog Button The Analog button begins Analog Recording Analog Recording tra
320. parent checkbox makes the RA Dialog transparent so that you can interact with objects behind it The image below illustrates the difference oogle pda ay ke a Lect acter Lhaa ori Te i Eirg rie cick a H Tae heh T icon cih ot TO Jan Liane chk a 11 hf Bemus Wii ibana dh E EF im L iok Pa Mires check wat Tt ae TES TES Micon check at TOE Sa krami iernii u Anag es Fete Lart capies 1 Thee nS eee ee Gin Taine F Google ST a aet E en LiL ie LES ees e eA inn Papen Linky iks a ier 4 i Ciri E Les 2 5 23 Replace Text Dialog Screenshot 2015 Inflectra Corporation Rapise User s Guide 245 Find and Replace Find g 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 Search 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 lf unselected case is ignor
321. pise 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 s Guide For each feature this document describes 1 The reason you might use a given feature 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 2 4 1 Recording and Learning Purpose To understand what different objects might be found on a Ul 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 ac
322. plications Path C Program Files w86 Microsoft Office Office C Windows Sys WOW 64 nundll 32 exe C Windows Sys WOW 64 rundll3 exe PS Adobe Photoshop CS3 Extended Untitled 16 C Program Files amp 86 Adobe Adobe Phatost C Program Files DellT PadApntex exe EE C Program Files DellT Pad Apnt Ex exe 8 Help AndSamples Microsoft Visual Studio 1 C Program Files amp 6 Microsoft Visual Studio Html G CWindows explorer ene lt Inilectra Gbrary information System Wind 6263 Program Files wintemet Explorer explore ex Menu aF C Program Files amp 86 4 PRO Vonage X PRi _ Msg C Windows Sys WOW 64 rundll32 exe EI TamNotify C Program Files Wave Systems Com Truste 3 Tutorial Record and Playback Mozilla Fire 4 C Program Files amp 86 Mozilla Firefox firetox e Windows Media Player C Program Files amp 6 Windows Media Playes ks PRO Vonage C Program Files 26 4 PRO Vonage X PRt 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 Corp
323. 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 recording 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 300 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 Dismi
324. progress bar using right key Accessible Events dialog will show you captured events 2015 Inflectra Corporation 346 Rapise User Manual Accessible Events Type Aac hwnd EVENT SYSTEM FOREGROUND AOLE_ SYSTEM WINDOW sizeable moveable focusable Ox001 0a38 EVENT OBJECT FOCUS AOLE_ SY STEM_CLIENT sfocusable Ox001 0a38 EVENT OBJECT FOCUS AOLE_ SYSTEM _LIST focused focusable Ox0007188c EVENT OBJECT SELECTION FROLE SYSTEM SLIDER selected focused focusable selectable 000077 88c EVENT OBJECT FOCUS ROLE SYSTEM SLIDER selected focused focusable selectable O 00077 88 EVENT OBJECT VALUECHANGE AOLE_ SYSTEM SLIDER selected focused focusable selectable 000071 88c EVENT OBJECT VALUECHANGE AOLE SYSTEM SLIDER selected focused focusable selectable 000071 88c EVENT OBJECT VALUECHANGE AOLE SYSTEM SLIDER selected focused focusable selectable 00007188C EYENT_OBJECT_NAMECHANMGE ROLE_SYSTEM_CURSOR floating drodd H 2 3 4 F B T E J 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
325. put 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 button 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 Action Data Comment Please enter Analog Analogv4na Plays recorded events from Analog 4naloag0002 arf file 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 gri
326. quests 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 co Name Accent 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 20 Rapise User Manual Add Request Parameter Parameters are used in the Request URL to genencize the REST request Name session id Value 824599bec 37e4 4c64 820e a 2d 798d 1e 84 e Add Credentials Allows you to add 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 Rapise User s Guide 261 R Select an Application to Record Select From Running Applications ei Inflectra Library Information System Ap
327. r defined function and place it into lt testname gt user js file For example 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 Bas 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
328. r 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 you may get the following message 2015 Inflectra Corporation 322 Rapise User Manual ie 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 If 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
329. rarian in Password SeS Password_ DoSetText librarian 7 Click om cElLUUSMainContent sloginUser gt LoginButton 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 2 4 5 Javascript IDE Purpose The Javascript IDE includes an editor and a debugger 2015 Inflectra Corporation 134 Rapise User Manual Usage Simply open a script to view the editing features create a breakpoint and play the script to view 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 Level 1 Minimal hi Debugging The top drop down menu has four options Choose the Run with Int
330. rce object list will be displayed with one of two icons o equals this means that the same object exists in both the source and destination test object files o not equals this means that the object only exists in the source file and not in the destination or vice versa You can see which file s an objects is defined in source destination or both by looking for the icon If you see this on the left hand side only this object only exists in the source file if you see it in the right hand side it only exists in the destination If you see it on both sides then it exists in both the source and destination 2015 Inflectra Corporation 108 Rapise User Manual aa Object Manager SOLUTES C SpiraRepository Rapise Web Demo 1 TC88 Rapr gt _ SpiraRepository Conference Web Test 1 TC42 Conterer Copy Objecttothe Right F5 Y Remove from Destination Ctrl D 5 Copy All to Destination Source ID Destination Username _ Password_ Dmi D D l py Amsterdam Log Out Hound of the Bas a am am a a ae am b b b b b p b b Merging the Objects To add an object from the source gt destination test for example the Amsterdam object in this example select the row in question 2015 Inflectra Corporation Rapise User s Guide 109 aa Object Manager source Destination C SpiraRepository Rapise Web Demo 1 TC88 Rapi C SpiraRepesitory Conferenc
331. rding FarPoint This sample script demonstrates using the FarPoint library to test the FarPoint SpreadSheet Control 2015 Inflectra Corporation Rapise User s Guide 1 HTMLS This sample tests a HTML5 application This sample demonstrates the capabilities of the HTML5 DOM browser library The application under test contains various HTML5 specific controls such as color date datetime email range progress etc The sample is also available online at http www libraryinformationsystem org Html5 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 UlAutomation 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 i
332. rds 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 library 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 li
333. ree i i Eidi arn Act Object Tree CUsers adamsandmaniD I Libraryintormationsystem od LibraryinformationSystem H a Add Book Fl 0 Get Books 7 Do Execute f Get Session GetCredential H Global GetMethod ti User Functions ME User Variables Gethame GetParameters GetRequestBodyObject GetRequestBodyText GetRequestHeaders GetResponseBodyObjec GetResponseBodyText GetPecnonceHeaderc I 9 i EEA Object Tree eee sees 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 MyRestTest1 js file in the Rapise editor It will initially consist of a single empty function Test 2015 Inflectra Corporation s Rapise User Manual EE Start Page Ps MyRestTest1 js E Libraryinformationsystem rest PPFFTFTITTS Script Steps FFFsFFFFsssFFF id Bj function Test 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 i
334. rm 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 RestServce 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 Rapise User s Guide pa 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 oor Services RestService svc session Method 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 RestSerwce svc book session_id session_id Method POST Pass a populated book object URL Name Book Name Pe or Lo o i MGenree hc sas Body Returns Single book object that has its Bookld populated The first request w
335. roceed to behavior patterns Behavior 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 SeSBahavor js After looking at those patterns it is possible 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 Win32ItemSelectable 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 Var WinsZzCustcmhistboxControl actions actionName SetItemValue DOACTIOn Function String 1temName Number value var item this findItemByName itemName if null item item getTopObject instance HWND SetForegroundWindow item instance Value value return true 2015 Inflectra Corporation ama Rapise User Manual return talee actionName GetItemValue DoAction Tunection Sering itenmName var item this findItemByNa
336. roid 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 Rapise User s Guide 155 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 Tutorial for a simple introduction to mobile device testing 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 4 8 1 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 device
337. roid 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 emulator 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
338. rom left to right Copy an entire row Copy Watch Value Delete oO 2 5 45 File Menu 2 5 46 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 Recent Tests ae New Test Create a new Test Open Open an existing Test E Open File Save e L Save the current Test gf Open Test from Spira m Save to Spira Save As Save current Test As x7 Exit Options Rapise 3 0 4 25 C Users Documents My Rapise Tests Web Color Test Web Color Test sstest Recent Tests C Users Documents My Rapise Tests Web Color Test Web Color Test sstest C Users Documents My Rapise Tests iOS Test 2 iOS Test 2 sstest C Temp login IE Rugepresa sstest C Users Documents My Rapise Tests iOS Test 1 iOS Test 1 sstest C Users Documents My Rapise Tests Website Ajax Tests Website Ajax Tests sstest C Users Documents My Rapise Tests Rest Test 1 Rest Test 1 sstest C ProgramData Documents Rapise Samples CreateNewAuthor CreateNewAuthor sstest Documents My Rapise Tests Ocr Test Ocr Test sstest C Users C Users Public Documents Rapise Samples UsingSpreadSheet UsingSpreadSheet sstest 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
339. rrent 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 Spiralest 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 7 Recent Tests This displays a clickable list of recently used tests e 8 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 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 Spir
340. rs currently Internet Explorer Firefox and Chrome It allows you to view the hierarchy of objects in the web browser Document Object Model DOM In addition it makes the testing of dynamic data driven web applications easier because it lets you test out dynamic XPath or CSS queries against the web page and verify that the objects return match your expectations Screenshot 2015 Inflectra Corporation Rapise User s Guide 99 2s Rapise Spy O x Spy R Track Ctrl T iia i v Test XPath Learn LQ Highlighting Mode Get Snapshot Options Test CSS Learn Ctri G Learn Browser Object Tools Locators A IE DOM Tree DOM Element 4 lt html xml lang en xmins http Awwew w3 org 1999 xhtml gt 4 b lt head gt lt head gt ID 7bf3872c bced c92 1 bbc6 eSdecc 135fce 4 lt body gt tagName DIV 4 lt form id ctl01 action method post gt z Pe lt div i ay lt f iv gt cass page b lt div cam aspNetHidden gt lt div gt as r lt scriptsrc WebResource axd d 9_D5u0u Ravwwil type text javasc height 690 9 niet a width 962 4 lt div class page gt x 196 4 lt div class header gt y 77 gt lt div class title gt lt div gt 4 Selectors b lt div class loginDisplay gt lt div gt css html gt body gt form ctl01 gt div nth of ype 3 xpath html body fom id ctl01 Vdiv 3 gt lt div class clear hideSkiplink gt lt div gt 4 lt div class main gt c
341. rst letter of every lt p gt element before checked disabled enabled ER EE lt N Uo W Uo N NO 09 Uo Uo N N NIN U9 N N e e Nme me A YN YN 2015 Inflectra Corporation Rapise User s Guide 337 Selector first line first of type Example description Selects the first line of every lt p gt element Selects every lt p gt element that is the first lt p gt element of its parent Example first line p first of type input focus elects the input element which has focus 2 e C G a hover elects links on mouse over Selects input elements with a value within a input in range P 8 specified range P o O onl wl w lwo lw fw wlel wo wo no fol wo ema wo e O YN YN Selects all input elements with an invalid value Selects every lt p gt element with a lang attribute equal to t Italan Selects every lt p gt element that is the last child of its parent Selects every lt p gt element that is the last lt p gt element of its parent elects all unvisited links elects every element that is not a lt p gt element Selects every lt p gt element that is the second child of its parent Selects every lt p gt element that is the second child invalid iInput invalid lang language p lang it last child p last child last of type p last of type N e WD N Oy S id Pae uN not p p nth child 2
342. runcation o Highlight highlights the element in the browser e Double clicking on an element copies it s XPATH and CSS to the ribbon DOM Element This pane displays the properties of the currently selected object 2015 Inflectra Corporation Rapise User s Guide 101 DOM Element ID fi4ae44 7 3791 0 c5 3 044 6027 9 1 Odie 2 2e tagName TR r hh ee role rowheader 4 Properties height J4 width 641 xX 654 4 Selectors xpath Jhtml body fom id ctl01 and name ctl01table id tb The properties that are displayed are grouped into the following categories e Primary o innerHTML this contains a textual representation of all the HTML content inside this element if any o tagName this contains the name of the HTML element in upper case e g TD TABLE DIV e Attributes all attributes that are not in the Primary or Accessibility section appear here o id this contains the ID of the DOM element if specified in the page o style this contains the inline styles defined for the element o class this contains the list of CSS classes applied to the element separated by spaces if more than one e Accessibility this contains all of the role or aria attributes that are defined in the W3C ARIA accessibility standard o role o aria e Properties this contains the computed positional information about the element o height o width Oo X oy e Selectors o css this is the CSS selector that can be
343. s 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 ee E Libraninormationsystemrest EE start Page e MyRestTesti_2013 06 19_14 45 trp B MyRestTestays I Aa jetty iak O Object Tree CAUsert adamsandimaniDocumentsMy Rapise Tests C Ubraryinformationsystem Jiba EE EREE Script Steps fR REE E EEGEF H 0 agd Book P n H n Get Bodie unction Test HS Get Session z1 O Inflectra Library Information System Windows Interet Explor A Author Management F authors 4 Book Management SeS LibraryInformationSyatem Get Sooks DoExecute seasion id sessionId Global L2 var books S65 Libraryinformationsystem_Get_Books GetResponseBodyOb ject j i User Functions Tester AssertEgual Book count matches 14 books length sr User Variables 3e3 Lib FSryIniorcmationsystem Car Session DSExecute null var sessionId Seh LabraryinformationSystem Ger Session j GetResponsebodyObject Tester Message s 55i0nTd Var newhook newBook Name A Christmas Carol s Odo o a l newBook AurhorIid 2 owes Object Tree newBook Genreld 3
344. s 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 dewces the architecture looks like S Windows HTTP Rapise al iOS Device 2015 Inflectra Corporation 156 Rapise User Manual For simulated iOS devices using the Xcode iOS Simulator the architecture looks like at Mac OSX iOS Simulator o 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 RJ Create or Open Test htto doctorspirateam New Folder I gt Nitki create new book Ability to edit existing book pi Ability to create new 47 New Test Case Ability to report on books on loan ae Teg that the arien lets you report Mobile Mobile 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 iPhone4
345. s 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 Recording 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 any defined object in the AUT s UI 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 UI effect 2015 Inflectra Corporation Rapise User s Guide 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 Obj
346. s DoExecute session_id c3d8dcd4 61254 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 O Total 9 Pass 7 Fail 0 Info 2 Testing SOAP Web Services This is planned future functionality for Rapise 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 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 W ebAndroid 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 AUTAnd
347. s Rapa Aa C ASpira Repository Conference Web Test 1 TC42 Conterer o Copy bject tothe Right FS gt Remove from Destination Ctrl D 5 Copy All to Destination Source Destination sername _ Password _ a Di l er j Amsterdam Log Out Hound_of_the_Bas ee a ee al Di a T b b b b b b b For each object in the object manager you will see an gt expand icon in the left hand side When you click on this icon it will expand the object to display its properties If the same object is in both the source and destination you will see the properties of both versions on the left and right hand sides respectively If it only exists in the source or destination then it will only show the properties on the appropriate side 2015 Inflectra Corporation Rapise User s Guide Je Object Manager Source Destination C SpiraRepository Rapise Web Demo 1 TCA Rapi Mu C SoiraRepositorn Conference Web Test 1 TC42 Cont gt Copy Objecttothe Right F5 S Remove from Destination Ctr D 5 Copy All to Destination Source ID Destination Log In Username _ Password _ cio Book_Management Amsterdam e 1 locations Library Information System window text IEFrame window class param object_name object text ROLE SYSTEM CLIENT z object_role Internet Explorer Server object class 0 Sf version a iai iga 1 a L EN 1 L P 1 UTRA FP nt nbhinn hron Each object in the sou
348. s button will execute the test in RapiseLauncher This is described in more detail in the SpiraTest Integration topic 2 5 39 Spy Dialog Screenshot P Rapise Spy F 2 Start Tracking Cut Jitudemation Objed Tree Properties Ragise Documentation indo tem Type Property gt ToolBar Labeled By Propesty a Panel LocaliredContinol Type Property b Panel Pane Pane b lab Ho System Menu Bar MenuBa Minimise Buton Restore Button Fi is aa t HWND Tree 4 Rapise Documentation HH Parent Toolbar Windows2 4 HH Child b Shell DocObsect View HH SazeBar 4 HH Child Sys TabControl32 ae ores od pEr ND bel Purpose The Spy dialog is used to Object Spy 2015 Inflectra Corporation Rapise User s Guide 275 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 Spy 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 Managed Object Mobile Object UlAutomation Object e Web Object There are six types of Spy available 1 Accessible This is used to inspect applications that expose their propert
349. s flash builder family html OR Adobe Flash Builder 4 http www adobe com products flash builder family html 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 HelloFlex 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 HelloHex HelloHex mxml Place the following code in it lt 7xml versaon 1 0 encoding Upi se 77 gt lt mx Application xmins mx http www adobe com 2006 mxml VLEwSourceURL sro HellorPlex index hemi horizontalAlign center verticalAlign middle width 640 height 480 Weer Mon EDARAN import mx controls Alert ii me OCE lt mx Panel paddinglop 10 paddingBottom L0 paddingLleft 10m paddingRight 10 title My Application lt mx label text Hello Flex fontWeight beld fontSize 24 gt lt mx Button id butrton Label Button click Alert show Button Pressed gt lt mx Panel gt lt mx Application gt 3 Create wrapper HTML for the application C HelloFlex HelloHlex 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 D2
350. s 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 Rapise User s Guide 227 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 FunctionName in the Description box of the test step Then when you run the test that step will be executed automatically The FunctionName refers to a JavaScript user function called function FunctionName in the Test user js file For example WiStep4 MyFunction EB 7 U A Arial v A107 AY Ye SSS 2 5 15 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 28 Rapise User Manual Mobile Settings Select Profile android nexus 7 Uri htte 127 0 0 1 4723 wd hub Details _ Primary Capabilities 6 3 app CAUsers Public Documents Rapise Samples Using Mobilet AUT AUT br
351. s st 156 SeS Simulsted Dol Click TCo000034 TS000050 256 in the canvas 156 256 RSOO0G8O Enters text This is This is some text SeSi Text1 OoSetText This I6 34 TS000051 Failed with the text being illegible some text is Some textir em Mp ial we A ee f w fi F j a f td f a 7 E P pe ae re amp Pe i F Fs eee pt ite ee 3 ee THintssamsdte ly gt View Incidents RSOOIG9 User clicks on the SeS Bold DoLClick 11 14 TCO0O034 TS000052 Not Run Bold bution If 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 Displaying 1 1 out of 1 incident s linked to this test run ae Sia results by Test Run ney a Filters O ree eevee JAR Any ay Y f B Any v aw v so IN Cedit o Did not display the correct text Incident New e Bloggs 31 Mar 2015 IN 000071 Edit Show 15 Y rows per page ld lt 4 Displaying page a of 1 gt PI Congratulations You have now successfully executed a manual test using Rapise See Also e Manual Testing e Manual Recording 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
352. se 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 ua Open i Spira Properties Y Save As Sav Ee W Saveto Spira a We This will display the Add New Web Service dialog box a Add New Web Service This wizard will create a new web service definition file inside the current test My Rest Test rest Documents My Rapise Tests MyRest Test 1 MyRestTest 1 rest Enter the name of the web service that you re going to add in this case enter LibraryInformationSystem rest and click Create This will add the REST web services definition file to your test project ral Test Fi ee S iret LibraryinformationSystem srest Test I Scripts REST Request i e all a a E myrestrestajs Name New_Request 4 E3 LibraryinformatonSystem rest Mh 5 z New_Request B MyRestTestLobjectsjs M GET z 4 8 MyRestTestluserjs gt AS a G LibraryinformationSystem rest Response Header Response Body a u ame Value 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 fo
353. se User Manual 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 and 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 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
354. se 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 web 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 Creat
355. sing a Mac to Host iOS Devices It will be necessary to install Appium and Apple Xcode 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 315 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 pn File Edit View Find Navigate Editor Product Debug Source Control Window Help _ 1 About Xcode i E E AUTIOS Preferences a j t Documents AUTIOS Behaviors P Pe e w D SafariLauncher Documents Open Developer Tool b A Instruments Services A iOS Simulator run webkit proxy sh Hide Xcode aH Accessibility Inspector Documents Aaj Ey FileM Hide Others 32H FileMerge Rs UlCatalog i Applic
356. sion 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 new SeSReportText text new Seskeport link uristring LinkTexc new SeSReportImage ImageWrapperObject imageDescription columnValuePairs is an object with key value pairs Column names are the keys Ifthe specified column does not exist it will be created Ex requirement MA Regi 223 paragraphe 12a See Also e Automated Reporting e The test samples include a sample about reporting Reporting sstest 2 4 3 2 Report Filtering Purpose 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 F i 2015 Inflectra Corporation Rapise User s Guide no Drag a column header here to group by that column Name Start Tyne Comment Status iteration a Submit Transaction DoAction 14 09 32 17 Assert Returned Value true Pass O Mm Verify that WindewText
357. sponding to client with success status value build version 1 3 4 revision c8c79a85fbd6870cd6fc3d66d038al15ebe22eTe isshuttin gDown false sessionId a2da69c 1e33 4a63 a898 5b196997cb6b lt GET wd hub status 7 921 ms 178 status 0 value build version 1 3 4 revision c8c79a85Tbd6870cd6fc3sd66d038al15ebe22efe issShuttin gDown false sessionId a2da69c 1e33 4a63 a898 5b196997cb6b debug Socket data received 38 bytes debug Socket data being routed debug Got result from instruments status value UIAScrollView debug Responding to client with success status 0 value UIAScroL View sessionid az7da69c0 1e33 4363 a898 5b196997cb6b lt GET wd hub session a2da69c0 1e33 43a63 a3898 5b196997 cb6b element 74 name 145 722 ms 87 status value UIAScrollView sessionId az2da69c0 1e33 4a63 2898 5b196997cb6b gt GET wd hub session a2da 9c0 1e33 4a63 2898 5b196997cb6b element 74 enabled debug Pushing command to appium work queue au getElement 74 isEnabled zzz 1 debug Sending command to instruments au getELement 74 isEnabled 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 http appium io and install the latest version of
358. ss 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 indicating 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 Action Data Comment OF Action Press buthor UE Verify Ctl Leam Ct2 G Spyfttle5 Pick Object Analog Ctrl 4 Cancel Finish Ltrl 3 Tattan Wwing2Button OK 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
359. sstest C Program Files x86 inflectra Rapise Engine Engine sstest Users adam sandman Documents My Rapise Tests Spira Mew Testl Spira Mew Test sstest C Users adam sandman Documents My Rapise Tests Web Test 1 Web Test l sstest CA Users adamsandman Docurments My Rapise Tests My Test MyTestlsstest C Users adam sandman Documents MaMy Rapise Tests TwoDialogsTest TwoDralogsTest sstest 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 Show DashboardOnStartUp If True the Spira Dashboard will open automatically when Rapise is opened ShowStartPageOnStartUp If True the Start Page will open automatically when Rapise is opened 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 Inflectra Corporation Rapise User s Guide 239 RecentT ests 10 ShowStakPagelnStartup StyleLibrary Office2007B lue StyleLibrary Office z00 Black Path to a file having style library configuration Office 2007 Blue Ofice200 Silver Tools Tab ig Options General Tools Build OCR Font Database Reset Layout Java Settings Mobile Settings
360. st Locator Connection Device android widget FrameLayout 0 0 800 1205 4 Calculated 0 android view View 0 0 800 1205 Automation 0 android widget LinearLayout 0 33 800 108 ld E 1 android widget FrameLayout 0 108 800 1205 0 android widget LinearLayout 0 108 800 1205 0 android widget LinearLayout 21 129 779 453 0 android widget ListView 21 129 779 453 0 android widget TextView 2 1 129 773 193 1 android widget TextView 21 194 779 258 a 2 android widget TextView 21 259 779 323 3 android widget TextView 21 324 779 388 4 android widget TextView 21 389 779 453 Index InParent TaqnName agan c Layout Height Width Properties checkable checked clickable enabled focusable focused scrollable selected texi android nexus7 Profile Select Context android idAext 1 android widget Text View Login p T i PA 0 android widget Text View 21 129 android widget FrameLayout 1 Van Recording Mode NATIVE_APP 2 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 S k Page Source pe R Disconnect a Cl a 3 Go To Url Get Snapshot Learn Ctri G Object Test Locator Connection Device android widget FrameLayout 0 0 800 1205 4 0 android view View 0 0 800
361. st copy HexLoader html and FlexLoader swf from c Program Files Inflectra Rapise Extensions Flex AlexLoader 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 Hex FlexLoader bin Sample swf Using FlexLoader for Flex 4 Applications If 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 application 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 HexLoader4 html and HexLoader swf from c Program Files Inflectra Rapise Extensions Flex AlexLoader4 bin to your web server near your application Then type in browser URL to HexLoader4 html 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 AdobeHex4 AUTFLexFP4 bin debug assets
362. st meta data lt TestName gt js the test script file lt TestName gt objects js the file that contains recorded objects lt TestName gt user js the file that contains user defined 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 estName 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 js 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 H EHHFHEEHE Script Steps PE Errr PUNGE TANM Test Scrip Logie 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 script ob jects JAAS OF OO7SCES mesed Un The Ssoripr 3 bi All Scripts must have the above three sections Full script The following functions are also recognized by Rapise and may be present in th
363. style margin right 150px gt b lt p gt lt p gt a lt p gt lt p gt est nesults b lt p gt lt p gt lt br gt lt br gt b lt table gt lt table gt b lt p gt lt p gt ch2 gt lt h2 gt gt lt table gt lt table gt lt br gt lt br gt lt div class clear gt lt div gt Object Action Data Comment lt div class footer gt lt div gt Recording Activity for Inflectra Library Information System Internet Explorer lt script type text javascript gt lt script gt The Web Spy is used to inspect web applications running on any of the supported web browsers currently Internet Explorer Firefox and Chrome It allows you to view the hierarchy of objects in the web browser Document Object Model DOM In addition it makes the testing of dynamic data driven web applications easier because it lets you test out dynamic XPath or CSS queries against the web page and verify that the objects return match your expectations For more information on the Web Spy please refer to the Web Spy topic HWND Object Hao Tree Properties a Aapse Documentation HH Pareni Tg TE Tdi MoobarWindgw3z Pos HH Child Ppi 3 4 Shell Embedding Process b Shell DocObicci View Process Marne eros With ewe HH SazeBar Size 4 HH Child a Primary SyeTabControl32 Accessible Obiect ROLE SYSTEM WINDOW macts_updoanty Class hare Shel Embedding Sys Treeview sz
364. t Will dynamically query for any HTML element that is a child of the learned Book Management object that matches the XPath In this example it will look for any table cell in a table row that has the content of the book name 2 7 6 2 CSS Purpose When testing web applications you will often want to use Cascading Style Sheets CSS selectors to query the browser DOM for elements based on the scenario under test This section explains how you can use CSS selectors with Rapise to make your browser testing more flexible and adaptive to changes on the screen CSS is an alternative to XPath that is often better at selecting multiple elements from across different parts of the DOM Tree unlike XPath which is strictly hierarchical However since CSS is not always able to uniquely locate an object when Rapise is used in recording mode it will learn objects automatically using XPath 2015 Inflectra Corporation Rapise User Manual CSS Fundamentals In CSS selectors are patterns used to select the element s you want to style Here are the different operators that you can use in CSS selectors Example Example description Intro Selects all elements with class intro firstname Selects the element with id firstname Selector class div p div p Selects all lt p gt elements where the parent is a lt div gt element Selects all lt p gt elements that are placed immediately after lt div gt elements element ele
365. t FrameLayout 1 ang 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 Rapise User s Guide e Recording Activity for Device H Object Action Data Soe a Lagin Leamed text edit_usemame Taa Leamed edit_usemame edit password Leam Leamed edit_password android widg Leam Login Leamed android widget Button home Leam Leamed home te y i Ea h i a 1 th Now click on the Finish button and you will be taken back to the test script with the Android objects listed a IR cl w al Ga i Rapise 3 0 4 27 C Users adam sandman Documents My Rapise Tests Android Test 3 Tet Eat WA i Open E Open Test from Spira No Debugging r Cb la My a 5 S a R i Y Saves q Manual Steps Level 1 Minimal Save Record Learn i Play ___ _ Options Find in ay Save to Spira jy Web Services ii Spy Files File Recording amp Learning Debugging Executing Tools L id n ME PE Object Tree C Users adam sandman D F DI RRRERREFE Script Steps FeFFFF FFF FFFFF p im aoe _widget_Button Button android function Test b b edit password ledit password 0 SS SS Ht b p a ea prie
366. t 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 ae ee T Se ee eae ETE mra EEE a a eee Test Pass SS Total 6 Pass 5 Fail 0 Info 1 This is the report 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 2 4 8 2 Android Purpose Rapise lets you record and play a
367. t Lsstest Open C Users adam sandman Documents My Rapise Tests MyTestl MyTestl sstest Open an existing Test amp Open File C ProgramData Documents Rapise Samples CreateNewBook CreateNewBook sstest Save G Users adam sandman Documents My Rapise Tests TwoDialogsTest TwoDialogsTest sstest fave the current Tesi C Temp Smoke lest SmokeTestiSmokelest sstest ge Open Test from Spira g Save to Spire C Wsers adam sandman Documents My Ragise Tests Auto Test L Aute Test Lastest Save As Tilsen adam sandman Documents My Rapise Tests REST Test Projecti REST Test Project sstest Save current Test As CA Temp Rapisetests ECF_ AutoProjectBackup DO MOT DELETE ECF AutoProjectBackup DO NOT DELETE sstest a Ext 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 293 Open the Application Menu by clicking on the Tab at the top left of the Rapise window Rapise 2 1 3 33 C Users adam sandman Documents My Rapise Tests Spire New Test Spira Ne Recent Tests Recent Tests i Create From Spira Manual
368. t Tree HTMLS Properties _ a Java Java SWT G21 S a a Output Warnings Errors Find Results TNUM i inflectrs 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 Bo Author Management WELCOME TO THE LIBRARY INFORMATION SYSTEM This sample application lets you viei 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 borrower and to make changes to the list of books of 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 system and Rapise fest automation system Both of these products are marketed by inflectra Corporation P O s spir fes Rapise _ inflectra Test Management Test Automation Inflectra Corporation Thi sample application has SOAP and REST web senice 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 Rapise User s Guide 15 The Select an
369. t 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 22 Rapise User Manual H Object Acton Data Comment y q SetText Inflectra Set Test Inflectra ing we 2 bitni Click Click on bini Context Menu If you right click in the grid you ll see a context menu with three options Trials amp Demos i On gt Delete Action s Edit Action Try Action Object ID Action Davction Comment Press button OK e Press Try Action and Rapise will execute the action Widgets i l Learn Ctri 2 a Spy Ctri 5 Pick Object Pause Analog Ctri 4 Simulated Cancel Finish Ctri 3 Last captured HIMLOb ect http www google com search hl en F Trang
370. t project test folder and test case that this test is associated with If 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 operation 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 C
371. t script 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 treeview represented as an XML document Go to URL This will instruct the mobile device to navigate its built in web browser to a specific URL 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 Select Profile This lets you change the profile of the mobile device you are testing while the Spy dialog is open Edit Profiles This will open up the Mobile Settings dialog box You cannot be connected to do this 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 280 Rapise User Manual listBoxitem0 List tem listBoxltem2 Listltem listBoxltem3 Listltem listBoxltem4 Listitem tem Type Property apejen ByFroperty NameProperty Native Window HandleProperty Orientation Property ProcessidProperty Runtime ld Property Automation D Index nParent Name Native Handle E SelectionPattemldentifier an eleri Miuitiole Fropert Not supported Not supported list 1378098 Not supported Feo System I
372. tApp 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 Rapise User s Guide 231 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 o autoAcceptAlerts Accept iOS privacy access permission alerts e g location contacts photos automatically if they pop up Default is false Values true or false o nativelnstrumentsLib Use native intruments lib ie disable instruments without delay Values true or false o 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 o safariAllowPopups Sim only Allow javascript to open new windows in Safari Default keeps current sim setting Values true or false o safarilgnoreFraudWarning Sim only Prevent
373. tField Label Picker Switch Slider Image 20 Advanced Controls WebView ScrollView TextView Search TabBar Pagel 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 Rapise User s Guide 279 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 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 Disconnect This option disconnects the Spy from the mobile device and ends the connection 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 tes
374. tT Activation e ring amp Learniv ggINg c ol Help Object Iree Ll T Start Page B TwoDialogsTestjs a x W n g a WD Object Tree CWUsers adam s o ox 8ss22t2 Script Steps 2222222222224 P f j Inflectra Rapise Two Dialo lt gt OK OK d function Test gt jabi Please_enter_your_na i gt O Global Oh User Functions Recorded at Thursday 04 September 2014 12 06 24 var sef g ver User Variables Please enter your name Change text to chris SeS Please enter your neme_ DoSetText chris Press button OK SeS OK DoAction g load libraries Generic Test Files Settings Object Tree Notice that the two steps of the script are automatically documented and that they 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 a P Play or the toolbar ecuting 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 amp S ay 3 5 X a s fj Merge Cells lt Collap Plain S Hierarchical Save Layout Sk Expand Export Export Che I
375. talled 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 321 Android SDK Manager Packages Tools SDK Path C Program Files x86 Android andnoind sdk Packages igi Name F Rew Status 4 E Tools F Android SDK Tools Installed F Android SDK Platform tools Installed F 4 Android SDK Build tools Installed F 4 Android SDK Build tools Not installed E 4 Android SDK Build tools 2 Not installed Android SDK Build toals i Mot installed a 3 Android 5 1 1 API 22 E E Documentation for Android SDK Pa gt Installed E SDK Platform 2 Installed E Samples for SDK 5 amp Installed TE Android TV ARM EABI v7a System Image 2 Installed E Android TY Intel x86 Atom System Image 7 gt Installed EE ARM EABI v7a System Image 2 Installed Show W Updates New W Installed Select New or Updates C 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 rathe
376. te File 282 Create New Test 206 Create Sub Test 211 Cross Browser Testing 310 Custom Library 89 Custom Recording Library 89 Custom Strings 145 233 2015 Inflectra Corporation D Data External 127 Data Driven Testing 127 Debugger External 137 Internal 134 Default Layout 294 Defining Functions 122 Dialogs 7 205 DLL functions invoking 144 DLL objects creating and using 144 DLL Testing 144 _F Engine 131 Enter Filter Criteria 212 Entry Point 294 Errors View 214 Events Dialog 205 Examples 10 Execution 112 113 Execution flow 135 Exeuction Pause 136 External Data 12 7 External Debugger 13 7 External Files 124 _F Features 7 76 Filter Group 284 Filter Report View 118 Find 215 216 217 Find and Replace Dialog 215 Find Results View 216 Find Text Dialog 217 Functions 122 350 Rapise User Manual ee Getting Started 7 8 Global Variables 124 Guide Overview 7 IDE 133 Include External Files 124 Including Functions 122 Internal Debugger 134 a Java Testing 313 Javascript IDE 133 si a Learning 80 Library 8 7 MbUnit 146 Menus 7 205 Meta Data 145 Multiple Recordings 91 Multiple Browser Testing 310 N NameValue Collection Editor 233 Naming Conventions 122 New Group 282 New Test 206 292 NUnit 147 0 Object Learning 80 Object Locator 114 Object Manager 103 Object Properties 240 Object Recognition 114 Object Spy 92 274 Object Tree 235 Objects File
377. temsest Harme Add_Book E Librarinformaton System real Det Season Method POST hiipi ibrarainformationsystem org Services Resi Senice svo book session_id session_ic Send 5 Gat Credentials libraran X 5 Add Book Headers A Hame Waluya Operatons Accepi spolestionson ContentType apohcaton son X Parameters ja Hama Walue Operations session_id 82499beo 37e4 4c64 820e 02d798ed 1e84 insertin URL gt We have now completed the creation of our third test operation Click on the Save Requests button in 2015 Inflectra Corporation Rapise User s Guide a9 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 Object Tree button in the Rapise REST Ribbon to tell Rapise to update the Object Tree with our new requests e l 7 j Add Add Add 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 Objed T
378. ternet 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 SMainContent btnSubmit DoClick Pass Internet Explorer HTML Returned Value true 0 Test Files Settings Object Tree Assert 11 47 16 654 Failure in Test Fall Internet Explorer HTML 0 Propaan t Test Fail Pay Ine utput 239g 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 Output Warnings Errors Find Results NUM Inflecira Corporation The Report Viewer displays test 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 R
379. test script Usage There are two ways to maintain additional functions 1 Inside your test script and 2 in an external file 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 2015 Inflectra Corporation Rapise User s Guide 123 lla Test Scripts B MyTestLjs E MyTestLobjects js 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 i abl password E A signon Ehab username O Global E Global m cr EREN Spreadsheet E Tester You can define your function in another file and include it For example 2015 Inflectra Corporation 124 Rapise User Manual Withdraw 12 34 j 7 Inielude Gelli eyrurnetions js oO det eae trunclion Deposs E eval g_helper Include Global GetFullPath UtilityFunctions js Deposit is defined am ei hiryrunoctacns JSE Deposit 560e See Also e To learn more about what the Script Recorder will change in your test script see Multiple Rec
380. 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 250 Rapise User Manual Test Report i iy Open Open Test from Spira No Debugging gt C tay ae J Object Mgr L amp Search Help G Start Page W Save As ESI Manual Steps ree Level 1 Minimal X a FJ Spira Properties HelpIndex 5 Spira Dashboard Save Record Learn Play Options Findin Help AW Save to Spira Gj Web Services Spy Files J 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 available File E fE Open E Open Test from Spira Y Save As 2 Manual Steps Save al SavetoSpira cg Web Services Fil iti 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
381. the Right F4 X Remove from Destination Ctrl D Copy All to Destination _o P a g Tit a a id Eg i Ed J LJ 4 Lad Hound_of_the_Bas_ Then click on the Remove from Destination Ctrl D ud Object Manager S o a aaan aae aa TE C SpiraRepository Rapise Web Demo 1 TCB amp Rapi_ e C SpiraRepository Conference Web Test 1 TC42 Conf Copy Object tothe Right F5 W Remove from Destination Ctrl D 5 Copy All to Destination AE i e aoo M E E aen Dmi a l l l ee 2015 Inflectra Corporation 112 Rapise User Manual The object will now have been removed from the destination object tree 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 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 described below 1 You will first need to open your test There is no need to have the AUT Applicatio
382. the events in the recording activity dialog Recording Activity for Device Data a Login edit_usemame Leam edit password Leam android widg Leam Leamed text Leamed edit_usemame Leamed edit_password Leamed android widget Button Leamed home Pick Object C Fnsi Now click on the Finish button and you will be taken back to the test script with the Android objects listed 2015 Inflectra Corporation 172 Rapise User Manual IR id w D wi EE Fee 7 Rapise 3 0 4 27 C Usersiadam sandman Documents My Rapise Tests Android Test 3 Test Edi wy dar Open f Open Test from Spira has Debugging 17l O _ ee us W Save As eS Manual Steps i Level 1 Minimal F i fy Save Record Learn a Play i Options Find in W Save to Spira 4 Web Services Spy Files File Recording amp Learning Debugging Executing Tools Object Tree H Y ani F E Object Tree C Users adam sandman D wii lz lhe J REE ET EF Script Steps FFF FFFFFFFFFFF gt ab android_widget Button android Tiarat ail abet function Test b labll edit_password edit_password gi E ar ee l S apena jetit usema SeSConnectMobile b Lal home home de Recorded at Thursday April 16 2015 11 48 37 PM b A text texti L gt C Global fo User Functions ar User Variables g load libraries Mobile Now that we have the objects we can drag
383. tion file sstest 2 5 25 Source Editor Screenshot Blautocomplete js x rr Use Record Learn button to begin test recording p function Test i i var startIndex 35 l var endIndex s 7 i var saved script_objects startlnidex F ii 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 268 Rapise User Manual 2 5 36 Spreadsheet Viewer Screenshot Ej MSExcel xls MSExcel Drag a column header here to group by that column Item1 temz Sum F4 ff error mi 2 3 10 4 5 ma Le Purpose To display excel xls files 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 ad Start Page x Spiraleam Documentation Open Spira Dashboard CreateNewAuthor est Description Rapise Quick Start Gui Preparing Firefox for T Preparing Chrome for Jl Use the dashboard to link tests to test cases create and run test sets iO view automation hosts and more iy
384. tions 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 upper 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 c
385. tive Analog Recording Let s once again use our trusty over simplified TwoDialogs sample application to learn how to use relative analog recording 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
386. to get that row s data Here is an example of the code needed to loop through a list of records 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 4 SELECT FROM TsTt_PROJECT 7 Tester Assert Successfully Connected success Var count Database GerRowCount Tester Message count 2015 Inflectra Corporation Rapise User s Guide 131 Loop througi Che row while Database DoSequential var projectId 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 reconcil
387. tool A SeS Text DoL Click 14 16 F TS 49 H Step 6 User clicks at 156 256 in the canvas SeS Simulated Dol Click 156 256 TS 50 i Step 7 Enters text This is some text This is some text SeS Text1 DoSetText This is some TS 51 textir T Step 8 User clicks on the Bold button SeS Bold Dol Click 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 Edit Parameters e Execution Step Description Expected Result Sample Data Sasa 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 vj Step 2 User clicks the main E SeS Application_menu DoLClick 42 Not Run TS000046 gt Edit o Application menu aN 12 Cl qv Step 3 User clicks the New entry SeS New DoLClick 44 13 Not Run TS000047 Edit g OC o Step 4 User clicks on Pencil A SeS Pencil DoLClick 15 9 Not Run TS000048 Edit O step 5 User clicks the Text tool Al SeS Text DoLClick 14 16 Not Run TS000049 Edit Cl 0 qv Step 6 User clicks at 156 256 in SeS Simulated DoLClick 156 256 Not Run TS000050 gt Edit the canvas Oo o vj Step 7 en text This issome This is some texi
388. true Fath 4 1 Window Class param window class window Name param window text 3 2 3 E 3 3 Enabled true O Rectangle r Class parancobject_flavor Height 26 Left 101 Name paramobject_name Role param object role Top Tie Width 5 Window Class param window class window Hame param window text El Object ID OK O Recognition Class _ paramobject_ flavor Ignore Object Name false Name OK Role ROLE SYSTEM WINDOW Text parancobject_name El Window z T 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 cal
389. tryPoint Test l 4 TestParams 5 items 7 Intemet Explorer HTML Record Title Intemet Explorer HTML ServerProjectid Firefox HTML Server TestCaseFoldg Chrome HTML Serer TestCaseld 4 Execution CacheObjects False Commandinterval 1000 eration Count 1 binst l mnla nrn AH arant letan A In addition it is possible to have more control over the cross browser execution using the available APIs and configuration variables You can also run the recording in multiple browsers in succession using either a Rapise sub test or simply executing the test from our SpiraTest test management system and passing through different parameter values DOM API In addition to the usual recording learning and playback that is similar to testing other technologies desktop mobile etc there are some unique functions that are available on all recorded web objects Upon learning a web element in Rapise you get an object of type HTMLObject Each HTMLObject provides set of functions to facilitate the cross browser access to web element parents and children DOM Function Description DoDOMChildAt Returns n th child zero based DoDOMChildrenCount Returns number of children elements for this one PO DOM Pind Pareit WU i cg parent element if any with given attribute matching given string or regex ribute DoDOMGetAttribute Returns specified attribute DoDOMNextSibling Returns next sibling element for this one DoDOM Parent Returns parent element havi
390. ts 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 that value or content with what you expect it o be 2015 Inflectra Corporation 10 Rapise User Manual 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 m
391. uest 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 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 FE Start Page MyRestTestLjs Lal LibrarjInformationSystem rest REST Request Name Get_Session Method GET httoo wwew_libraryinformationsystem org Senices RestService svc session Send Send Credentials librarian X Body Response Body Formatted AML lt stning xmins hiip schemas microsott com 2003 10 Senalization gt e46ee529 fdef 40c1 9391 2deb3 70924 fe lt string 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 c
392. uilt in web browser to a specific URL 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 Select Profile This lets you change the profile of the mobile device you are testing while the Spy dialog is open Edit Profiles This will open up the Mobile Settings dialog box You cannot be connected to do 2015 Inflectra Corporation Rapise User s Guide 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 fev Start Tracking Ctri G H j a MainForm AUTDotNetMainForm a E ManagedSpy Properties propertyGrid1 System Windows Forms PropertyGrid Component Type a checkedListBoxl System Windows Forms Checked ListBox Handle 1180844 dateTimePicker1 System Windows Forms DateTimePicker g lsManaged True dataGridView1 System Windows Forms DataGridView uiton toolStrip1 System Windows Forms ToolStrip AccessibilityObject btAlias 5ystem Windows Forms Button Accessible Default Action Descripti listView System Windows Porms ListView Accessible Description listView1 System Windows Forms ListView Accessible Name contextlenuHolder System Windows Forms Lab
393. ure 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 AUTiIOS 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 324 Rapise User Manual android sn Documents AUTIOS Documents ALTIOS SatariLauncher Documents t 2 a run webkit proxy sh Documents UiCatalog J nguikitControlsObj CandSwift Objective G EF Welcome to Xcode version 6 1 647052 hybrid md fnode_modules appilim docs an InternationalMountains Documents Get started with a playground i Explore new ideas quickly and easily mobile web md node_modules appiunydocs an Create a new Xcode project Start building a new iPhone iPad or Mac application troubleshoating md fnede_modules appiumdocs an Check out an existing project f InternationalMountains app zip start working on something from an SGM repository ap cirri ra Open another project Open the AUTIOS pr
394. url of the webpage has changed Use the global variable g_locatorparams as in the following example function Test Here we use direct parameter overriding seS Oa url http neraddr DoAction seS 10pj2 url bhttp neraddr DoActirion And this is equivalent to above ceo 0p DoAction SeS CN EI n DAC on 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 2015 Inflectra Corporation ne Rapise User Manual 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 Marne stari ype Lomment status iterator A E E I K A Character read successfu 15322689 Assert T Pass 0 amp a Letter size is 44 3 d 1532 2 8 89 Assert j EZI IE 4 Character read successiu 15 32 26 90 Assert Pass 0 a Letter size is 24 LS52 26 927 Assert Text e Font Name Calioi mes Pass 0 W Character read successfu 15322893 Assert 5 Pass D a Letter siei 12 1 3 2 26 93 Assert Text S Font Name s Calibri Sizeezl Pass a
395. utomated 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 164 Rapise User Manual For details on this please refer to the Technologies 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 Android devices the architecture looks like Mac OS X Windows Android Device Android Device For simulated Android devices using the Android Virtual Device Manager the architecture looks like 2015 Inflectra Corporation Rapise User s Guide 165 R Mac OS X
396. uttons are highlighted with green boxes show buttons are highlighted with purple boxes 2015 Inflectra Corporation 140 Rapise User Manual function EnterNumber nut for war 1l O 1 lt gt num length i i digit num char ti il SeS Button gt digit Dod ction function Operation lop J 3 function triml str charlist hje 9 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 1js 3 function ali CA Program Files Inflectra Rapise Bink Tempi Test My Testlys L1 mismatched input 9 expecting RPS amp REM We have a typo here We used instead of Once the error is corrected the warning view clears automatically 2015 Inflectra Corporation Rapise User s Guide tat S MyTest 1js Ce 1 El function alli z iL 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 S 3S EGitbex DA DeSick iy DeEersureVisiblel This 18 l
397. 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 a New Test Set 2014 75 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 274 Rapise User Manual 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 of Rapise is installed on Test Sets My Assigned x Id Name Description Action Txoo0008 E Functional Test Sets o nE Is Tectia Heer P er all the new features introduced in the last 3 sub W Txo00006 Exploratory Testing Tx000009 E Regression Test Sets C TAOO0003 I5 Regression Testing for Windows 3 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 thi
398. will display the following dialog box Add Request Header Name Accept Value application json 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 Rae dhe S EAA LibraryinformationSystem rest REST Request Mame Get Session Method GET httpiiwaw libraminformationsyatem org Senices RestSerice svo session Send Credentials librarian x Headers A Name Value Operations Accept application json gt Content Type application json gt Body w Now click the Send button and the request will get sent to the web service 2015 Inflectra Corporation 46 Rapise User Manual Response Header Formatted JSON Name Value Status Code 200 OK Content Length 38 Cache Control private Content Type application json charset utt 8 Date Tue 18 Jun 2013 20 15 45 GMT Set Cookie ASP NET Sessionld i3x3krobs5osudy2e3acs Server Microsoft IS 7 0 AspNet Version 40 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 Body Formatted JSON 62499bec 3 fe4 4cb4 820e aed 8cd 1284 We have now completed the creation of our
399. wn as DOM objects that make up the web application web page being tested The elements are showing in a hierarchical tree representation that mirrors how they are nested on the page Each element is displayed along with the various attributes class id style etc that are associated with the element IE DOM Tree JE d lt himl xmi lang en xmins htp iwaw w3 org1 999xhtml gt b lt head gt lt head gt 4 lt body gt d lt fonmid ctl01 action method post gt b lt div class aspNetHidden gt lt div gt lt scriptsrc WebResource axd d 9 D5u0u Rawwi type text javasci CELLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLE a lt div class header b lt div class ttle gt lt div gt b lt div class loginDisplay gt lt div gt b lt div class clear hideSkiplink gt lt div gt The DOM elements are shown in gray with the attribute names being displayed in red and the attribute values in blue Sometimes you have more attributes displayed than can be easily red To make viewing the DOM tree easier you can use the Web Settings dialog to set a list of attributes that should be excluded from the DOM tree pane e When you click on an element in the DOM tree its properties are displayed in the DOM Element pane and it s highlighted in the web browser e When you right click on an element it opens a popup menu with the following options o Copy copies node text to clipboard no attribute t
400. xample 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 s memen 5 Executing MS Paint Test E So MS Paint Test gt i BZ U A Aral A107 Aly My Basa ijl es Step Se Pass Pass Ally Caution Fail 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 E wrong E WBZ U A Aral A107 AY My Basa i 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 184 Rapise User Manual Click on the Log Incident button to display the new incident entry screen 5 New Incident o e lel Save Details Description Name The text did not display correctly in MS Paint Description B Z U A Arial Miy AVY Sas When entered some text it did not display correctly in MS Psint Sy Type Bug X Status New Detected By Fred Bloggs v Priority 2 High Severity None X Detected Release 1 0 0 0 Library System Release
401. y Diaog dialog presenting all the available information for the object See Also e See the Object Spy Dialog for more details 2015 Inflectra Corporation oa Rapise User Manual 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 Aecessible Tree Properties 4 ROLE SYSTEM CELL state Ted Screenshot ROLE_SYSTEM_TEXT Primary select an application to record dialog ROLE STSTEM_GRAPHIL mike MS Store User ROLE SYSTEM _TEXT Purpese ROLE_SYSTEM_TEST The ROLE_SYSTEM_TEXT Select an Application to Recond ROLE_STSTEM_TEXT SAR Dialog appears before ROLE_SYSTEM_TEXT Recodo ROLE SYSTEM_LINK mk EMSIT Store C Users Publ Documenis Rape Hel takes place It quenes the user for which program to record a5 well as what ROLE_SYST E Recording Library ROLE_SYSTEM_UNK mks MSI Store C Wsers Pubic Documents Ra Rote to wee ROLE_SYSTEM_TEAT ciate i ROLE_SYSTEM_TEAT Value 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 T

Download Pdf Manuals

image

Related Search

Related Contents

  Samsung SyncMaster  PETIT MANUEL D`UTILISATION DE LA MAISON  製品仕様書  大使フラッシュバルブ  XFX HD-557X-ZNF2 AMD 1GB graphics card  - ZKAccess    18-00072A 取扱説明書のダウンロードはこちら DOWN  Castle Care 2000 User Manual  

Copyright © All rights reserved.
Failed to retrieve file