© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. JavaScript testing – faster.

Slides:



Advertisements
Similar presentations
ASP.NET Ajax Supplementary Tutorial. Why Use ASP.NET AJAX? - I ASP.NET AJAX enables you to build rich Web applications that have many advantages over.
Advertisements

Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. HP Performance testing.
Client side performance in Web based Banking applications Divakar Prabhu Infosys Limited (NASDAQ: INFY)
Understanding Correlation In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
IWay Service Manager 6.1 Product Update Scott Hathaway iWay Software Copyright 2010, Information Builders. Slide 1.
© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Introduction to Mobile.
Web Platform Trident Browser Internet Explorer.
Agenda What is BIRT? BIRT Features and Report Gallery Scripting BIRT
JMeter Workshop Friday 1 December 2006 Anthony Colebourne IT Services The University of Manchester.
Microsoft ASP.NET AJAX - AJAX as it has to be Presented by : Rana Vijayasimha Nalla CSCE Grad Student.
© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. HP Anywhere Defect.
1 Chapter Overview Introduction to Windows XP Professional Printing Setting Up Network Printers Connecting to Network Printers Configuring Network Printers.
Selenium – Testing Tool. What is Selenium? Selenium is a robust set of tools that supports rapid development of test automation for web-based applications.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
Automation using Selenium Authored & Presented by : Chinmay Sathe & Amit Prabhu Cybage Software Pvt. Ltd.
NOTE: To change the image on this slide, select the picture and delete it. Then click the Pictures icon in the placeholder to insert your own image. Browser.
Creation of hybrid portlet application for file download using IBM Worklight and IBM Rational Application Developer v9 Gaurav Bhattacharjee Lakshmi Priya.
© 2004 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice Automation Fundamental Concepts &
Introduction to HP LoadRunner Getting Familiar with LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Samuvel Johnson nd MCA B. Contents  Introduction to Real-time systems  Two main types of system  Testing real-time software  Difficulties.
ASP.NET + Ajax Jesper Tørresø ITNET2 F08. Ajax Ajax (Asynchronous JavaScript and XML) A group of interrelated web development techniques used for creating.
What is QTP ► QTP stands QuickTest Professional ► It is an automated testing tool provided by HP/Mercury Interactive ► QTP integrates with other Mercury.
JavaScript, Fourth Edition Chapter 12 Updating Web Pages with AJAX.
XP New Perspectives on XML, 2 nd Edition Tutorial 10 1 WORKING WITH THE DOCUMENT OBJECT MODEL TUTORIAL 10.
Eyeblaster Video Enhancements for RMP 6.1. Agenda Video Enhancements Goals Main features and Creative Process Flash Video Components Bandwidth Optimization.
London April 2005 London April 2005 Creating Eyeblaster Ads The Rich Media Platform The Rich Media Platform Eyeblaster.
CNIT 133 Interactive Web Pags – JavaScript and AJAX JavaScript Environment.
Creating an Animated Web Page
XP Tutorial 4 New Perspectives on JavaScript, Comprehensive1 Working with Objects Creating an Animated Web Page.
April 2011 November 2010.
DEV-5: Introduction to WebSpeed ® Stephen Ferguson Sr. Training Program Manager.
Building Scripts For HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
Extending HTML CPSC 120 Principles of Computer Science April 9, 2012.
Enhancing - Vuser Scripts In HP LoadRunner >>>>>>>>>>>>>>>>>>>>>>
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice HP Library Encryption - LTO4 Key.
From Design to Production Practicing what we preach at HP Shane Evans – Product Manager Oded Keret – Functional Architect.
© 2006 by «Author»; made available under the EPL v1.0 | Date | Other Information, if necessary Jason Weathersby BIRT Evangelist, Actuate Corp. Leveraging.
What’s new in Kentico CMS 5.0 Michal Neuwirth Product Manager Kentico Software.
Are you getting the benefits from ASP.NET and AJAX? Introduction to the CTC ASP.NET Webforms Generator.
Selenium and Selenium on Rails. Agenda  Overview of Selenium Simple Selenium Tests Selenium IDE  Overview of Selenium on Rails  Problems with Selenium.
INNOV-7: Building a Richer UI for the Browser Chris Skeldon Senior Solution Consultant.
GOSS iCM Gary Ratcliffe. 2 Agenda Webinar Programme V10 Overview Version Information Supported Browsers Architectural Changes New Features.
© Copyright 2011 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. HP Restricted Module 8.
Getting Started with your Cloud File Sync Tool. Part I: Getting Started.
Rich Internet Applications 9. HTML 5 and RIAs. HTML 5 Standard currently under development by W3C Aims to improve the language with support for the latest.
Quick Test Professional 9.2. Testing Process Preparing to Record Recording Enhancing a Test Debugging Running the Test and Analyzing the Results Reporting.
© Copyright 2012 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. PPT Version 3 | Content.
ScriptOnce™ & Best Practices. Agenda 2 Automation that works ScriptOnce –Minimal maintenance –Easy to add devices Robustness –Reliable Scripts - Minimize.
1 Copyright © 2011 Tata Consultancy Services Limited PERFORMANCE TESTING.
Web Technology (NCS-504) Prepared By Mr. Abhishek Kesharwani Assistant Professor,UCER Naini,Allahabad.
ASP.Net ICallback Vijayalakshmi G M Senior Trainer Binary Spectrum.
LOAD RUNNER. Product Training Load Runner 3 Examples of LoadRunner Performance Monitors Internet/Intranet Database server App servers Web servers Clients.
1 Using jQuery JavaScript & jQuery the missing manual (Second Edition)
IV&VS Capabilities. 2 V IRTUAL USER GENERATOR 3 V IRTUAL U SER T ECHNOLOGY AND ADVANTAGES  Simulates a real user  Requires less resources – machines.
Performance Testing - LR. 6/18/20162 Contents Why Load Test Your Web Application ? Functional vs. Load Web Testing Web-Based, Multi-Tiered Architecture.
Arklio Studija 2007 File: / / Page 1 Automated web application testing using Selenium
ArcGIS for Server Security: Advanced
Office 365 Development July 2014.
Simulating back-end services
JavaScript and Ajax (Ajax Tutorial)
Selenium and Selenium on Rails
SeeTestLoad.
Working with Client-Side Scripting
Course Name: QTP Trainer: Laxmi Duration: 25 Hrs Session: Daily 1 Hr.
VISUAL BASIC.
Selenium Tutorials Cheyat Training.
Dongwhan Kim Annie Zhao Steven Lawrance
Lecture 34: Testing II April 24, 2017 Selenium testing script 7/7/2019
Presentation transcript:

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. JavaScript testing – faster and easier using HP TruClient Wilson Mar, HP Architect / Developer Advocate Shlomi Nissim, HP R&D Manager

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 2 Faster and Easier JavaScript Testing Agenda You’re not alone Dive right in Approach Additional Resources Question & answer

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 3 TruClient introduction summary video gallery/us/en/d6b38cd914f8e534cdbf8025f076d b562/r/video gallery/us/en/d6b38cd914f8e534cdbf8025f076d b562/r/video = (no voice narration, just music) 2:16 minutes

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 4 HP LoadRunner 11.0 TruClient demo 14:32 minutes

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 5 HP LoadRunner Tutorial: TruClient Firefox 13:14 minutes

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 6 LoadRunner patch 1 Support Matrix OSBrowserVuGenLoad Generator Win 7FF 8.01*, IE 9, IE 10  Win 8FF 8.01, IE 10  IE 9**N/A Win 2008 R2FF 8.01, IE 9, IE 10  * Firefox 8.01 is part of LoadRunner installation ** IE 9 is not supported on these operating system versions

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 7 LoadRunner Support Matrix * Firefox 22 is part of LoadRunner installation ** IE 9 is not supported on these operating system versions OSBrowserVuGenLoad Generator Win 7FF 22*, IE 9, IE 10  Win 8FF 8.01, IE 10  IE 9**N/A Win 2008 R2FF 22, IE 9, IE 10  Win 2012FF 22, IE 10  IE 9N/A

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 8 Multiple interface options

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 9 Approach and strategy 1.User process, object identification, error detection 2.Configuration (for mobile, etc.) Explore Enhance Script Generate Script Set Run Config. Single-User Runs Multi-User Runs 6.Data value variations 7.Logging for troubleshooting 9.Analyze capacity from load test runs 3.Flow control, Alternative steps, Function Libraries 4.Transactions & Profiling 5.Data Correlation and Parametization 8.Files download

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 10 Agenda BrowsersHigh level functionality overviewObject IdentificationSteps synchronizationMobile

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Browsers

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 12 Firefox is included within LoadRunner

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 13 Static version of Firefox Alt+H Do not open this dialog. It will cause automatic update of Firefox

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 14 Internet Explorer 9 or above is a prerequisite TruClient enforces standards mode. Quirks is not supported

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Getting started

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 16 Create a new script

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 17 TruClient recording

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 18 Integrated with Mozilla Firefox Async is a none issue in TruClient

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 19 Recording and script generation is interactive

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 20 TruClient Toolbox drag and drop

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 21 Random wait calculation in JavaScript arguments

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 22 Data Parameters Use LR.getParam("URL "); to get the value

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 23 Data Parameter reference in JavaScript

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 24 Transactions

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 25 Function libraries Modularity and code sharing Function Reuse and Sharing Create Functions library Create functions Call Functions from every script Function Editing Select library and function Set function arguments

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 26 Event handlers

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 27 Settings

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 28 Snapshots

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 29 TruClient Custom Functions

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 30 Additional features added in LoadRunner Shunra integration RendezvousVirtual Table Server JavaScript API Web page diagnostics*IP spoofing*Modem speed emulation* * New in TC IE. Existed in TC Firefox

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Object Identification

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 32 Object identification methods in TruClient JavaScript You can write code that will locate the object in the document Electors TruClient patented algorithm XPath You can write your own Xpath or use the automatically generated suggested Custom

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 33 Automatic Electors HP LoadRunner VuGen11.52

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 34 Dynamic object identification Assistant

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 35 Use related object to apply unique identification Related object

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 36 Modify step levels might fix issues while running HP LoadRunner VuGen11.52

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 37 XPath Initial values provided Multiple suggestions Keep in mind Xpath method is static For dynamc XPath (e.g. using parameters) use evalXPath option in the JavaScript id method

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 38 Pick item from list using XPath

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 39 Use DOM Inspector for complex XPath Locate the elements on the page, the tree will open

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 40 JavaScript Important when identification requires logic (e.g. parameterize) Initial value provided based on evalXPath of first Xpath suggested The last statement is what’s returned and used by the step JS function has a separate variable context from the script itself Access variable in script using ArgsContext.a for variable a and ArgsContext.LR.getParam(“a”) for parameter a.

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 41 JavaScript Record interaction with several options (e.g. radio buttons, table cells) Compare the Xpath values of the different objects and find the common XPath Change ID Method to Javascript and use evalXPath to get an array of objects: div\"]/div/div[2]/input"); Referance the array of objects to parameterize the object: random(options) – select a random item random(ArgsContext.item) – select an item based on the variable item random(ArgsContext.LR.getParam(“item”)) – select an item based on the parameter item

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Steps Synchronization

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 43 Automatic step end events

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 44 Replay events HP LoadRunner VuGen11.52

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 45 Replay step synchronization guidelines If there are no failures, stick with defaults. Make changes only if The script is not running correctly To measure transaction response time using different end events (and you know what you are doing ) Possible workarounds: Change end event Increase object timeout Increase step timeout Increase network timeout (in RTS) Add wait steps

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 46 Run-time Settings for replay HP LoadRunner VuGen TruClient script

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 47 Step timeout

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 48 Object sync checkpoints HP LoadRunner VuGen11.52

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Transaction profiling

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 50 Profiler

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 51 Profiler

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. TruClient to Web(HTTP/HTML)

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 53 Powerful Small footprint, low cost Not real Web UI operation Elegant Real UI operation Big footprint, high cost new feature – TC2Web

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 54 Powerful, generate high stress to AUT Have UI operation test Low cost new feature – TC2Web

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 55 LoadRunner http traffic TC Event TruClient LR http server Web protocol recording proxy Web protocol script Browser Internet Tc2Web addin new features – TC2Web

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Mobile device configuration

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 57 Recording mobile TruClient Ajax HP LoadRunner VuGen App web server Same User Agent in Firefox > Mobile device

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 58 Devices with User Agent strings Count: 27 (LR 11.52) HP LoadRunner VuGen11.52

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 59 Sample User Agent for Samsung Galaxy S3 User Agent string example Mozilla/5.0 (Linux; U; Android 4.0; xx-xx; GT-I9300 Build/IMM76D) AppleWebKit/ (KHTML, like Gecko) Version/4.0 Mobile Safari/ x 1280 HP LoadRunner VuGen11.52 More at

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 60 Mobile Device Manager Tool

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Thank you

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. Q&A hp.com/go/loadrunner

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 63 Standing by hp.com/go/education hp.com/go/hpswsupport hp.com/go/hpswprofessionalservices © Copyright 2014 Hewlett-Packard Development Company, L.P.

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 64 Downloads and sales hp.com/go/performancecenter hp.com/go/loadrunner Conference hp.com/go/discover © Copyright 2014 Hewlett-Packard Development Company, L.P.

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 65 Social media hp.com/go/lrblog twitter.com/hploadrunner facebook.com/groups/HPLoadRunner linkedin.com/groups/LoadRunner linkedin.com/groups?gid= (TruClient) © Copyright 2014 Hewlett-Packard Development Company, L.P.

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 66 Forums hp.com/go/lrpc hpln.hp.com/group/community-content-pc-lr hpln.hp.com/group/performance-center-and- loadrunner vivitworldwide.site- ym.com/members/group.aspx?id= © Copyright 2014 Hewlett-Packard Development Company, L.P.

© Copyright 2013 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice. 67 Additional Resources HP LoadRunner page Join the buzz!