
Loading ...
Recently while working with BPT Automation I was trying to implement flexible functions in my library which can be used in both the normal as well as BPT code. Consider the below Login function
Function App_Login(UserName, Password)
Browser("X").Page("X").WebEdit("UserName").Set UserName
Browser("X").Page("X").WebEdit("Password").Set Password
Browser("X").Page("X").WebButton("Login").Click
End Function
Now since BPT supports component parameters I can do away with passing any of the parameters to [...]
Register or Login to read the full article...
Tags used -
Application Area, blank value, BPT, Component, Does not work, function, Library, not loaded, parameters, Scripted Component, value is blank

Loading ...
Capturing screenshots to QC in test result can quickly eat up all the space on the QC Server. This makes it sensible to capture images only in case a Test has failed. This can allow easy debugging of Test Cases to see what error had occurred when the test failed. Adding this functionality to your [...]
Register or Login to read the full article...
Tags used -
Add, Attach, BPT, Business Components, Business Process Testing, capture, Component, CurrentRun, desktop, Error, failure, file, images, QC, Results, run, screencapture, Screenshot, Terminate, Test, test lab, test result

Loading ...
Working with BPT is not always same as working with normal QTP script. On my quest to find the current test and component iteration for a Business Process Test I found that below two Environment variables always return 1
Environment("TestIteration")
Environment("ActionIteration")
Inquiring with HP i found out that currently this is not possible with BPT. I was disappointed [...]
Register or Login to read the full article...
Tags used -
ActionIteration, BPT, Business Components, Business Process Testing, Component, Current Component, Current Iteration, CurrentRun, iteration, Iterations, Scripted Component, StepFactory, TestIteration