Variable Undefined

1,396 views
Skip to first unread message

Baskar Sekaran

unread,
Jul 20, 2013, 10:38:12 AM7/20/13
to mercu...@googlegroups.com
During the script execution, An error occurred "Variable Undefined", How to handle this error, during run time without stopping the script execution.
There is any possibility to assign a variable during run time in QTP.

Anjum Jethi

unread,
Jul 20, 2013, 11:16:05 AM7/20/13
to mercu...@googlegroups.com
in your script "option explicit" is used. This means its mandatory to declare a variable before using it. And this is correct approach. So you have to make sure all the variable must be declare in your script.


On Sat, Jul 20, 2013 at 8:08 PM, Baskar Sekaran <sragu...@gmail.com> wrote:
During the script execution, An error occurred "Variable Undefined", How to handle this error, during run time without stopping the script execution.
There is any possibility to assign a variable during run time in QTP.

--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
 
---
You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mercuryqtp+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
Regards
Anjum

Venkat Reddy Bandaru

unread,
Jul 20, 2013, 12:34:45 PM7/20/13
to mercu...@googlegroups.com

Hi
Might be ,variable you forgot to declare in the script
Pls check all the variables in the script whether you have declared properly
Thanks

Thanks,
Venkat Reddy Bandaru
vband...@gmail.com
+ 91 9884524606

On 20-Jul-2013 8:19 PM, "Baskar Sekaran" <sragu...@gmail.com> wrote:
During the script execution, An error occurred "Variable Undefined", How to handle this error, during run time without stopping the script execution.
There is any possibility to assign a variable during run time in QTP.

--

vivs30

unread,
Jul 21, 2013, 1:42:57 AM7/21/13
to mercu...@googlegroups.com
When "Variable Undefined" error comes, follow these:
  1. Click on Debug button from Run time error window.
  2. Go to "Command" tab in Debug window (it will be in bottom.)
  3. type here without double quotes: "Dim <your undefined variable name>"
  4. Press Enter
  5. Press F5 (here you go...)
Please let me know if it resolves your problem.

Ramesvar GV

unread,
Jul 22, 2013, 12:54:05 AM7/22/13
to mercu...@googlegroups.com
seems ur array variable is not defined. Kindly define the array variable and proceed.

Rgrds,
Ramesvar


--
Reply all
Reply to author
Forward
0 new messages