Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

how to make a reuseable action read local data?

This is a discussion on how to make a reuseable action read local data? within the QTP forums, part of the Software Testing category; If I have two scripts, one is a reuseable and normal script such as below. Is there a way to make the "login" able to utilize variables in "testall"? Note: ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 09-24-2008
Expert Member
 
Join Date: Jun 2008
Posts: 212
Thanks: 6
Thanked 12 Times in 11 Posts
learqtptesting is on a distinguished road
how to make a reuseable action read local data?

If I have two scripts, one is a reuseable and normal script such as below. Is there a way to make the "login" able to utilize variables in "testall"?

Note: I opt to use reuseable Action as (learning) the alternate trick. Fuction would work fine for me.

1) login (reuseable)
browser().Page().webedit().set id
browser().Page().webedit().set pwd
browser().Page().webbutton().click


2) testall
dim id, pwd
id = "some" => this could be from database at run-time
pwd = "thing" => this could be from database at run-time

(call) login
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 09-26-2008
Expert Member
 
Join Date: Jan 2007
Location: India
Posts: 208
Thanks: 3
Thanked 19 Times in 19 Posts
NawabShaikh is on a distinguished road
Re: how to make a reuseable action read local data?

In case u are using the variables as Parameters for the Reusable action...Similar to that in function...

Please Search Parameter() in the Manual...

Regards,
Nawab
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Unable to import data into local sheet Geek_Guest QTP 4 05-27-2009 02:19 AM
Read and write data to a file in QC sairam100 QTP 3 01-16-2008 03:15 AM
Difference between Function, Copy of Action & Externel Action Geek_Guest QTP 1 07-31-2007 07:33 AM
Convert local or per action repository to share repository Geek_Guest QTP 4 07-11-2007 03:12 PM
How to make the Applet Read Only at run time Geek_Guest Seibel 0 06-27-2007 05:37 AM


All times are GMT -4. The time now is 12:09 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved