Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Action Parameterization Issue
#1
Not Solved
Background: I'm a complete beginner with automated testing. I'm a Business/Testing Analyst that hasn't done a ton of programming since college 18 years ago. However, I have written quite a few EXCEL VBA macros. I've been doing manual testing for 16 years.

I'm currently going through a Udemy Course on UFT, and am learning quite a bit, but sometimes even though I've copied the code verbatim from the course instructor, I am getting errors.


Here is one such issue I'm having today with Action Parameterization.

Looks pretty basic, but I'm getting this error:

You specified more parameters in your RunAction statement than the number of parameters defined for the action.
Line (8): "RunAction "Copy of Action1", oneIteration, a, b, c".


a and b have been set up in properties as input parameters (number, default 0)
c has been set up in properties as an output parameter (number)

I'm running UFT version 14.03 Build 3745


Here is the exact code:

Action:
------------------------------------------------------------
a=10
b=20

RunAction "Copy of Action1", oneIteration, a, b, c

msgbox c

---------------------------------------------------------------


Copy of Action 1:
----------------------------------------------------------------
parameter("c") = parameter("a") + parameter("b")
----------------------------------------------------------------'
Reply
#2
Not Solved
Check if these parameters are defined in the required action - "Copy of Action1"

By the way, this is a basic thing and your instructor should have helped you with it.
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Business Components Parameterization YogeshCallappa 0 1,621 06-07-2017, 04:32 PM
Last Post: YogeshCallappa
  Parameterization Hanskanika 0 1,645 11-20-2015, 04:45 PM
Last Post: Hanskanika
  Flight reservation basic parameterization not working on qtp 11.5 srs246 0 3,692 01-08-2013, 10:14 AM
Last Post: srs246
  action status in QTP test - main action vanilla 1 4,608 02-12-2012, 10:59 PM
Last Post: rajpes
  "QTP Parameterization" suresz449 1 14,512 08-19-2011, 02:22 PM
Last Post: sreeswetha

Forum Jump:


Users browsing this thread: 1 Guest(s)