GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 594 of 684    Print  
QTP : Set the value to the winedit box in run time
Hi,

I want set the value to the Winedit box in the Run time.

When i am save my file i want to give the name of each file in run time.

Link first time i have save file 1
next file 2
next file 3
next file 4

like this.

But in this the numbers have to display in the run time and have the save the file.

Like loop
for i = 1 to 100
Text & i
Next.

For this how i write the script
normally we write Winedit("textname").set "file"

But in this we cant set values using continuously

Plz help to set the value.

Thx

Punitha.R



  
Total Answers and Comments: 2 Last Update: March 26, 2008     Asked by: Punitha.R 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
December 08, 2007 14:05:08   #1  
Anshoo_Arora Member Since: October 2007   Contribution: 384    

RE: QTP : Set the value to the winedit box in run time
I am not sure if I entirely understand what you are looking for. You might have to provide more information/detail. You wait to set some value in WinEdit then you talk about some file? You need to be more clear.

As for setting value in WinEdit all you need is this:

Browser("Browser").Page("Page").WinEdit("name: WhatEver").Set "#"&i


 
Is this answer useful? Yes | No
March 26, 2008 05:20:12   #2  
ManjuPillae Member Since: March 2008   Contribution: 20    

RE: QTP : Set the value to the winedit box in run time

You need to give save a files using different files names that are continous
say File1 File2 ...

Then we have constant File and varying number.
So take fName as variable

For i 1 to n
fName File & i

'If you need to set the file name in the WinEdit box then
Window().WinEdit().Set fName
Next


 
Is this answer useful? Yes | No

 Related Questions

Answer posted by shreethik on 2005-06-09 08:36:38: Output values enable to view the values that the application talkes during run time.When paramaterised, the values change for each iteration.Thus by creating 
Latest Answer : By using Text Output value we can capture a runtime value form the application under test and store it in a variable or in a localsheet ...

Latest Answer : Run-Time data table stores the run-time values(output  values). It can be viewed in Test reults window. ...

Latest Answer : First of all,You get  the runtime parameter by using GetROproperty and store in a variable, say XThen by using DataTable.Value("sheetname",dtGlobal/LocalSheet)=XI hope it will solve your problem. ...
Read Answers (4) | Asked by : rajeshrs

While running a script on QTP 8.2 i got this run time error "General run error". What may be the cause for this error? and How to resolve this error?
Read Answers (7) | Asked by : Shashi

1) using the single script in QTP, How could you know the proper tab index order of the consicutive four edit boxes which are in a web page ? 2) A project is crashed frequently before you are taking that project for automation testing. On that time, What would be your desicion as automation test engineer ?

I m trying to add one new property in webEditbox. it is added successfully. after that i m trying to access from my script but it is not identified my run-time property value for that new property.If any one know pls let me know
Read Answers (3) | Asked by : Nupur

Recently I was asked this question in one interview .Can someone throw some light please..You are buying items from some online retail selling store.Letus say you are buying items from amazon.com. You bought cell phone and put in the cart then you find some shipping cost associated with it.You bought another item and put in the cart and notice that it is free shipping.You decided to check out and at the time of checkout you see the shipping costs got reversed for the two items.You are already running
Read Answers (4) | Asked by : babuda

Latest Answer : go to step-action properties-parameter in inputparameters addgive the name of the parameter and in default value give the path of the excel sheet ex D:swarnadatasheet.xls likei will explain this using insert in flight applicationids=parameter("inputdatasheet")datatable.AddSheet("inputdatasheet")datatable.ImportSheet ...
Read Answers (1) | Asked by : shubhada

Generally what object repository mode is preferred?Generally in real time projects we use Shared Object Repository file.
Read Answers (2) | Asked by : hariprasad

In real time projects ,we use to call ,Frame work as a folder. This folder contains the components such as , Object Repository,logs ,test data,script,result...etc. so whatever files are created to develop 
Latest Answer : Automation framework describes the approach we follow for implement ion of testing, Different organizations follow their own framework which is feasible to their project.Typical framework includes the execution flow and results, log, reports, scripts. ...
Read Answers (8) | Asked by : hariprasad


 Sponsored Links

 
Related Articles

SQA Software and Tools

SQA Software and Tools In quality assurance it is always important to get all the help we could get In other industries developers could easily check the products manually and discard those that do not meet the standard The length and the width of the product are checked to maintain standardization
 

Business Network Virtual Communication Tools

Business Network Virtual Communication Tools Since ages the Business community heavily relied on face to face communication for building Business relationships Face to face communications formed the basis for trust in a relationship An individual’ s appearance or the physical appearance of
 

What are Data Access Tools

Data access is the process of entering a database to store or retrieve data. Data Access Tools are end user oriented tools that allow users to build structured query language (SQL) queries by pointing and clicking on the list of table and fields in the data warehouse. Thorough computing history, t
 

Testing and Integration

Once the software is complete, it will go though rigorous testing before its actual integration.  In this article we will take a look at different types of software testing and also different types of integration. With the diversity of business setting and software development models, it al
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

SAP and Microsoft tools for Customer Service

World’s largest car dealer to use SAP and Microsoft tools for Customer Service Inchcape, the London-based largest car dealer in the world, is making itself much strong now by improving its customer services arising from major SAP and Microsoft implementations. The company has also vowed to
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Career Assessment Tools

For those not sure what type of career they are interested in pursuing, career assessment tools can provide help. There are assessments available at career centers that are designed to help people figure out a good career option. They explore your personality, skills, interests, and values, and can
 

Advantages of Using SAP R/3 in comparison with other Similar Tools

ERP system takes a lead role because of some of the following reasons: Many large corporations use several different and separate information systems, often because they have merged with and/or acquired other companies with varied systems. An ERP system integrates these separate information systems
 

Advantages of Using VoiceXML In Comparison To Similar Tools

Another powerful advantage of VoiceXML is the ability for the system to re-use certain Internet structures. The vast majority of companies today use either one of two infrastructures, and these are the IVR infrastructure or the web based infrastructure. VoiceXML is powerful because it will allow
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape