My questions is while writting descriptve programming, lets take flight reservation. Line1: systemutil.Run "D:\Program Files\Mercury Interactive\QuickTestProfessional\samples\flight\app\flight4 a.exe" dialog("text:=Login").WinEdit("attached text:=Agent Name:").Set "mercury" dialog("text:=Login").WinEdit("attached text:=Password:").Set "mercury" dialog("text:=Login").WinButton("text:=OK").click window("text:=Flight Reservation").Activate window("text:=Flight Reservation").ActiveX ("acx_name:=MaskEdBox").Type "111111" window("text:=Flight Reservation").WinComboBox("attached text:=Fly From:").Select "Frankfurt" window("text:=Flight Reservation").WinComboBox("attached text:=Fly To:").Select "London" window("text:=Flight Reservation").WinButton ("text:=FLIGHT").Click window("text:=Flight Reservation").dialog("text:=Flights Table").WinList("text:=From").Select "13536 FRA 08.00AM LON 08.45AM SR $163.00" window("text:=Flight Reservation").dialog("text:=Flights Table").WinButton("text:=OK").Click window("text:=Flight Reservation").WinEdit("attached text:=Name:").Exist window("text:=Flight Reservation").WinEdit("attached text:=Name:").Set "sagar", Now i m getting the error in the last line. it is not accepting the WinEdit("attached text:=Name:") Please do solve this urgent...! and i want to know how to insert additional properties for an object and which properties we need to select from the object spy.3 3726
Hi, can any one tell this Actually I AM NEW TO QTP I have one qtp script in which it calls the vbs file during it's run TIME by using the ExecuteFile "absolute path" If the vbs file is executed seperately it will give the output in a msgbox In the same way if qtp script is executed the result will be displayed in w result window right? Now the question is how to get that vbs file output in the qtp result window when I run the qtp script which calls the vbsfile during it's run TIME1 2330
i created script for login in QTP,i parametirized that using global sheet,problem i am facing is first i want to login with first values provided in excelsheet and want to perform some operation,second time if call same action it should login with second values in excelsheet
I need help to write a function in vbscript to click on a link. That link looks like a tab. There are 6 tabs. When I click on 1 tab it should show as "on". when I spy the class property is on. But for the one which is not clicked the class property is blank. I have objects created in our custom object repository. Please give me some idea.1 4377
We have an application which is built using multiple technologies and are using QTP as the tool for Automating the same. While we spy over a combo box in this application, we get the object name as a "Combo Control" and we are not able to perform any action over this object in either selecting or checking any method for the same like "Exist" etc. Hence we thought of a solution and the same can be found below874
how to set one column as primary key in QTP and fetch values accordingly
I have attended Anovatek Software QTP interview. They will give us computer and one web based application with QTP. We have to automate some records (already updated records or new records) using QTP Data driven testing. But we should use for loop? Can any one know how to do data driven testing using For loop?930
Hi Friends Rajendra this is bhavani prasad, iam working Hyderabad. i faced one problem with qtp recording mode i.e in my application there is 100 records first we click the first record that record will be jumped to next session and 99 records will there stop the recording and run the same script .Run this script qtp does not identify the records. So plz tell me what is the solution.907
Plz give the vb script for the following scenerio. In travel booking we have to select from delhi to mumbai from the combobox The prices will be display in another combo box .But i have to select the lowest price for it and submit it
How do I check that the names in a weblist are correct e.g in flight application the names of item are Denver, paris,London, etc. How do I ensure the correct item is displayed from the list after doing item count ?
Write VB script to convert from feet to inches(hint 1feet=12 inches)2 7129
generic function for webedit box for web application1 3871
after medical test,when will be the police verification
Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks
VISUAL BASIC QUESTIONS Does VB/Win make standalone .EXE files? What is the current version of Visual Basic for Windows? [++] Where can I get updated VB and other Microsoft files? Where can I get good up-to-date information about VB? [++] Are there any examples of commercial applications built using Visual Basic? What's the difference between MODAL and MODELESS forms? [++] When/Why should I use Option Explicit? Why does everybody say I should save in TEXT not BINARY? Is the Variant type slower than using other variable types? How do I make a text box not beep but do something else when I hit the Enter key? How do I implement an incremental search in list/dir/combo/file boxes? How do I get the Tab key to be treated like a normal character? How do I make an animated icon for my program? What is passing by reference? I get a "file not found" error on the IIF function when I distribute by program. Why? Is there any way to pass a variable to a form apart from using global variables? How should dates be implemented so they work with other language and country formats? Can a VB application be an OLE server? How do I dial a phone number without using the MSCOMM VBX? I have [several] megabytes of memory. Why do I get an "out of memory" error? [++] How do I mimic a toggle button? [++] How do I get my application on top? Is there a way to break long lines in VB code? How do I remove/change the picture property of a control at design time? Is a [foo] VBX/DLL available as shareware/freeware? How do I make my applications screen-resolution independent? How do I do Peek and Poke and other low-level stuff? [++] Why doesn't "my string" & Chr$(13) do what I want? How do I prevent multiple instances of my program? How do I implement an accelerator key for a text box? How do I force a file dialogue box to reread the currect disk? How do I get the number of free bytes on a disk? [++] Data Control missing from toolbox when I use VB under NT 3.5. Why? How do I tell when an application executed using the SHELL command is finished? How do I access C style strings? How can I change the printer Windows uses in code without using the print common dialog? How can I change orientation? How do I speed up control property access? How much gain in performance will I get if I write my number crunching routines in C instead of Visual Basic? How do you make a TEXTBOX read only? Or, how do I prevent the user from changing the text in a TEXTBOX? How can I create a VBX? How do you change the system menu (on the Control-Menu Box)? How do I play MID, WAV or other multimedia files? How can I call a 'hidden' DOS program from VB? How do I do drag & drop between applications? How do I use GetPrivateProfileString to read from INI files? How do I implement Undo? How do I create a window with a small title bar as in a floating toolbar? What is Pseudocode? Does VB support pointers to functions? How do I program the Novell NetWare API from VB? How do you change the icon and otherwise manipulate the DOS box? How do I make the mouse cursor invisible/visible? How do I create controls dynamically (at run-time)? How do I set the Windows wallpaper at runtime? How do I call help files from a VB program? [**] What is the Windows API? How do I call a DLL? What about DLL calls that require callbacks? Why can't I use an index with my VB accessed database? Is the Access Engine and Visual Basic Pro good enough for database work? How do you avoid the "Invalid use of null" error when reading null values from a database? What is "NULL"? How can I access a record by record number? How about Access 2.0 compatibility? How come I get a "No Current Record" error when I use a a Data Control on an empty table? How can I speed up my VB database application? How do I get a bitmap picture in a field in an Access database? What is "Reserved Error -1209"? I'm getting error message "Reserved Error [-nnnn] ("There is no message for this error")" from Jet Engine 2.0.Why? Why do I get "object not an array" when I try reference the fields of a global object variable which I have set to a table? Visual Basic Questions 1. Which controls can not be placed in MDI ? 2. List out controls which does not have events 3. Which property of textbox cannot be changed at runtime. What is the max size of textbox? 4. How many system controls are available 5. ___,_____ and ____ container objects. 6. ___ Property is to compress a image in image control. 7. ___,___ and __ are difference between image and picture controls. 8. To.set the command button for ESC ___ Property has to be changed. 9. Is it possible to set a shortcut key for label. 10. What is the default property of datacontrol. 11. ___,__,___ are the type of combo box? 12. __ no of controls in form. 13. OLE is used for _______ 14. What is the need of tabindex property is label control. 15. ___ is the control used to call a windows application. 16. Clear property is available in ____,___ control. 17. ___ Property is used to count no. of items in a combobox. 18. ___ is a property to resize a label control according to your caption. 19. Which controls have refresh method. 20. ___ property is used to change to ___ value to access a identity column'in datacontrols. 21. _____ is the property to ___,____,____ are valid for recordsource property of dat control. 22. To find the current recordposition in data control. 23. Timer control contains ________ no. of events. 24. ____ property is used to lock a textbox to enter a datas. 25. What is the need of zorder method? 26. ____ is the difference between Listindex and Tab index. 27. ____ property of menu cannot be set at run time. 28. Can you create a tabletype of recordset in Jet - connected ODBC dbengine. 29. Difference between listbox and combo box. 30. What are the new events in textbox that has been included in VB6.0 31. Can you create a updatecascade, Deletecascade relation in Ms- Access? If no, give on eample. 32. _____ collection in recordset used to assign a value from textbox to table columns without making abinding in datacontrol. 33. ___ argument can be used to make a menuitem into bold. 34. What is the difference between Msgbox Statement and MsgboxQ function? 35. What is.the difference between queryunload and unload in form? 36. ___,___ arguments will be used to run a executable program in shell function 37. ___ property used to add a menus at runtime. 38. What is the difference between modal and moduless window? 39. ___ VB constant make the menu item in centre. 40. ___ method used to move a recordset pointer in nth position in DAG. 41. To validate a range of values for a property whenever the property values changes,which type of property procedure you use? 42. What are 3 main differences between flexgrid control and dbgrid control? 43. What is the difference between change event in normal combobox and dbcombobox? 44. To populate a single column value which dbcontrols you to use? 45. What is ODBC? 46. PartsofODBC? 47. WhatisDSN? 48. WhatisDAO? 49. Types of cursors in DAO? 50. Types of LockEdits in DAO? 51 .Types of Recordsets. 51. Difference between Tabletype and Snapshot? 52. Draw Sequence Modal of DAO? Explain. 53. Difference between Dynaset and Snapshot? 54. Difference between Recordset and Querydef? 55. What is the use of Tabledef? 56. Default cursor Type and LockEdit type in DAO? 57. What is the default workspace? 58. Is it posible to Create Tables Through Querydef? 59. It is possible to access Text (x.txt) files? Explain. 60. What is ODBC Direct and Microsoft Jet Database Engine ? 61. Is it possible to Manipulate data through flexgrid? Explain. 62. Types of DBCombo boxes 63. What do you mean by Databound Controls? Explain. 64. What is RDO? 65. Types of cursors in RDO. 66. Types of LockEdits in RDO. 67. Types of LockEdits in RDO. 68. Types of Resultsets. 69. Difference between Recordset and Resultsets. 70. Explain Default cursor Type and LockEdits type in RDO 71. Draw Sequence Modal of RDO? Explain. 72. What is meant by Establish Connection in RDO? 74.1s it possible to Access BackEnd procedures? Explain. 73. What is OLE? Explain. 74. What is DDE? 75. Difference between Linked Object and Embedded Object? 76. Explain OLE Drag and Drop. 77. Difference between DDE and OLE. 78. What is the difference between Object and Class? 79. Give brief description about class? 80. Does VB Supports OOPS Concepts? Explain.. 81. Difference between Class Module and Standard Module? 82. Explain Get, Let, Set Properties. 83. Difference Types of Procedures in VB? 84. What is the use of NEW Keyword? Explain. 85. What is constructors and distructors. 86. Types of Modal windows in VB. 87. What is ActiveX? Explain. 88. Types of ActiveX Components in VB? 89. Difference between ActiveX Control and Standard Control. 90. Difference between ActiveX Exe and Dll. 91. What is instantiating? 92. Advantage of ActiveX Dll over Active Exe. 93. Difference Types of Instancing Property in ActiveX Dll and Exe. 94. What is ActiveX Dll and ActiveX Exe? 95. Write the steps in Creating ActiveX Dll and Active Exe? 96. Explain the differences between ActiveX Dll and ActiveX Exe? 97. How would you use ActiveX Dll and ActiveX Exe in your application? 98. How would you access objects created in ActiveX Exe and ActiveX D1T 99. What is the use of ActiveX Documents? 100. What is ActiveX Document? 101. What is the use of Visual Basic Document file? 102. What is hyperlink? 103. How would you create Visual basic Document file? 104. What is Internet Explorer and its uses? 105. How would you navigate between one document to another document 106. in Internet Explorer ? 107. How would you run your ActiveX Document Dll? 108. How would you view html code in Active Server Pages? 109. How would you cre.ate your application in DHTML? 110. What is ActiveX Control? 111. Write the Steps in Creating an ActiveX Control? 112. How would you attach an ActiveX control in Your Application? 113. How would you create properties in ActiveX Control? 114. What is the-use of property page Wizard in ActiveX Control? 115. How would you add elements in TreevieW Control. 116. What are the types of line styles available in Treeview Control? 117. What is the use of Imagelist Controls 118. How would you attach pictures in Treeview Control? 119. What are the uses of List View Control? 120. Explain the types of Views in Listview Control. 121. How would you attach pictures in column headers of List View Control? 122. How would you add column headers in listview control? 123. How would you add elements and pictures to listitems in listview control? 124. How would you activate animation control? 125. What is the use of progress Bar Control? 126. How would you find out the value property in Slider Bar Control? 127. What is the use of Data Form Wizard? 128. How would you map properties to controls by using ActiveX Control Interface Wizard? 129. How would you convert a form into document? 130. How would you Create a Query Builder and Explain its uses 131. How would you create properties by using class Builder Wizard? 132. HTML stands for What? Use of HTML ? 133. Whether HTML supports multimedia: and document links? 134. DHTML Is used for what? 135. What do you mean by HTTP? 136. What is the use of Hyperlink control for DHTML applications? 137. How can you Navigate from the DHTML application to another DHTML application? . 138. What are the Internet tools available in VB6.0? 139. Explain the usage of Web Browser Control? 140. What do you mean by ADO? 141. What is the difference Between ADO and other data access objects0 142. WhatisOLEDB? 143. What are the important components of OLEDB? 144. Through which protocol OLEDB components are interfaced? 145. It possible to call OLEDB's Features directly in VB without using any control? 146. What type of databases you can access through AD I Data Access Object? 147. How many objects resides in ADO ? 148. What is the use of Connection object? 149. What is the use of command Object? 150. Recordset object consists what? 151. What is the use of parameters collection? 152. Which type of object requires this object? 153. Is it possible to call backend procedures with ADO control? 154. Is there any Edit method in ADO Data Access method? 155. How can you check whether a record is valid record or Invalid record using ADO control or Object? 156. What do you mean by provider? 157. What type of recordsets are available in ADO? 158. Is it possible to call oracle database through ADO control or Object? 159. How many File System Controls are there ? Explain. 160. How can you filter out specific type of file using file system controls? 161. How can you get selected file from file system Control? 162. How many ways we can access file using VB? 163. Which method is preferred to save datas like database? 164. How to get freefile location in memory? 165. How to find size of the file. Which method or function is used to occomplish this? 166. Using which type we can access file line by line? 167. Which method is used to write context Into file? 168. How can you read content from file? 169. Binary Access-method isused to access file in which manner? 170. How can you check Beginning and End of the file? 171. What is the use of Scalewidth and ScaleHeight Proeperty? 172. What is the use of Active Control Property? 173. How can you save and Get data from Clipboard/ 174. What are the types of Error? 175. In which areas the Error occurs? 176. What are the tools available for Debuggiu in VB? 177. What is the use of Immediate, Local Window? 178. What is the use of debug Window? 179. How can you Implement windows functionality in VB? 180. How many types of API functions are availble in VB? 181. How can you Add API functions to your Application? 182. How to get Cursor position using API? 183. Is it possible to change menu runtime using API? If yes? Specify the function names. 184. What are the types of API Types.
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.
Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
How to make sure that items in a wintree are sorted al?
give me any information abou vb script books learn quckly
what is resorceallocation
For a webbased application:- what should be code in expert veiw, for retrieving a single column name "username" from a server and checking whether exported "username" from datatable doesn't exist in server. suppose i have saved in excelsheet a username="gayatri" , which is exported, then checked for whether this username "gayatri" exist in server database or not ? if exist then allow to enter new username, which should be again checked for in loop , or else come out of loop and enter a distinct "username". plz let me have this answer in my id email@example.com
Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...
what is the difference between modular and data and keyword driven framework
what is the use of QCUtil? explain with one example?
what types of bugs will we find out in banking projects for automation testing?
Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)