Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Use the Input parameters specified under Steeings>Parameters Tab?
#1
Solved: 11 Years, 4 Months, 2 Weeks ago
I am trying to use Parameterization using the same concept as that of USer-defined external variables. Howsoever, m not able to succedd. I performed the below steps:

1. Under File>Settings>Parameters Tab>Input Parameters: add a new String type Parameter "param' with the Default value "paramval". I apply these settings and save.
2. Under the Expert View, i typed the following :

Code:
-msgbox Parameter("param")
-msgbox Parameter("param").item

I encounter a runtime error "Parameter param not found"
But in the test results window, the Name and value are correctly displayed.

Is there any other way to use the same?
Reply
#2
Solved: 11 Years, 4 Months, 2 Weeks ago
What you declared is Test Parameter, to use a test parameter replace parameter with TestArgs

Code:
msgbox TestArgs("param")

Stephen
Reply
#3
Solved: 11 Years, 4 Months, 2 Weeks ago
Thanks Stephen Smile
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  QC Environment Input Omegadash 0 1,447 10-15-2015, 11:53 AM
Last Post: Omegadash
  Close Tab Recognizes GetROProperty. WHY??? Ayesha 5 4,171 07-24-2013, 10:39 AM
Last Post: vinod123
MyBB Resource Parameters in BPT11 bfakruddin 0 1,542 07-13-2012, 12:51 PM
Last Post: bfakruddin
  How to pass long string as input to QTP Anjali09 3 4,929 01-05-2012, 02:20 PM
Last Post: vinod123
  QTP script with excel parameters CapitanFuturo 0 1,890 11-11-2011, 03:55 PM
Last Post: CapitanFuturo

Forum Jump:


Users browsing this thread: 1 Guest(s)