Blog for QuickTest Pro (QTP) posts for experts and contains frameworks and scripts
WinRunner End-of-support and Migration Webinar
WinRunner End-of-Support Announcement
HP WinRunner Migration Webinar: A Case Study from Travelocity» Register NowLive date: Tuesday, March 11, 2008 Start time: 7:00 AM PT9:00 AM CT10:00 AM ET3:00 PM GMTSpeakers: Rachel Pilgrim, QA Manager,TravelocitySatish Atluri, HP QM Global Practices Roi Carmel, Functional Testing Product Manager, HP Software
Learn more
» WinRunner End-of-Support Announcement» WinRunner migration data sheet
Find out how to accelerate migration from WinRunner to QuickTest Professional »
IMPORTANT ANNOUNCEMENT FOR WINRUNNER USERSHP Software is announcing end-of-support for HP WinRunner software, all versions (7.5, 7.6, 8.0, 8.2, 9.2). This end-of-support is based on our decision to consolidate and focus our functional testing offerings (HP WinRunner and HP QuickTest Professional) to maximize value to our customers. For migration options, support end dates and a list of FAQs, read the entire announcement here.Migration WebinarTo assist you with the migration from HP WinRunner to HP QuickTest Professional, we are hosting a Webinar with HP Professional Services (PS) and Travelocity who pioneered the HP WinRunner to HP QuickTest Professional migration effort. In this Webinar, Travelocity will share how they leveraged Gallop Technologies’ WinQuick – an HP R&D validated and approved automated migration solution – to automatically migrate and re-architect their HP WinRunner code base to HP QuickTest Professional. You will learn:
• What options Travelocity evaluated before undertaking this migration
• How Travelocity was able to perform this migration within budget and in less time than expected while at the same time increasing adoption of HP QuickTest Professional across the enterprise
• How you can replicate Travelocity’s success in your own organization
Don’t miss this opportunity to get insights from a customer who had great success with this migration.
Technology for better business outcomes
» HP Software
» Sales
» Privacy Policy
» Unsubscribe
If you received this e-mail from a friend and/or would like to subscribe to our e-mail list to receive future promotions and special offers, please click here.HP respects your privacy. If you'd like to discontinue receiving e-mails from HP regarding special offers and information, please click here.For more information regarding HP's privacy policy or to obtain contact information please visit our privacy statement or write to us at: Privacy Mailbox, 20555 SH 249, Houston, Texas 77070, ATTN: HP Privacy MailboxHewlett-Packard websiteSign-up for Driver and Support Alerts
Verify Broken Links using VBscript (without checkpoints)
So the answer for that was the following code
---------------------------------------------------------
set
obj=Browser("name:=Blackboard.*").Page("title:=Blackboard.*").Frame("name:=main.*").object.all.tags("IMG")
msgbox obj.length
For each element in obj
s1=element.nameProp
If Browser().Page().Frame().Image("file
name:="&s1,"index:=0").exist(0) then
If Browser().Page().Frame().Image("file
name:="&s1,"index:=0").Object.complete="True" then
msgbox "pass"
else
msgbox "fail"
end if
end if
Next
---------------------------------------------------------
Code provided by my friend Shiva
Multiple Exit ways
‘.Action Code
If CritialCondition = False Then ExitAction
‘.Continue Action
But this is uninformative. So we add a reporter command:
If CritialCondition = False Then
If CritialCondition = False Then
Reporter.ReportEvent MicFail, "Something terrible has happened", "Aborting"
oFile.Close
Set oFile = Nothing
ExitAction
End If
============================================
If CritialCondition = False Then
Reporter.ReportEvent MicFail, "Something terrible has happened", "Aborting"
oFile.Close
Set oFile = Nothing
DataTable("out_EntityID", dtlocalsheet) = sEntityID
‘More here
ExitAction
End If
Dim sResult ‘I store result data and values to be reported up the
‘action-call chain
Dim sActionReport ‘Instead of flooding the log with inner-action messages,
‘I store them, and report all of them at the exit gate.
‘Errors are still reported on-the-fly
‘Action code goes here
‘All the exit gates execute only one command : ActionEnd.
‘It receives two parameters: Boolean for Pass/Fail,
’string for the exit reason
If CriticalCondition = False Then Call ActionEnd(False, "Reason for exiting")
‘Rest of action
‘Even the normal successful action exit is managed through ActionEnd,
’so the last line in every action is:
Call ActionEnd(True, "Action successful")
Sub ActionEnd(bStatus, sReason)
‘Report details
Reporter.ReportEvent MicGeneral, "Inner Action Logs", sActionReport
If bStatus = True Then
Reporter.ReportEvent MicFail, "An error has occurred", sReason
Else
Reporter.ReportEvent MicPass, "Action successful", "See inner logs"
End if
‘Plant datatable info for action-call chain
DataTable("out_Status", dtlocalsheet) = bStatus
DataTable("out_Result", dtlocalsheet) = sResult
‘More if needed
‘Close objects and set to nothing here
‘Other needed exit code
ExitActionIteration
End Sub
Function ComplexFunc
Dim sExitCode
Dim sResult
Dim oFile ‘will be FSO textstream
’separate code lines by vbcrlf or ":"
sExitCode = "oFile.Close" & vbcrlf & _
"Set oFile = Nothing" & vbcrlf & _
"ComplexFunc = sResult"
‘More exit code
‘Function code goes here
‘Exit Gate
If CriticalCondition = False then
sResult = "False, No Connection"
Execute sExitCode
Exit Function
End if
‘More function code
‘Successful exit
Execute sExitCode
End Function
Creating and Calling user define funtion
| Test Conditons: Creating and Calling user define funtion 2b. Go to Tools menu --> General Options |