Tuesday 6 August 2013

What Default Method is Called While Using .load() Function

.load() is roughly equivalent to $.get, therefore it uses get method to load data

What is the Difference Between $.get and $.post

Results loaded with $.get in internet exoplorer are stored in cache, So you might receive some data refresh problem on UI using $.get method
if you’re fetching data from the server and not changing anything, you should generally use GET, while if you’re changing something you should use POST

Wednesday 31 July 2013

QTP :- Link to download Microsoft Script Debugger

QTP :- What is Objects Collection object, How do we refer to an item in objects collection, How do we send keyboard input?

Object Collection - It is a generic term and not a keyword. This is something like an array that holds a collection of objects.. So its an array of objects..
How do you refer to an item in it - Since this is an array, it will be accessed the same way you do for an array, i.e. bu using its index.

Example: Assume you have a page with 20 links where the link text and URL are dynamically loaded. Suppose you want always have to click the 7th link.. Code is as follows -
Set oDesc = Description.Create
oDesc("micclass").Value = "Link"
Set oAllLinks = Browser("").Page("").ChildObjects(oDesc)  'Here oAllLinks is the collection of Objects
'Click on 7th link
oAllLinks(6).Click     'Array index starts from 0. So index 6 is used

Sending Keyboard Input - This can be done using SendKeys command. Code is as follows -

Set WshShell = CreateObject(“WScript.Shell”)
WshShell.SendKeys "hp quicktest professional"

Wednesday 24 July 2013

How to Do Performance Testing Estimation (Load Runner)

LR Script Creation: For a full script creation (which includes recording and customization), script creation may take from 3hr to a day or two. Time requirement mainly depends on:
  • complexity of the flow
  • values to be parameterized
  • frequency of dynaminc values that are to be customized.
I would recommend before start on script recording, test person should spend atleast 1-2 days in understanding the application and flow(s) that is/are to be recorded and executed, identifying test data requirements and workflow dependencies (any). (You may include this as part of test efforts estimation)

LR Script Execution: Execution efforts should include time to:
  • Create and setup of Test load scenarios (Average, peak load scenario, etc) as per requirements.
  • Set up test data (this test data is similar. However, quantity is different depending on testing time range)
  • Execute individual script on controller (directed to actual performance test environment) for small cycles to remove/fix run-time issues.
  • Execute average test load scenario / individual script for small cycles to remove/fix run-time issues before executing full range tests. This is very important to prevent unwanted issues during full range tests.
  • Test result analysis and reporting.
  • If scripts are using ‘destructive data’, include time for creation of test data between test cycles.

Also, few things to keep in mind:
  • Average or Normal Load Test execution cycle should be atleast 3 with 2-3 full range test executions within each cycle. Normally, Normal Load Test execution is 1 hr per test run.
  • Any performance issues / application issues observed should be fixed before start of next cycle.
  • Peak Load and other test load scenarios should be executed once Normal (Average) load test(s) gives positive results.
  • Scenario Run-time for Normal (Average) and Peak loads should be similar
  • Make sure, you have enough Vuser license to simulate load conditions, as per NFRs.