One Testing Center

QTP - Keyword Driven Framework. QTP Learning Book - Learn By Questions. QTP Learning Book - Made Easy - Part1. QTP Learning Book - Made Easy - Part2. QTP Quality Center - QC.

QTP - Frameworks

QTP - Frameworks. Record and Play back Framework. Action Driven Framework. Data Driven Framework. Functional Decomposition Framework. Keyword Driven Framework. Hybrid Framework. Test Driven Framework.

QTP - Automation

QTP - Basics. QTP - Intermediate. QTP - Advanced. QTP - Frameworks.

QTP - Training

Friends, Welcome to OneTestingCenter. I am HP Functional Test ExportOne. I am HP Automation Functional Test Certified Professional. I am certified for HP Functional Test 11.x. Happy to share my knowledge.

QTP - Books

QTP - Keyword Driven Framework. QTP Learning Book - Learn By Questions. QTP Learning Book - Made Easy - Part1. QTP Learning Book - Made Easy - Part2. QTP Quality Center.

Recent Post

HP Unified Functional Testing (UFT)

HP Unified Functional Testing

QTP (GUI Testing) + Service Testing (API Testing) = UFT (Unified Functional Testing)

 

OneTestingCenterMadeEasy

GAReddy @ OneTestingCenter

UFT

clip_image004

  • What is HP UFT?
  • What is HP Unified Functional Testing?
  • How UFT is different from QTP?
  • What does UFT have in it?
  • Difference between UFT and QTP

HP Unified Functional Testing

HP Unified Functional Testing is a modern, powerful automation testing tool that address all the solutions in Software Testing

HP Unified Functional Testing is combination of UI and API Testing

HP Unified Functional Testing is hybrid model of Functional Testing and Program Interface Testing

HP Unified Functional Testing is a single and combined solution with QTP (QuickTest Professional) and Service Testing

Shortly;

HP Unified Functional Testing is collaboration of :

· Functional Testing ( User Interface = UI Testing ) using HP QTP Tool (QuickTest Professional)

· Service Testing (Program Interface = API Testing) using HP Service Test Tool

Unified Functional Testing incorporates QTP and Service Test into one comprehensive integrated functional testing suite. It provides functional and regression test automation for every major software application and environment.

HP Functional Testing can be extended to support Web technologies that are not supported out of the box, and it includes the Extensibility Accelerator to speed the development of support for these additional Web toolkits.

GAReddy @ OneTestingCenter @ QTP Learning Made Easy Part2

GAReddy @ OneTestingCenter @ QTP Learning MadeEasy Part2
                                                                            


GAReddy @ OneTestingCenter @ QTP Learning Made Easy Part2.
  • QTP
  • QTP Learning
  • Let's Learn QTP
  • QTP Easy Learning
  • QTP Guide
  • QTP Book
  • QTP Learning PDF
  • QTP - Fundamentals
  • QTP - Advanced 
  • QTP - Topic by Topic
  • QTP Lessons
  • GAReddy @ QTP
Here we go..


GAReddy@OneTestingCenter@QTPLearningBook@MadeEasy@Part2QTPQTP LearningLet's Learn QTPQTP Easy Learn...


GAReddy @ OneTestingCenter @ QTP Learning Made Easy Part2.
                                                                            

GAREDDY @ ONETESTINGCENTER @ QTP LEARNING MADE EASY PART1





GAReddy @ OneTestingCenter
@ QTP Learning MadeEasy Part1.
           
                     
                     
                    


GAReddy
@ OneTestingCenter @ QTP Learning Made Easy Part1.
  • QTP
  • QTP Learning
  • Let's Learn QTP
  • QTP Easy
    Learning
  • QTP Guide
  • QTP Book
  • QTP Learning PDF
  • QTP -
    Fundamentals
  • QTP -
    Advanced 
  • QTP - Topic by
    Topic
  • QTP Lessons
  • GAReddy @ QTP
GAReddy@OneTestingCenter@QTPLearningBook@MadeEasy@Part1QTP LearningQTP BookQTP PDFQTP Guide






GAReddy @
OneTestingCenter @ QTP Learning MadeEasy @ Part 1.
                                                                             

GAReddy @ OneTestingCenter @ QTP Learning MadeEasy


GAReddy @ OneTestingCenter @ QTP Learning MadeEasy.
                                                                            


GAReddy @ OneTestingCenter @ QTP Learning MadeEasy.
  • QTP
  • QTP Learning
  • Let's Learn QTP
  • QTP Easy Learning
  • QTP Guide
  • QTP Book
  • QTP Learning PDF
  • QTP - Fundamentals
  • QTP - Advanced 
  • QTP - Topic by Topic
  • QTP Lessons
  • GAReddy @ QTP
  • GAReddy @ OneTestingCenter @ QTP
 Here we go..

QTP Learning Made EasyBy GAReddy @ OneTestingCenter


GAReddy @ OneTestingCenter @ QTP Learning MadeEasy.


                                                                            

GAReddy @ OneTestingCenter

clip_image001

Temporary Post Used For Theme Detection (ce7f513a-cfc4-4f40-984b-f65576f1d960 - 3bfe001a-32de-4114-a6b4-4005b770f6d7)

This is a temporary post that was not deleted. Please delete this manually. (824614f9-4fee-43e5-97b5-743ed9d42177 - 3bfe001a-32de-4114-a6b4-4005b770f6d7)

QTP – Descriptive Programing – Examples

QTP – Descriptive Programing – Examples

OneTestingCenter @ QTP @ Descriptive Programming @ Start up Script


‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
‘ QTP – Descriptive Programing – Examples
‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

'Browser("MyBrowser").Page("MyPage").WebEdit("MySearchBox").Set "GAReddy"
'Browser("MyBrowser").Page("MyPage").WebButton("btnG").Click
'wait(5)

‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
' Descriptive Programing - without OR
‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
' Google App - Example
‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Browser("name:=Google").Page("title:=Google").WebEdit("name:=q").Set "GAReddy"
Browser("name:=.*").Page("title:=.*").WebButton("name:=btnG").Click
Wait(4)
Browser("name:=.*").CloseAllTabs

‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
' Gmail App - Example
‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Set oPage=Browser("name:=.*").page("title:=.*")
oPage.WebEdit("name:=Email").Set "GAReddy"
oPage.WebEdit("name:=passwd").Set "GAReddy"
oPage.WebButton("name:=Sign In").Click
wait(5)

‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
' Yahoo App - Example
‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Set YahooApp=Browser("name:=.*").Page("title:=.*")

YahooApp.WebEdit("name:=login").Set "ONETESTINGCENTER"
YahooApp.WebEdit("name:=passwd").Set "ONETESTINGCENTER"
YahooApp.WebButton("name:=Sign in").Click
wait(5)

‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Set oPage=Browser("name:=.*","CreationTime:=0").page("title:=.*")
oPage.WebEdit("name:=Email").Set "GAReddy"
oPage.WebEdit("name:=passwd").Set "GAReddy"
oPage.WebButton("name:=Sign In").Click
wait(5)

‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

 

QTP – Descriptive Programing – Any Web App - Working with Web Check Boxes

QTP – Descriptive Programing – Any Web App - Working with Web Check Boxes

OneTestingCenter @ QTP @ Descriptive Programming @ Web Check Boxes @ DP Script

‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Any Web App – Working with Web Check Boxes
‘ QTP – Descriptive Programing – Working with Web Check Boxes
‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Set oWebCheckBox=Description.Create()
oWebCheckBox("micClass").value="WebCheckBox"

Set oPage=Browser("name:=.*").Page("title:=.*")

Set oWebCheckBoxAll=oPage.ChildObjects(oWebCheckBox)
MsgBox "Total Number of Check Boxes on the page are " &vbtab & oWebCheckBoxAll.Count

For i= 0 to oWebCheckBoxAll.Count-1
msgBox "Check Box Name" &vbtab & i &vbtab & oWebCheckBoxAll(i).GetROProperty("value")
' oWebCheckBoxAll(i).Set "ON"
oWebCheckBoxAll(i).Set "OFF"
wait(2)
Next



Set oPage=Browser("name:=.*").Page("title:=.*")
oPage.WebCheckBox("value:=Technology,10,").Set "ON"
'oPage.WebCheckBox("value:="& WebCheckBoxName).Set "ON"

‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
‘ Any Web App – Working with Web Check Boxes
‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

QTP - Descriptive Programming - Any Web App - Working with Web List-boxes

QTP - Descriptive Programming - Any Web App - Working with Web List-boxes

OneTestingCenter @ QTP @ Descriptive Programming @ Working with Web Lists


'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
'Any Web App - Working with any list box
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Set oPage=Browser("name:=.*").Page("title:=.*")

Set oWebList=Description.Create()
oWebList("micClass").Value="WebList"
oWebList("Html Tag").Value="Select"
'oWebList("Index").Value="0"

Set AllWebList=oPage.ChildObjects(oWebList)

MsgBox "AllWebList" & vbtab & AllWebList.Count


For i= 0 to AllWebList.Count-1
MsgBox AllWebList(i).GetROProperty("name")
WebListItemsCount=oPage.WebList("Index:=0").GetROProperty("Items Count")
MsgBox WebListItemsCount
Next


For i= 0 to WebListItemsCount-1
oPage.WebList("Index:=0").Select(i)
' wait(2)
If oPage.WebList("Index:=1").Exist(5) Then
SecondListItemsCount=oPage.WebList("Index:=1").GetROProperty("Items Count")
For j=0 to SecondListItemsCount-1
oPage.webList("Index:=1").Select(j)
          Next
End If
Next

'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
'Any Web App - Working with any list box
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

QTP - Descriptive Programming - Broken Link Checking

OneTestingCenter @ QTP @ Descriptive Programming @ Broken Link Checking

' @@@@@@@@@@@@@@@@@@@@@@@@@@@@
' QTP – DP - Broken Link Checker tool for Any Web App
‘ Broken Link Check – Descriptive Programing
'@@@@@@@@@@@@@@@@@@@@@@@@@@@@

On Error Resume Next

Set oPage=Browser("name:=.*").Page("title:=.*")

DataTable.AddSheet "dtLinkName"
DataTable.GetSheet("dtLinkName").AddParameter "LinkName",""
DataTable.GetSheet("dtLinkName").AddParameter "PageTitle",""

Set oLink=Description.Create()
oLink("micClass").value="Link"

Set AllLinks=oPage.ChildObjects(oLink)
PageTitle=oPage.GetROProperty("title")
MsgBox "Total Number of links on the page: " &vbtab & PageTitle &vbtab & AllLinks.Count

For i= 0 to AllLinks.Count-1
DataTable.GetSheet("dtLinkName").SetCurrentRow(i+1)
DataTable.Value("LinkName","dtLinkName")=AllLinks(i).GetROProperty("name")
Next


RC=DataTable.GetSheet("dtLinkName").GetRowCount
For i= 1 to RC
DataTable.GetSheet("dtLinkName").SetCurrentRow(i)
LinkName=DataTable.Value("LinkName","dtLinkName")
oPage.Link("name:="& LinkName).Click
wait(2)
MyPageTitle=oPage.GetROProperty("title")
' msgBox MyPageTitle
DataTable.Value("PageTitle","dtLinkName")=MyPageTitle
If MyPageTitle<>"404 Error Page" or MyPageTitle<>"500 Internal Server Error" or MyPageTitle<>"Page Can't be found"  and MyPageTitle=DataTable.Value() Then
Reporter.ReportEvent micPass, "Link works good", "Clicked on Link" & LinKName
Else
Reporter.ReportEvent micFail, "Link does not work good", "Link is BROKEN " & LinKName
End If
Browser("name:=.*").Back
' SystemUtil.Run AppURL
Wait(3)
Next

QTP - Descriptive Programing - Dynamic Object Repository Creation

QTP - Descriptive Programing - Dynamic Object Repository Creation

OneTestingCenter @ QTP @ Descriptive Programming @ Dynamic Object Repository Creation

‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
' Create a Dynamic Object Repository for  any Web App – Model 1
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

'Set oPage=Browser("name:=.*").Page("title:=.*")
'PageTitle=oPage.GetROProperty("title")

DataTable.AddSheet "dtAppOR"

DataTable.GetSheet("dtAppOR").AddParameter "ObjectNo",""
DataTable.GetSheet("dtAppOR").AddParameter "ObjectClass",""
DataTable.GetSheet("dtAppOR").AddParameter "ObjectName",""
DataTable.GetSheet("dtAppOR").AddParameter "ObjectHtmlTag",""

Set oPage=Browser("name:=.*").Page("title:=.*")
Set oObj=Description.Create()

Set AllObjects=oPage.ChildObjects(oObj)
For i= 0 to AllObjects.Count-1
DataTable.GetSheet("dtAppOR").SetCurrentRow(i+1)
' MsgBox i &vbtab & "Object Class"&vbtab & AllObjects(i).GetROProperty("micClass")
' MsgBox i &vbtab & "Object Name"&vbtab & AllObjects(i).GetROProperty("name")
' MsgBox i &vbtab & "Object Html Tag"&vbtab & AllObjects(i).GetROProperty("Html Tag")
DataTable.Value("ObjectNo","dtAppOR")=i
DataTable.Value("ObjectClass","dtAppOR")=AllObjects(i).GetROProperty("micClass")
DataTable.Value("ObjectName","dtAppOR")=AllObjects(i).GetROProperty("name")
DataTable.Value("ObjectHtmlTag","dtAppOR")=AllObjects(i).GetROProperty("Html Tag")
Next




‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
' Create a Dynamic Object Repository for  any Web App – Model 2
'~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Set oPage=Browser("name:=.*").Page("title:=.*")
PageTitle=oPage.GetROProperty("title")

DataTable.AddSheet PageTitle

DataTable.GetSheet(PageTitle).AddParameter "ObjectNo",""
DataTable.GetSheet(PageTitle).AddParameter "ObjectClass",""
DataTable.GetSheet(PageTitle).AddParameter "ObjectName",""
DataTable.GetSheet(PageTitle).AddParameter "ObjectHtmlTag",""

Set oPage=Browser("name:=.*").Page("title:=.*")
Set oObj=Description.Create()

Set AllObjects=oPage.ChildObjects(oObj)
For i= 0 to AllObjects.Count-1
DataTable.GetSheet(PageTitle).SetCurrentRow(i+1)
' MsgBox i &vbtab & "Object Class"&vbtab & AllObjects(i).GetROProperty("micClass")
' MsgBox i &vbtab & "Object Name"&vbtab & AllObjects(i).GetROProperty("name")
' MsgBox i &vbtab & "Object Html Tag"&vbtab & AllObjects(i).GetROProperty("Html Tag")
DataTable.Value("ObjectNo",PageTitle)=i
DataTable.Value("ObjectClass",PageTitle)=AllObjects(i).GetROProperty("micClass")
DataTable.Value("ObjectName",PageTitle)=AllObjects(i).GetROProperty("name")
DataTable.Value("ObjectHtmlTag",PageTitle)=AllObjects(i).GetROProperty("Html Tag")
Next


 DataTable.Export "D:\TestData\MyAppOR.xls"

‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
‘@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

GAReddy @ OneTestingCenter @ All Articles