Home
Rapise Quick-Start Guide
Contents
1. 071202 on ovisvivainconvenc Lecinvaerscoginsurcon s oruousuaanconcenrsuacanvees 1001208 om Baok Management Se Management DoCLick s B Y Database Glain Gba B nag Ses anstersan Get InnerText 9 Ger er T Ses Edit DOCH ek O Spt Spreadsheet 2 Toate Testa Se3 Beck Management DoCliek j Chiek om Create new bock es Create sem 1 DeChickQ l be Ses aochor Managenent DocMek Now we need to just consolidate these two lines into the actual test Using the script editor change the two lines from Tester AssertEqual null null SeS Amsterdam GetInnerText To Tester AssertEqual The Ses Ans lues mat dan GetInnerText Now click Play to playback the new test pens Beam 3 Draga columen header here to that column al j uj d J Hui 122705551 anoshanconenisiopoikasiogansen Retura ae ue Hem 102700908 eck anager DOC es Remot ves te D ham 02709802 D 002893 rca vate ue D Hem 02701028 Doce ex D Het o 122742625 Tes aumen vue ue D Mee 1222348 ior anager DoCS Pee Rue true D poset arsa reenen anton Deck Tess Pat
2. NCC Lean 9 Fick Obiect Analog ET Cored Finish ast captured puma braryirfomatens sem or JE Transparent Click Finish and the object will have been added to your test s Object Tree Object Tree nd Object Tree CiUsersladem sandmaniDocuments gt Library Information System Intern Library Information System Log In Internet 4 Library Information System Book Managem _ Create new_book__ Create new boo E Amsterdam Amsterdam Library Information System Author Manage gt Global User Functions Mic User Variables You can now expand this object and drag a test function to your test script For example if you wanted to get the textual value of the cell in your test drag the GetInnerText function into your test script AN Seve to Spin dy Web Services Tues step ve merae D demens ete Venise IE 2 2 Learning an Object from XPATH In addition to letting Rapise automatically learn the object from the Web Spy you can manually enter in XPATH or CSS queries to find matching elements on the page and then learn those for use in your test For example suppose we want to dynamically find the row that has
3. 300 Saet Teilen iwi LII on 0 1 LeerSLogriBurtzr Gaye eee 9 p Fee top right WELCOME TO THE LIBRARY INFORMATION SYSTEM son catalog or ne authors too nasa to torn tes adorat spiratest Rapise inflectra Mei Miis nat Thissampleaoplicaionkas SOAP and REST web ence AP at co be tested by faise You should now be on the main menu of the Library Information System with the user s name listec et teoks nthe y 2 wel wew east an ct bar the I Log Out 1 rt tangs to the et ot oot or aume Click the Book Management button It is highlighted in the next screenshot LIBRARY INFORMATION SYSTEM Book Maragement You should now be on the Book Management page see the below image LIBRARY INFORMATION SYSTEM Loa Ost Book MANAGEMENT Tiefe books syster te Tene Joma um cur cf he eee je The Se Ton nan cosamponryFcton Tesi eah lan evan Contemporary Fete orent prm adeste Gates Deke eon vanana 12 Pope ais Dickens tenia ton 12 bem on t
4. ee n pru RSET 9 Paus E Lo E Transparent The RA dialog has a grid As you interact with the Library Information System program the grid will automatically populate with your actions 1 4 Recording the User Interactions 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 LIBRARY INFORMATION SYSTEM Account Information 8 In the username text box type librarian 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 Acti fr Library Infermaton System Windows intere Am Dua pem lah i Leman 00 Selet d mo Sa tes Ges So e Analog Ctr Simulated Finin Cat Pazos represent the button click Recording Acti for Library Information System Windows Internet Explore The password for user librarian is also librarian Type the password 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 TENE pm Wi Okon tagin 302 Seat ibatan Sa Tee
5. orte shri you wil resto on ss beer and te mate charge to the let ot Tika tl aps iit pe apc et in hppa Spec itt manasa tem ad pn sen Boh eu recht me rane by cta Cra spiratest inflectra Managemen Test Automation neces Corerston epson has SOAP and REST we be ted by Rai Make sure your browser zoom is set to exactly 100 for recording and playback 1 3 Starting the Recording Session In the Rapise window press the Record Learn button on the Ribbon Record Learn Recording amp Learning The Select an Application to Record SAR dialog box will open Tet von Ca Fest store o NE 8 Cmm fen te ier Suse Clin sa ON endi Crean ier dee Pte Corr Tia DTe oaee 500 C Ymg mn Tanta Tel pte cosi adot Cpanel SH C ogan ir ELPA ere XP Men SHOWS Ent Copan enn Syaa Con Ta ra ACY ir oan ran rane as ngon o s ir sra prea ree PA Menge 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 Ex
6. Rapise Rapise Quick Start Guide Inflectra Corporation inflectraZ Contents Introduction 1 Recording Your First Scrip 1 1 Open Rapise 1 2 Opening the Application Under Test AUT 1 3 Starting the Recording Session 3 1 4 Recording the User Interactions 5 1 5 Playback of the Record Actions10 2 Using the Spy Tools in Rapise 11 2 1 Learning an Object Using the Web Spy an 2 2 Learning an Object from XPATH 14 3 Next Steps 18 Introduction Rapise amp is a next generation software test automation tool that leverages the power of open architecture to improve application quality and reduce time to market This guide provides a quick step by step tutorial for creating a sample Rapise automated test against a web application and playing the results back For further information on using Rapise please refer to the more comprehensive Rapise User Guide For information on using Rapise in conjunction with our SpiraTest test management system please refer to the Using Rapise with SpiraTest Guide 1 Recording Your First Script In this section you will learn how to record and execute Rapise script We will be using a demo web 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
7. That will now learn a new object that corresponds to the Edit Amsterdam object Recording Activity for Library Information System Book Management Intemet Explorer Ces an D Comment TTC RR Verily Leam Cirle2 50011 5 Fick Object Resume ETT E Last captured FTMLCject His reryiformelionzyatem cr Pi Click Finish and the object will have been added to the Object Tree of the current test 0 Object Tree C Userstadam sandmanlDocum gt Infiecira Library Information System Int gt Library Information System Log In Inter 4 Library Information System Book Manag gt A Creole new book _ Create new gt Amsterdam Amsterdam 4 Edit Edi DoAction DoAddSelection DoAnalogPiay Doiic To click on this object simply drag the DoClick function for the new object from the Object Tree into the test script This will cause the book details page for Amsterdam to be display during test playback 20150503 sop duickSemip Set Text librarian in Password 3e3 Password_ Doser Welaee on erii Ses ctL20suasnConvent sLoganUsersLoga DOCLa Click on Book Management B Decr Tie sensa sarcina Doc C ntes Library Intormaton Syston Int C Li
8. right LIBRARY INFORMATION SYSTEM LI RET WELCOME TO THE LIBRARY INFORMATION SYSTEM Tis sample appkilion lets you vien create edt bein te Har catalog as view cae ard et uo Tove the ibrary cate the authors ts yu lend to agin as a ard ta make changes to the bst o bo ved in the populer SpiraTest tst agement stem or Rapise systern Both hese products ane mated by ec spiraTest Rapise inflectra To end the recording session you can either press CTRL 3 or press the Finish 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 By Open Qj Open Test from Spira N Save As lij Spira Properties A Saveto Spire Web Services File 1 5 Playback of the Record Actions 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 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 wi
9. the cell containing Amsterdam and then click on its Edit hyperlink Open up the Web Spy as before In the Locators section of the Web Spy enter in the following to locate the table table Bid MainContent grdBooks Now click on the Test XPath button to display the matching results table Gid MainContent grdBooks Test xPath Leam Bes dem Locators Test Results 4 Locator tablef id MainContent_grdBooks found 1 Gable class dataGrid id MainContent_ardBooks style border collapse collapse backs border Now that we have matched the table we need to add dynamic XPath to find any row that has the cell containing Amsterdam and find the edit link You can expand the table and see the rows and cells visually and that will help us create the XPATH I table id HainContent grd amp ooks tr td text Ansterdan td 5 a This XPath consists of the following elements 1 Finds the table with the specified ID 2 Find any row inside that table that contains a cell with the text Amsterdam 3 For any matching cell get its parent row and inside the fifth cell get any hyperlink In this case that will correctly locate the Edit link for the book Amsterdam Now that we have the correct item identified click on the Learn button to the right of the Test XPath button
10. 1 1 Open Rapise Go to Start gt All Programs gt Inflectra gt Rapise The following window should appear New Test If this is your first time using Rapise on this computer you may see the following dialog box T ire ec NUN If you see this it means that Rapise is trying to connect to a SpiraTest server SpiraTest is our web based test management system It is a powerful tool that can store your Rapise tests and deploy them onto remote machines for automated regression testing However for now just click on the Cancel button and you will see the new test dialog e rare the reto CEPI Sis elo doti ENoeadarcacnariDosumonte ir Faris Tose Weedon Docenti Fame Tet ick St Tk Slat te Srectonetotacar Baie T Ratios cos lera redde Sec ne be ved foi rgo ee Now enter the name of your new test Quick Start 1 and click Create You are now ready to record your first test 1 2 Opening the Application Under Test AUT Open Internet Explorer You will find it in Start gt All Programs gt Internet Explorer Internet Explorer navigate to htip www libraryinformationsystem org LIBRARY INFORMATION SYSTEM WELCOME TO THE LIBRARY INFORMATION SYSTEM esas phon et youve and e took ihe bar cog sve sov st authors the
11. Plan SpiraTeam Rapise and Inflectra are either trademarks or registered trademarks of Inflectra Corporation in the United States of America and other countries Microsoft Windows Explorer and Microsoft Project are registered trademarks of Microsoft Corporation All other trademarks and product names are property of their respective holders Please send comments and questions to Technical Publications Inflectra Corporation 8121 Georgia Ave Suite 504 Silver Spring MD 20910 4957 USA support inflectra com
12. e Hout Crete Maser era io Crate Maser Moy iat Click the Create new book link BOOK MANAGEMENT The following books exist in the Create new book You should now be on the Create New Book page see image below Click the HOME button to go back to the main menu LIBRARY INFORMATION SYSTEM CREATE NEW BOOK Pease erter the book and ciek Insert Book Infermatin to SES insect Concei Now click the Author Management button Author Management You should now be on the Author Management page see image below LIBRARY INFORMATION SYSTEM eden tiaan AUTHOR MANAGEMENT niic citi be spleen m me Be IT un Artur conan poji xs ter b rar Click the Create New Author link AUTHOR MANAGEMENT The following authors exist in the syster 1D Name Edit 1 lan McEwan Edit 2 Charles Dickens 105 Edit 3 Arthur Conan Doyle 125 Edit 4 Agatha Christie 98 Edit You should now be on the Create New Author page see below Click the Home button to go back to the main menu LIBRARY INFORMATION SYSTEM CREATE NEW AUTHOR Author Information Atthis point there should be approximately ten rows in the RA dialog grid You are now back on the Main Menu Click Log Out top
13. llapse the elements to see how the web page is constructed This is useful when testing application since many of the HTML elements on a page may be used for layout purposes and will not be visible in the browser In the example page we have expanded some of the nodes to display the main section of the page and the table that contains the list of books In addition you can use the Track Ctrl T tool to select and item in the web page and then have it be highlighted in the DOM tree For example if we want to find the cell that contains the book title Amsterdam simply click CTRL T on the keyboard move the mouse over the cell in the webpage wait until the red highlighting rectangle appears and then click CTRL T again Rapise will now highlight that item in the DOM Tree automatically OH ILL rn REIS cota west pr A You can see all of the properties of this HTML element displayed on the right specifically The tagName is displayed as TD always upper case The innerHTML of the element is displayed Amsterdam The CSS and XPath for locating this element is displayed If you want to use this object in Rapise test script you can simply click the Learn button and the HTML element will be added to the Recording Activity Dialog Ss Dua Comment WI Aradan Lem mdadam
14. plorer HTML library is checked No other libraries should be selected See below Library Desciplion 7 Auto Detect ibrary automaticaly E NET NET 1 1 20 30 35 with V Intemet Explorer HTML HTML DOM based recorder for Intemet Explorer E Firefox HTML HTML DOM based recorder for Mozilla Firefox E Generic Genetic ibrary contains basic definitions for most commo In the top section of the SAR dialog we choose which application to record Scroll down the available 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 alate Applestons PD Path C Fragan Hes 5 Memsat Cie fied C Wndove Se WO WStandiS2 ee Condens SyeWOWSA vundi azere Adsoo Bondad Uni Crean Fle 636 Adobo cbe Fholcd C Procram DellTPad Vertex exe CNProgam FlesiDel Pad ort Ec exe 65 Merosct Vaval Sud cler ee G35 Venage xe 63628 FleeiWave Sytame Cop Tre Recor and Playback Meala Fre 48201 CiProgam KBS owls Free ton Windows Neda Player 50832 Hos 635 Windows Pi The Recording Activity RA dialog box will appear Recording Actrty for Infect Library Information System Windows Internet Explorer
15. th red text are the steps which failed s ESCAS Congratulations You have just recorded and played back your first automated test script using Rapise The next section will demonstrate how you can use Rapise to inspect the objects in a web page and Learn them for testing This is useful in cases where you have more complex applications to test and you need to pick specific objects For example you may want to select one of the books in the grid based on its name rather than its row number which may change if you add books 2 Using the Spy Tools in Rapise 2 1 Learning an Object Using the Web Spy In the main Test ribbon of Rapise expand the dropdown list for the Spy tool and make sure that Web Object is selected Eje Options Find Accessible back to the web page and login to the library information system with the same login password ibrarian librarian and click on the Book Management menu item so that the list of books is displayed LIBRARY INFORMATION SYSTEM Book manacement Now back in the Web Spy click on the Get Snapshot option to refresh the Web Spy and display the HTML elements called the DOM tree that make up this page ne ro aT oe Once it has loaded the DOM tree you can expand co
16. ut vere D name Pus Rumes va ue D ero ome DTJSES qusan os Paez roi or The test should now pass successfully 3 Next Steps Now we recommend that you take a look at the Hapise User Manual This contains several more in depth tutorials for using the system as well an in depth reference guide of all the different features available Legal Notices This publication is provided as is without warranty of any kind either express or implied including but not limited to the implied warranties of merchantability fitness for a particular purpose or non infringement This publication could include technical inaccuracies or typographical errors Changes are periodically added to the information contained herein these changes will be incorporated in new editions of the publication Inflectra Corporation may make improvements and or changes in the product s and or program s and or service s described in this publication at any time The sections in this guide that discuss internet web security are provided as suggestions and guidelines Internet security is constantly evolving field and our suggestions are no substitute for an up to date understanding of the vulnerabilities inherent in deploying internet or web applications and Inflectra cannot be held liable for any losses due to breaches of security compromise of data or other cyber attacks that may result from following our recommendations SpiraTest Spira
17. very System Log ln er 4 E Library intormation System Book Marag amtaa hs Managemen a sestassterdnn tetinnesexti i d 2 sestrneok Managenene actin pns 3 click on mew neck bs Bess Creeie new book _ DoCLick cLiee on author Management DeDONCHildrenCount Ses Ascor Management Dociick 4 DoDONConven T Clack on Create new author P I BeS _Creace_nev_author_ DoClick Since clicking on the Edit link will take you to a different page than where the Create New Book link is available in the example we have added a second instance of the ses k_Management DoClick 7 Command so that Rapise goes back to the main book list page before executing the Create New Book step If we did not do this the test would have failed Now the line Ses rdam GetInnerText by itself does not do anything it just gets the text So to make the test more useful we can use the global Tester object to add a step to verify this value Drag the AssertEqual function from the Tester object to your test script just above the SeS Amsterdam line ug simae 20 Text iaprersan an El
Download Pdf Manuals
Related Search
Related Contents
Swift Email Verifier API Java Client Cables Direct URT-601G networking cable GR-D50 GR-D40 GR-D30 GR-D20 ULTRA-ACT ウルトラセブン 取扱説明書 Power Technical School Copyright © All rights reserved.
Failed to retrieve file