Search This Blog

Saturday, 13 August 2011

QTP: Flex Objects and Sample Adobe Flex Applications

The flex content of the web applications is not directly accessible by QTP tool. To automate flex applications, we need to build the flex application with automation libraries which are usually available at C:\Program Files\Adobe\Flex Builder 3\sdks\3.2.0\frameworks\libs based on the installation path.
 
These libraries act as agent(INTERFACE) between the application and QTP tool. Building flex application with the automation libraries could be done by developers.
Configuration from Developers perspective:



-->.  Include the SWC files before compiling the application in the following path
< flex_builder_dir>\sdks\...\frameworks\libs\automation.swc
< flex_builder_dir>\sdks\...\frameworks\libs\automation_agent.swc
 <flex_builder_dir>\sdks\...\frameworks\libs\qtp.swc
 <flex_builder_dir>\sdks\...\frameworks\libs\automation_dmv.swc
--> Configure the above file paths in …/WEB-INF/flex/flex-config.xml file

      <include-libraries>
         <library>./user_classes/automation.swc</library>
         <library>./user_classes/automation_agent.swc</library>
         <library>./user_classes/qtp.swc</library>
         <library>./user_classes/automation_dmv.swc</library>
      </include-libraries>
      <debug>true</debug>
                                       OR
 Select Project > Properties > Flex Compiler.
In the "Additional compiler arguments" field, enter the following:
-include-libraries "flex_builder_dir\sdks\3.0.0\frameworks\libs\automation.swc"
 "flex_builder_dir\sdks\3.0.0\frameworks\libs\automation_agent.swc"
 "flex_builder_dir\sdks\3.0.0\frameworks\libs\qtp.swc"
 "flex_builder_dir\sdks\3.0.0\frameworks\libs\automation_dmv.swc"




Sample Application Name: Flex Store

When you try to identify objects with QTP, you will see the whole page as single object  i.e “MacromediaFlashPlayerActiveX”

So use another sample adobe flex application



Now you could identify the whoe page as different objects...




Both applications are same but they deployed in SDK and LCDS.

Want to know more about this. 


 

Test data generation

At some point of time you might have faced some difficulty with creating Test data.

If you get a chance in future use the below application, it will solve your problem.

How.....



                  All The Best..............

Details on QTP Certification v10.0


As some of you may know since August 1st, 2010 HP has stopped offering QTP certification for v9.2 and have instead started certification for QTP v10.0. Here are the details in case you wish to get registered and certified in HP QuickTest Professional.
There are two levels for HP QTP/QC certification – AIS and ASE. AIS is a beginners level certification exam while ASE is an advanced level certification exam.  You can take ASE only when you have successfully qualified the first level ie AIS. For the purpose of this article we will discuss the steps to take AIS certification.
QTP AIS certification exam comes under the broad heading of  AIS – HP Quality Center v10.
To pass this exam you must complete 2 core requirements exams
 Exam HP0-M31: HP Quality Center 10.0 Software
                            and
 Exam HP0-M39: HP QuickTest Professional 10.0 Software
You can take these exams in same or different sittings as per your convenience and availability of slot at the examination center.
What to expect in HP0-M31: HP Quality Center 10.0 exam?
§  Number of items: 60
§  Item types: Multiple choice (single-response), Multiple Choice (multiple response), and Drag and Drop §  Exam Time: 90 minutes
§  Passing Score: 73 percent
What to expect in HP0-M39: HP QuickTest Professional 10.0 exam?
§  Number of items: 66
§  Item types: Multiple choice (single-response), Multiple Choice (multiple response), Drag and Drop, and  Point and Click.
§  Exam Time: 90 minutes
§  Passing Score: 74 percent

How to get started with QTP certification?

Sign in to HP’s certification portal here (You would need HP passport to login) In case you are new to HP partner portal, you can get yourself registered using one of the links mentioned here as per your geographic location. (Within 48 hrs of registering you should be able to access HP partner portal.)
Once you are in, just follow the step-by-step procedure as mentioned on the website to enroll for QTP/QC exam registration. You can also download various attachments/syllabus/registration guide for QTP/QC certification from inside the HP partner portal. Cost for QTP certification exam is $150 USD.
                                  All The Best................

Want to know more about Automation Testing importance....

Now a days, tools that help programmers quickly create applications with graphical user interfaces have dramatically improved programmer productivity. This has increased the pressure on testers, who are often perceived as bottlenecks to the delivery of software products. Testers are being asked to test more and more code in less and less time. They need to dramatically improve their own productivity. Test automation is one way to do this.
Software testers, under pressure to do more testing in less time, often find themselves rushed and eager for anything that will give them a hand. Their fear and desperation lead them to seek a "silver bullet" that will help them regain a rational pace to their work. Test automation is often this silver bullet. The fantasy is that it will make their job simpler and easier and help them contend with unrealistic schedules.
Automating tests for a graphical user interface presents significant difficulties not found in character based interfaces, much less command line interfaces or programming interfaces (APIs). Graphical user interfaces tend to be made of complex components and tend to be constantly redesigned during the development process. Significant successes have been made in delivering test tools that are able to identify and manipulate graphical user interfaces.
Most experienced software testers have excellent insights into the kinds of practices that are critical for software development. They see the consequences of their developers coding before designing, neglecting code reviews or ignoring feedback: more bugs and slipped schedules. However, testers' clear insight into the development process often fades when they undertake test automation. They fail to realize that test automation is itself a software development activity and that it therefore needs to adhere to critical development practices. Like developers who are stressed for time, testers are prone to skipping steps, taking the big leap, and blindly hoping to come out with a success at the other side. But frustration and disappointment are more likely consequences.
Some testers even try to develop test automation in their spare time. I have rarely seen this deliver test suites that can bear much weight.
Major challenges for GUI test automation are maintainability and reliability. These challenges demand that a software engineering approach be taken to address them. Different teams define the software development process differently. This is fine. The important thing to remember is that this process should be used with test automation as well.
Many testers do not have strong programming skills. This combined with the repetitive nature of much testing, leads people to use record and playback techniques. There indeed are many tools that allow scripts to be recorded and then played back, using screen captures for verification. The problem that always crops up is that the layouts are changed, invalidating the screen captures and then the interface controls change making playback fail. Now the scripts must be re-recorded from scratch. Record and playback tools provide an easy way to create throwaway test suites.
It is particularly hard for people who have had so much success using these techniques with character-based interfaces to understand the difficulty of using them with graphical interfaces.
Recording tests and reviewing the created code is an excellent way to learn how to use a test tool. But most successful test automators move on to more generalized testing methods.
Someone using a test tool, whether she/he has the title of tester or developer, needs to understand how to design, develop and maintain software. Test automation systems will need to be tested themselves and should be subjected to frequent review and improvement to make sure that they are actually addressing the testing needs of the organization.

All the Best

Automation Testing on Android applications using Robotium tool

Robotium is a test framework created to make automatic black-box testing of Android applications significantly faster and easier than what is possible with Android instrumentation tests out-of-the-box.
With the support of Robotium, test case developers can write system and acceptance test scenarios, spanning multiple Android activities.

to know more about this...

Mobile Test Automation Tool for iPhone,Android,Blackberry - plugs into QTP and other frameworks

Records and Runs on your REAL(Smart Phones) device connected via USB to your PC.


To Know more…




Automate anything you see

1.   Automate anything you see
2. Automate using screenshots
3.Work on Windows/Mac/Linux  
To know more about this...



Thursday, 11 August 2011

QTP-Quick Reference Card

Object Properties for Windows and Web based Applications

Dialog StaticWinButtonWincalender
abs_xabs_xabs_xabs_x
abs_yabs_yabs_yabs_y
enabledattached textattached textattached text
focusedenabledenableddate
foregroundfocusedfocusedenabled
hasborderheightheightfocused
hascaptionhwndhwndheight
hashscrollnativeclassnativeclasshwnd
hassizeboxobject classobject classnativeclass
hassystemmenuregexpwndclassregexpwndclassobject class
hasvscrollregexpwndtitleregexpwndtitleregexpwndclass
heightrightalignedrightalignedregexpwndtitle
hscrollpagesizerighttoleftlayoutrighttoleftlayoutrightaligned
hscrollpositionrighttoleftreadingrighttoleftreadingrighttoleftlayout
hwndtexttextrighttoleftreading
is child windowvisiblevisibletext
is owned windowwidthwidthtime
ismdichildwindowwindow idwindow idvisible
ispopupwindowwindowextendedstylewindowextendedstylewidth
istoolwindowwindowstylewindowstylewindow id
leftscrollbarxxwindowextendedstyle
maxhscrollposyywindowstyle
maximizable  x
maximized  y
maxvscrollposnativeclassnativeclass 
minhscrollposwindow idtext 
minimizable  nativeclass
minimizedtextwindow id 
minvscrollpos  window id
nativeclass   
object class   
regexpwndclass   
regexpwndtitle   
rightaligned   
righttoleftlayout   
righttoleftreading   
text   
topmost   
visible   
vscrollpagesize   
vscrollposition   
width   
window id   
windowextendedstyle   
windowstyle   
x   
y   
is child window   
is owned window   
nativeclass   
text   


WincheckboxWincomboboxWindowWinEdit
abs_xabs_xabs_xabs_x
abs_yabs_yabs_yabs_y
attached textall itemsenabledattached text
checkedattached textfocusedenabled
enabledenabledforegroundfocused
focusedfocusedhasborderheight
heightheighthascaptionhwnd
hwndhwndhashscrollnativeclass
nativeclassitems counthassizeboxobject class
object classnativeclasshassystemmenuregexpwndclass
regexpwndclassobject classhasvscrollregexpwndtitle
regexpwndtitleregexpwndclassheightrightaligned
rightalignedregexpwndtitlehscrollpagesizerighttoleftlayout
righttoleftlayoutrightalignedhscrollpositionrighttoleftreading
righttoleftreadingrighttoleftlayouthwndtext
textrighttoleftreadingis child windowvisible
visibleselectionis owned windowwidth
widthtextismdichildwindowwindow id
window idvisibleispopupwindowwindowextendedstyle
windowextendedstylewidthistoolwindowwindowstyle
windowstylewindow idleftscrollbarx
xwindowextendedstylemaxhscrollposy
ywindowstylemaximizable 
 xmaximized 
 ymaxvscrollposattached text
nativeclass minhscrollposnativeclass
text minimizable 
 attached textminimizedwindow id
window idnativeclassminvscrollpos 
  nativeclass 
 window idobject class 
  regexpwndclass 
  regexpwndtitle 
  rightaligned 
  righttoleftlayout 
  righttoleftreading 
  text 
  topmost 
  visible 
  vscrollpagesize 
  vscrollposition 
  width 
  window id 
  windowextendedstyle 
  windowstyle 
  x 
  y 
  text 
    
  is child window 
  is owned window 
  regexpwndclass 
  regexpwndtitle 


WinEditorWinlistWinlistviewWinobject
abs_xabs_xabs_xabs_x
abs_yabs_yabs_yabs_y
attached textall itemsall itemsattached text
columnattached textattached textenabled
enabledenabledcheckedfocused
focusedfocusedenabledhashscroll
hashscrollhashscrollfocusedhasvscroll
hasvscrollhasvscrollhashscrollheight
heightheighthasvscrollhscrollpagesize
hscrollpagesizehscrollpagesizeheighthscrollposition
hscrollpositionhscrollpositionhscrollpagesizehwnd
hwndhwndhscrollpositionleftscrollbar
leftscrollbaritems counthwndmaxhscrollpos
lineleftscrollbaritems countmaxvscrollpos
maxhscrollposmaxhscrollposleftscrollbarminhscrollpos
maxvscrollposmaxvscrollposmaxhscrollposminvscrollpos
minhscrollposminhscrollposmaxvscrollposnativeclass
minvscrollposminvscrollposminhscrollposobject class
nativeclassnativeclassminvscrollposregexpwndclass
object classobject classnativeclassregexpwndtitle
regexpwndclassregexpwndclassobject classrightaligned
regexpwndtitleregexpwndtitleregexpwndclassrighttoleftlayout
rightalignedrightalignedregexpwndtitlerighttoleftreading
righttoleftlayoutrighttoleftlayoutrightalignedtext
righttoleftreadingrighttoleftreadingrighttoleftlayoutvisible
textselectionrighttoleftreadingvscrollpagesize
visibletextselectionvscrollposition
vscrollpagesizevisibletextwidth
vscrollpositionvscrollpagesizevisiblewindow id
widthvscrollpositionvscrollpagesizewindowextendedstyle
window idwidthvscrollpositionwindowstyle
windowextendedstylewindow idwidthx
windowstylewindowextendedstylewindow idy
xwindowstylewindowextendedstyle 
yxwindowstyle 
 yxregexpwndclass
  y 
attached text  attached text
nativeclassattached text window id
 nativeclassattached textnativeclass
window id nativeclasstext
 window id object class
  window id 



WinRadiobuttonWinradiogroupWinscrollbarWinspin
abs_xabs_xabs_xabs_x
abs_yabs_yabs_yabs_y
attached textall itemsattached textattached text
checkedattached textenabledenabled
enabledenabledfocusedfocused
focusedfocusedheightheight
heightheighthwndhwnd
hwndhwndmaxscrollposnativeclass
nativeclassitems countminscrollposobject class
object classnativeclassnativeclassposition
regexpwndclassobject classobject classregexpwndclass
regexpwndtitleradiogroupkindregexpwndclassregexpwndtitle
rightalignedregexpwndclassregexpwndtitletext
righttoleftlayoutregexpwndtitlescrollpagesizevisible
righttoleftreadingselectionscrollpositionwidth
texttexttextwindow id
visiblevisiblevisiblewindowextendedstyle
widthwidthwidthwindowstyle
window idwindow idwindow idx
windowextendedstylexwindowextendedstyley
windowstyleywindowstyle 
x x 
y yattached text
 radiogroupkind nativeclass
 text  
nativeclass attached textwindow id
text nativeclass 
    
window id window id 



Winstatus barWintabWintableWintoolbar
abs_xabs_xabs_xabs_x
abs_yabs_yabs_yabs_y
all itemsall itemsattached textattached text
attached textattached textenabledenabled
enabledenabledfocusedfocused
focusedfocusedhashscrollheight
heightheighthasvscrollhwnd
hwndhwndheightnativeclass
items countitems counthscrollpagesizeobject class
nativeclassnativeclasshscrollpositionregexpwndclass
object classobject classhwndregexpwndtitle
regexpwndclassregexpwndclassleftscrollbarrightaligned
regexpwndtitleregexpwndtitlemaxhscrollposrighttoleftlayout
rightalignedrightalignedmaxvscrollposrighttoleftreading
righttoleftlayoutrighttoleftlayoutminhscrollpostext
righttoleftreadingrighttoleftreadingminvscrollposvisible
statusbartextselectionnativeclasswidth
texttextobject classwindow id
visiblevisibleregexpwndclasswindowextendedstyle
widthwidthregexpwndtitlewindowstyle
window idwindow idrightalignedx
windowextendedstylewindowextendedstylerighttoleftlayouty
windowstylewindowstylerighttoleftreading 
xxtext 
yyvisiblenativeclass
  vscrollpagesizetext
  vscrollposition 
nativeclassattached textwidthwindow id
 nativeclasswindow id 
window id windowextendedstyle 
 window idwindowstyle 
  x 
  y 
    
    
  nativeclass 
    
  window id 



WintreeviewWeb BrowserFrameimage
abs_x abs_xabs_xabs_x
abs_y abs_yabs_yabs_y
all items application versionheightalt
attached text hasmenubarhtml idclass
checked hasstatusbarhtml tagfile name
enabled hastoolbarnameheight
focused heighttitlehref
hashscroll hwndurlhtml id
hasvscroll namewidthhtml tag
height openedbytestingtool image type
hscrollpagesize opentitle innerhtml
hscrollposition openurlnameinnertext
hwnd title name
items count version outerhtml
leftscrollbar width outertext
maxhscrollpos   src
maxvscrollpos  nametarget
minhscrollpos  titleurl
minvscrollpos  urlvisible
nativeclass   width
object class   x
regexpwndclass name y
regexpwndtitle title  
rightaligned openurl  
righttoleftlayout opentitle alt
righttoleftreading hasstatusbar html tag
selection hasmenubar image type
text hastoolbar  
visible openedbytestingtool  
vscrollpagesize    
vscrollposition   html tag
width    
window id   alt
windowextendedstyle   image type
windowstyle   html id
x   name
y   file name
    class
    visible
attached text   width
nativeclass    
     
window id    



linkpageViewlinkWebarea
abs_xabs_xabs_xabs_x
abs_yabs_yabs_yabs_y
background colorheightclassalt
classhwndheightclass
colornamehtml idcoords
fonttitlehtml tagheight
heighturlinnerhtmlhref
hrefwidthinnertexthtml id
html id outerhtmlhtml tag
html tag outertextimage type
innerhtml typeinnerhtml
innertext visibleinnertext
name widthmap name
outerhtmltitlexouterhtml
outertexturlyoutertext
target  src
text  target
url html tagurl
visible innertextvisible
width  width
x  x
y  y
    
    
html tag  alt
text  html tag
    
    
    
html tag  html tag
    
text  alt
html id  html id
class  map name
name  class
href  href
visible  coords
   visible

WebbuttonWebcheckboxWebeditWebelement
abs_xabs_xabs_x abs_x 
abs_yabs_yabs_y abs_y 
altcheckedclass class 
classclassdefault value height 
coordsdisableddisabled html id 
heightheightheight html tag 
hrefhtml idhtml id innerhtml 
html idhtml taghtml tag innertext 
html taginnerhtmlinnerhtml outerhtml 
image typeinnertextinnertext outertext 
innerhtmlnamekind type 
innertextouterhtmlmax length visible 
map nameoutertextname width 
outerhtmltypeouterhtml x 
outertextvalueoutertext y 
srcvisiblereadonly  
targetwidthrows  
urlxtype html tag 
visibleyvalue innertext 
width visible  
x width  
yhtml tagwidth in characters  
 namex html tag 
 typey  
alt  html id 
html tag  class 
  html tag innertext 
 html tagname visible 
  type  
html tagname  
 type  
althtml id  
html idvaluehtml tag  
map nameclasstype  
classvisible  
hrefname  
coords html id  
visible max length  
  default value  
  class  
  rows  
  visible  


WebfileWeblistWebradiogroupWebtable
abs_x abs_x abs_x abs_x 
abs_y abs_y abs_y abs_y 
class all items all items border 
default value class checked class 
disabled default value class cols 
height disabled disabled height 
html id height height html id 
html tag html id html id html tag 
innerhtml html tag html tag innerhtml 
innertext innerhtml innerhtml innertext 
name innertext innertext name 
outerhtml items count items count outerhtml 
outertext name name outertext 
readonly outerhtml outerhtml rows 
rows outertext outertext text 
type select type selected item index visible 
value selected item index type width 
visible selected items count value x 
width selection visible y 
width in characters value width  
x visible x  
y visible items y html tag 
 width   
 x   
html tag y html tag  
name  name html tag 
type    
 html tag  html id 
 name  border 
  html tag  
html tag    
  name  
name html tag html id  
type  class  
html id name items count  
class html id visible  
default value class class  
visible default value default value  
 items count items count  
 visible items visible items  
 visible visible