what is descriptive.create()in qtp?
Answers were Sorted based on User's Feedback
This is used when we are working with descriptive programming.
that is not descriptive..
description.create...
it is used to create an object through scripting.
for example..
set objtext = description.create
objtext("nativeclass").value = Edit
objtext("attachedtext").value = "XXXXX"
now objtext is an edit box with name XXXXX
browser("dsagd").page("dsada").webedit(objtext).set "dsahdas"
If any queries....
nanda.dreddy@gmail.com
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / bhuvana
Descriptive programming is to give a description to any obj
by us.and this can be reused
Set objEdit=description.Create()
objEdit.Value("nativeText")="Edit"
objEdit.value("AttachedText")="Enter Text"
window("Application1").Dialog("Login").objEdit.set ("Name1")
window("Application").Dialog("Login").Ok.Click
then you can give diffeternt names in the datasheet and
slow the script to fetch the names from there
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sreeprasad
To create properties collection and we can create
properties object(MYDescription).once we have filled
properties collection with a set of properties objects
(properties,values) we can specify properties object in
place of an obj name
Is This Answer Correct ? | 1 Yes | 1 No |
In Developer view it is a high priority defect & in tester view it is a low severity defect what is that how to define with an example
we have 10 actions in out test how can we convert 9th action is main action ? how ?
When i use paramateriztion for tickets in flight reservation application , the tes'll run for first iteration but for the second iteration it'll give this details, but the second iteration is failed. Pls anyone clarify it. Cannot find the "Agent Name:" object's parent "Login" (class Dialog). Verify that parent properties match an object currently displayed in your application.
Hi All, I have a problem with getting the value which is available in the table and it is not having any unique property. Please find the below table TopicName CreatedBy ViewCount ------------------------------------------------ XXXX Y 10 ZZZZ ZZ 0 AAAA BBB 3 In the Above table TopicNames are link and it is having an id but the remainig two columns(Created by and ViewCount) are static Web element values and they are not having any unique property. Now i want to get the values of Created BY and View count for each and every topic. Can anybody give me the solution for the above ASAP. If anybody didn't understand the above please free to send me a mail by that i can send you the snap shots and some more description. You can catch me at krishnachand.p@gmail.com
in my system object spy show the web application as a window based propeties ex:winedit like that and also not recording scripts also so what should i do
In a webtable,a list of values are there,rightnow one values shows,later random another values shows,but how to retrieve the random value in webtable.
how you test broken link using the automated tool QTP ?
How did you use regular expressions in QTP and also in WR?
Can you write a script for to insert array elements in an excel A to Z columns only. if the number oe elements in the array is greater than the number of columns (A to Z), come to next row and proceed furthur. eah cell should contain only one array value.
What is the difference between Action and Function.? when both has the same functionaltiy, when do we choose Action and when do we choose Function..??
3 Answers DST Global Solutions,
I am not finding pages and links in object spy on web testing. I am only getting window and winobject. where is the problem? thanks
I got some information from the QTP help.But i am not sure whether through this process will QTP work or not bellow is the Help what I have Remote setup Settings Remote WSH, which is a new technology included in WSH 5.6, provides the ability to run a script on a remote machine or machines. With Remote WSH, the script is physically copied from the local machine to the remote machine before executing. In order to enable Remote WSH functionality, you must first set up the remote machine with the proper security settings. The steps below perform the tasks that enable Remote WSH. Note Both the remote and local machines must be running Windows NT 4 SP3 or greater in order to use Remote WSH. To enable a machine to run remote scripts 1. Install WSH V5.6 on the machine. If you are using Windows 2001 or have installed Internet Explorer 6 or greater, WSH 5.6 has already been installed. Note WSH 5.6 is available for download from the web at http://msdn.microsoft.com/scripting 2. Add yourself to the remote machine's Local Administrators group. 3. To enable Remote WSH, use Poledit.exe on the server. Note An administrator who wants to enable Remote WSH must either acquire the Windows 2000 resource kit, or use http://msdn.microsoft.com/scripting to acquire the necessary windowsscript.adm file that contains the WSH settings. The windowsscript.adm file must be copied to the server that sets the gapplicabel group's policies. Although it is not necessary to copy the file to the server's \WINNT\INF directory, this is nonetheless where the default adm files are located. Note For more information on Poledit.exe, see the Poledit.exe's online help system. 4. WSH should now be enabled on the machine. To test it,. WSH 5.6 can run scripts that reside on remote systems. The following scripts demonstrate this capability. These scripts make the assumption that the files are located on a local machine directory called "c:\wsh5.6"; change the local path and the remote machine name as necessary. After initially running RemoteTest.WSF on the local machine, there may be a small pause as DCOM verifies your identity. After you see the "Done" message, a file named "c:\beenhere.txt" on the remote machine indicates the time that you executed the command (from the remote computer's clock). Script to run scripts remotely set oController = CreateObject("WSHController") set oProcess= oController.CreateScript("c:\wsh5.6\beenhere.wsf","remmachine") oProcess. Execute Could you tell me will it work fine