Can an object be passed as a UFT test parameter
Question ID: 108014
1
0

I am using UFT 12.54 and am trying to pass in a object as a test parameter, but at run time I receive a "Type mismatch" error. Any idea what I’m doing wrong?

Passing an object as a parameter worked fine when I was running this through a function but now that we are converting our framework to from functions-based to actions-based I am getting this error and unable to run the test.
My code is a simple parameter assignment, but is throwing the Type Mismatch error:
Parameter("Object") = Browser("ATLIS").Page("Find Candidates Page").WebEdit("Email")

Marked as spam
Posted by (Questions: 10, Answers: 5)
Asked on November 20, 2017 12:28 pm
236 views
Answers (1)
0
Private answer

UFT Test and Action Parameters are not designed to pass object type variables. If you need to pass object between tests or action consider creating global variables.

If this answers your question please click on the accept link.

Marked as spam
Posted by (Questions: 2, Answers: 98)
Answered on November 20, 2017 6:24 pm
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top