GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 137 of 668    Print  
In a Combobox(or) ListBox there some Values ...like...1,2,3,4. Using QTP how Check these Values are ....Dislying or not...Please Can any one Give the VB Script .....

  
Total Answers and Comments: 1 Last Update: August 17, 2006     Asked by: kareem 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
August 17, 2006 07:26:39   #1  
Hokrani        

RE: In a Combobox(or) ListBox there some Values .....

*1st you have to add weblist to object repository. (To add weblist to object repository right click on the weblist and select View/Add Object and click on OK button )

Suppose u added Weblist in the following Tree

Home -> Mail -> 1list

* Stored the expected values in localsheet(Action1)

Suppose u stored values under Input column under Local sheet

* Use the following code.

Dim counter NumOfRow

NumOfRow datatable.Getsheet( Action1 ).GetRowCount

counter 0

Do while counter<NumOfRow

If (datatable.Value( Input dtlocalsheet) Browser( Home ).Page( Mail ).WebList( 1list ).GetItem(counter) )then

msgbox correct value

else

msgbox Wrong value

end if

counter counter+1

Datatable.SetNextRow

Loop

It will work properly. Let me know if u have any question regarding this and anything more don t forget mail to me @ hokrani@gmail.com.


 
Is this answer useful? Yes | No

 Related Questions

Hi I am new to load testing .Currently i am using Load runner 8.2. i have recorded a script for login screen with some UID/PWD.In load runner Controller i have selected 100 Vusers,and i the run script.My question is :1.)Is the same script runs 100 times for same UID/PWD what i have entered during Recording.2.)If my data base contains only 50 users.Selecting 100 Vusers is a valid case?.3.)If i have selected 100 Vusers,is it necessary to enter 100 UID/PWD.Regards,vivek
Read Answers (8) | Asked by : vivek

In Quick Test Pro 8.21. While Recording/writing the Script i want to know the " Selecting Tab Position Action Script".Eg: Window contains 4 tab positions i would like to select 2 tab position at that time how script will come. plz write the script and send me. 2. How can i generate and select Tree View in Programatically. Eg: Mycomputer Contains all drives information like as below. +My Computerwhen i press + Symbol My Computer will Expand that format like-- My Computer Drive

How to use automation object to load the library files in QTP. I tried to use this stmt" set App = createobject("Quicktest.Application")App.Test.Settings.Resources.Libraries.Add ("F:QTPrepository.vbs"),1 ".could u pls help how to add it by script itself? what is executefile concept? is it workaround to my question?

I have 10 Edit Boxes in my application. i Named them as Text1, Text2, Text3...Text10. Now i want to set values in these Text Boxes using Loop Statement. Can i Usefor i=0 to 10 browser("b1").page("p1").WebEdit("Text" & i).set "value" &inext**********Is it acceptable WebEdit("Text"&i) ? I am getting error here.Any suggestions?
Read Answers (6) | Asked by : Nagelli Anil Kumar

I am testing a web application using QTP, it is not recognizing date picker, which is coded in Java Script. any solution?
Read Answers (3) | Asked by : Sooraj

Is there any way that v can start recording our script with the same page, without creating a new instance for that page. for e.g. continuing our script recording with 'flight confirm mercury' page only, even if 'flight confirm mercury' exists in the OR?
Read Answers (1) | Asked by : Rverma

I am testing an application that sends certain data to users. How do i check that the user will not receive excess data. I mean I can go in and sign in as the user and insert a standard checkpoint...but that only checks the data integrity, it does not check if the user received excess data. Please help..any suggestions are welcomed
Read Answers (2) | Asked by : Raj

Hi Fellowmates...i am pretty new entrant into this. I am on QTP and into the beginning of it. I really need lot of support and help from your end. When do we go with Object Repository and also the error handling. When i was running the script i got 2 messages for 2 runs saying that :-Cannot find the 'keyword' objects parent "mainContent"(class frame) Verify that parent properties match an object currently displayed in your application.Cannot identify the object "main_content_3'
Read Answers (4) | Asked by : CHAKRATENG

I am testing a Java executable application and and IE based application.I have a script that I would like to launch the Java executable, enter a record in the database, the switch over to IE and search the database. Currently I am having trouble: 1) The java EXE cannot be launched from the QTP command line. So my run settings are run on any open Java application. This is not preferable and right now DEV cannot figure out why QTP can launch other Java apps and not ours. So when I start the script

1. I don't want my application to open when while running the scripts. is it possible through QTP like that?2. Is it possible to make 100 users login at the same time to check load through QTP?


 Sponsored Links

 
Related Articles

Assign values during declaration

How to assign values during declaration of variables Declaring variables tells the compiler the data type the variable is assigned and no storage area is allocated during this stage. It is possible to assign values during declaration itself. For example, consider the following program: main() {
 

Recording Test Script With WinRunner

How To Use a Wizard to Record a Test Script With WinRunner If you have a script that you want to convert with WinRunner, you can use the DataDriver Wizard to transform the script into a test that is driven by data. For instance, if you want your test script to include things such as checkpoints or v
 

WinRunner Script Design Tips

Scripts play an important role in the function of WinRunner. Those who wish to successful with this program will need to learn how to properly create scripts. In this article, I will provide you with a number of useful tips for script creation. The first tip of script development is to always place
 

Passing values to JavaScript Function

Passing values to JavaScript Function In this JavaScript Tutorial you will learn about how to pass values to and also how to return values from a JavaScript function mosgoogle center Passing Values to function Values can be passed to a function as parameters The general syntax for passing values to
 

Quality Aspects to Check While Writing COBOL Program

Quality Aspects to Check While Writing COBOL Program This article gives a general list which the programmer must check while delivering programs developed in COBOL This can also be used as a general checklist for checking quality of the COBOL program developed mosgoogle Quality is a vital factor fo
 

VB Script - How to use VBScript with Forms

VB Script How to use VBScript with Forms In this tutorial you will learn about How to use VBScript with Forms Introduction How to do validate your Forms and Conclusion mosgoogle Introduction Now this is the last topic of the tutorial and you will learn how to validate and submit the data to the web
 

VB Script - Controlling VB Script Routines

VB Script Controlling VB Script Routines In this tutorial you will learn about Controlling VB Script Routines Introduction VB Script Description If then else Select Case Looping Statements For Next For Each Next Do loop Do While Do Until While wend and Conclusion mosgoogle Introduction Every program
 

Working with Objects in VB Script

VB Script Objects with VB Script In this tutorial you will learn about VB Script Objects with VB Script Introduction How to Add Objects to your web pages How to Add Objects to your Web Pages and How to link Vb Script with Objects mosgoogle Introduction Objects which are in the form of ActiveX contro
 

VB Script - Working with Variables

VB Script Working with Variables In this tutorial you will learn about VB Script Wroking with variables Introduction Description Naming Conventions Variants and its sub types How to Assign values to a variable What is the scope of a variable Constants Arrays and Conclusion mosgoogle Introduction A v
 

VB Script Tutorials- Introduction

VB Script Introduction Vb Script tutorials will be covered in the following topics which are given below What is VB Script Working with Variables Objects and VB Script Controlling VB Script Routines Using VB Script with Forms In this tutorial you will learn about VB Script What is VB S
 

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