How we can call the scripit from another scripit in
QTP?,Not a call Action
Answers were Sorted based on User's Feedback
Answer / pavithra
Make a function for the script. use the execute file ()
METHOD, CALL THE FUNCTION IN UR SCRIPT
Is This Answer Correct ? | 8 Yes | 2 No |
Answer / uday kumar. a
By default, if u create a Test in QTP, means u r creating
one action for that test. So if u call for another test
means u need to call the action on that test.
Here is the example : Say u have created "test1". So all
the steops for the test is created with "Action1".
Now u have created another test "test2" and want to call
the test1. Here u need to call by using,
RunAction "Action1[test1]",oneIteration.
By using this u can call the test1 script. There is no
other way than this.
Is This Answer Correct ? | 5 Yes | 3 No |
Answer / jdev
I am executing the below statement from a new test, say test2.
RunAction "Action1[test1]",oneIteration
This was failing. Is it required to mention the complete
path [absolute path]? Suppose if I have 2 tests with the
same name located in two different locations. Ho does
RunAction identify whicj test to pick.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / srik
You can run multiple scripts from a vbs file though.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / krishna teja muppalla
I support Uday Kumar.
What we have to do is in insert call to action options we
have to select call to existing action. fro example if we
want to call 1st action from 2nd action, we have to give
from test as 1. here we need to give relative path.
as we are calling 1st from 2nd, first of all 1st test should
be executed. so, at 1st line we have to insert from current
option.
remaining part is easy
any corrections please...
Is This Answer Correct ? | 0 Yes | 1 No |
Answer / s
Krishna,Ur answer is confusing.. Pls b clear when u post
the answers
Is This Answer Correct ? | 0 Yes | 1 No |
Hi Friends...this is surendra..recently i joined automation team ...Please send me some documents regarding VB script ...and where can i learn VB script... This is My mail id: surendra.mamilla@gmail.com... please send to my mail.... Thanx in advance surendra.
how to add a runtime parameter to a data sheet?
hello all i need some good sites or blogs which give info abt vb script with examples n real time scenarios.just like tutorials as i m new to qtp n vbscripting. its urgenttt
How many check points are there in QTP and what are they?
Can an action have 2 shared object repositories associated with them? In that case, if two of them contain the same object, which one will be considered?
Hi Friends this is kumar i would like to request to all of you ,please help me to explain real time project with using qtp scripts i know basics of qtp but it won't workout on interviews,pls help awating to reply.
without Qtp features can we automated?
IN EXCEL SHEET OF qtp SUPPOSE I ENTERED 10 NUMBERS RANDOMLY I HAVE TO GET TOTAL OF TEN NUMBERS IN THE 11 COLUMN USING qtp GIVE CODE TO IT USING qtp
How many types of Parameters are available in QTP? and Pls Explain with example.
Check point what is how many types of checkpoint and explain
I am having trouble understanding #1 how to paramaterize a userid and password that I need to call in about 25 existing scripts. I need to know how to Create a Reuseable action for 25 existing scripts that will call the exact same userid and password? I need to know how to create a Reuseable action and then have it called by existing scripts being run in a batch.
How to find the name of the machine where you are running your automation scripts in qtp?