QTP automation

Dear all,

I am using QTP 10.0 + Flex Builder 3.02 + Flex of QTP plug-in.

QTP is able to identify all the object and its working very well. Still inside the gray of the object data is identified as labels, I am not able to use options like GetCelldata, Rowcount, ColumnCount etc since all the elements of the grid are identified as labels I'm not able to click and modify operations in rows and column values.

Anyone deal with this issues, please help me to solve the problem.

Thank you

Spengler

You may have already solved this problem, but it is possible to get the number of rows by using the GetItemsCount of QTP function.  If you find the value in an individual cell, you can enter the data in each row and send it in a table using "split" and then search.  Here is an example:

'get the number of rows in the table.
rowCount = Browser ("Browser"). FlexApplication ("App"). FlexApplication ("FlexClient"). FlexPanel ("FlexPanel"). FlexCanvas ('App Home'). FlexPanel ("search results"). FlexDataGrid ("searchResults"). GetItemsCount

userFound = FALSE

MyRow = rowCount 1
'Select the line.
Browser ("browser"). FlexApplication ("App"). FlexApplication ("FlexClient"). FlexPanel ("FlexPa nel"). FlexCanvas ("AppHome"). FlexPanel ("search results"). FlexDataGrid ("searchResults"). SelectIndex (myRow-1) ' indices start at 0
"get the content of the data in the row (the columns are separated pipes).
rowData = Browser ("Browser"). FlexApplication ("App"). FlexApplication ("FlexClient"). FlexPanel ("FlexPa nel"). FlexCanvas ('App Home'). FlexPanel ("search results"). FlexDataGrid ("searchResults"). GetROProperty ("selecteditem")
' declare the row data
Reporter.ReportEvent micDone, ' search result line ' & myRow, rowData
"split row data in a table: one element per column.
aRowData = split(rowData,"|")
       
"If the user name column corresponds to what we want to select
If myUser <> "" then
"the strings must match exactly
If trim (aRowData (0)) = myUser can
userFound = TRUE

output for
End If
End If
Next

Tags: Flex

Similar Questions

  • QTP

    Am a new bee in QTP automation script. I have two text files. (Check.txt) is with the description and the error code and another (Ex.txt) with as much detail as well as the code of error and instantaneous fault. I need to compare the two files as description and the fault for the frst file code are available in second or not. Please suggest any code. Can this comparison of the table?

    Hey,.

    I forgot to link the example in my previous post. Here it is-> https://decibel.ni.com/content/docs/DOC-10662

    Suraj - chubby

    AE, OR

  • Recognition of text Windows 7 OS API

    Hello
    I use HP QTP automation tool (formerly Mercury) in my work.  I had to use the GetVisibleText and GetTextLocation methods so that our app and it worked very well under Windows XP and earlier, but in Windows 7, it seems that the recognition of text API is no longer supported.  It is the statement made on the HP support site.
    "Windows 7 and Windows Server 2008 R2 do not support the.
    Mechanism of recognition of test of Windows API.  That is why, when
    install this hotfix, the ' use text recognition
    mechanisms in this order "option in the Options dialog box
    box (Tools > Options > Text Recognition) is set on ' use
    only OCR' and cannot be changed (the option is
    out of service). »

    "Use only OCR" option works well for us and I was wondering if there was a way to reactivate the API method, or if there was something I could do to fix the problem.

    Thank you

    Hi micKeith,

    Thanks for visiting the site of the community of Microsoft Windows 7. The question you have posted is related to MSDN and would be better suited in the MSDN Forum. Please visit the link below to find a community that will provide the support you want.

    http://social.msdn.Microsoft.com/forums/en-us/categories

    Thank you, and in what concerns:

    Samhrutha G S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Compiler error of the library for QuickTest Pro automation Plugin files

    I'm trying the Flex Automation Package in the Flex 3 beta (because you do not have to have a license of data services to try it)

    I installed flex 3 beta and the package automation that accompanies it, but when I try to compile the library files, I get "an internal error has occurred. Please consult the error log"and"Unable to load SWC automation.swc.
    The log file has. MESSAGE Uncaught in the compiler exception"as well as all sorts of other info.
    I am trying to use the project > properties > Flex compiler method.

    A strange thing is that I can not reference the swc libraries locally. Flex Builder is installed here: C:\Program Files\Adobe\Flex Builder 3 and the SWCs are here: C:\Program Files\Adobe\Flex Builder 3\sdks\moxie\frameworks\libs, so I tried it - include-libraries "sdks\moxie\frameworks\libs\automation.swc" "sdks\moxie\frameworks\libs\automation_agent.swc" "sdks\moxie\frameworks\libs\qtp.swc" and I always get the error "can't open ' sdks\moxie\frameworks\libs\... '. ' CFC ' "if I put the whole path, the error continues, but I see (listed at the beginning of my post) internal error messages.

    for what it's worth: I tested with http://examples.adobe.com/flex2/inproduct/lcds/flexstore/flexstore.html, QTP and QTP is grateful for the elements in the flex... So I'm sure that the side test is set up right, I can not just to compile libraries in my own projects to test.

    If anyone has had this problem?... or someone can see where I am screwing things up?

    Well... in case that everyone scrolls on this problem, I finally understand how to make it work.

    I was adding only libraries in the section 'Compiler' project > properties. I found that libraries should also be added in the "Library Path" (go to project > properties > Flex Build Path > library path)

    I can now test my projects with QTP.

    However, I do not understand why I can't relatively reference libraries in the compiler section. I always have to enter the full path to the library.

  • Automator leave all

    I want a script to close all open applications and empty the trash.

    Applications and Finder behave differently.

    Automator "Utilities" options appear the best result, so I'm focused there.

    I am able to stop all applications, but the Finder is stubborn

    I can close the Finder components as a group within Automator, but combining this group with the group "Close all Applications" The Automator scripts fails to close the components Finder (Finder, Get info and inspector window).

    Here's what I have so far.

    Group 1: on his own closing everything except the Finder stuff.

    Utilities > quit all applications

    Quit all applications

    Group 2: this group works well.

    Utilities > run AppleScript

    the term {parameters}

    Tell application "Finder".

    empty the trash

    tell the end

    delay 1

    Back entrance

    end of race

    Group 3: run on its own that works, but not with "quit all Applications.

    Utilities > run AppleScript

    the term {parameters}

    Tell application "Finder".

    activate

    quit smoking

    delay 3

    Tell application "Finder".

    activate

    tell the end

    tell the end

    Back entrance

    end of race

    Group 4: it works on its own for Finder stuff, but does not work with other groups.

    Utilities > run Script Shell

    CAT

    osascript-e 'tell application "Finder" to quit smoking.

    I noticed that sometimes the AppleScript works, and a second later it stops working.

    For now, I found a way to make it work. Automator works great Finder asking you to empty the trash. Then I dropped the trash from Group 2 to group 4, the bottom of the collection of Automator. Now it works... for now...

    Group 1: Utilities > quit all applications

    Quit all applications

    Group 2: Utilities > run AppleScript

    the term {parameters}

    Tell application "Finder".

    activate

    quit smoking

    delay 3

    Tell application "Finder".

    activate

    tell the end

    tell the end

    Back entrance

    end of race

    Group 3: Utilities > run Script Shell

    CAT

    osascript-e 'tell application "Finder" to quit smoking.


    Group 4: Utilities > run AppleScript

    the term {parameters}

    Tell application "Finder".

    empty the trash

    tell the end

    delay 1

    Back entrance

    end of race


    If anyone knows why this command works, an explanation would be appreciated.

  • Node of automation is much more difficult to 'uncheck' than to 'create '.

    I use logical X about 5 months now, and I felt a fairly frustrating relationship with interaction of automation.  When I load automation, 'creation' of a knot of automation is simple... 1. click anywhere along the yellow line creates a node that is precisely where I clicked.  However, "popping/unclicking/destroy" this same node takes anywhere from 3 to 6 clicks to work.  I would love to be able to uncheck these nodes with the same exact ease with which I am able to create.  No relief in this case would be great!  Thank you

    Double click on the node to remove it... as simple as when it was created...   Click to create, double-click Delete.

  • Automation kit home

    I have 5 bulbs of Hue in my house and I've implemented each of them in different rooms and different floors in my house. They work perfectly when I'm home or outdoors. Remote access was not a problem. However, Automation has been a problem. If I have set them to turn on at a certain time during the week, they light up on certain days of the week and not on others.  They light up the morning weekend day. Then they turn on random on the day. I continue to check if they are all the time, when I'm home or out or turn off. The geofencing does not at all.

    Wat can I do? Is - this fixable or just a glitch in software that only Apple can fix, if enough people's complaint.

    I was going to get an Automator garage door, but now I'm not sure.

    Thank you.

    Could be a possible problem/bug with iOS 10.  See this similar thread - Home automation what iOS app does not work.

    Consider joining Apple Support and having connected problem/bug.

  • How to configure automation with Apple TV, Homekit and Hue

    I have what I believe should be a viable home automation installation: a new brand (4th generation, Sept. 16) Apple TV, a hub of hue with the support of Homekit and seven lights attached via the hub.  The lights appear in the home iPad app and can be enabled or disabled here.  I can also do things with Siri on the Apple TV as "turn one room family", and have the appropriate lights.  Thus, it seems that everything works.

    BUT: when I go to the tab "Automation" in the app iPad Home, all I get is a page telling me that I should get an Apple TV to put in place of the automated activities - there is no way to actually DO something.  Am I missing something obvious?  I do this also?  Don't forget that I can control the lights in the House on the iPad, so they certainly know each other...  Thank you!

    Howdy Jim

    Looks like you are unable to configure Automation with your Apple TV. I would check that you have everything set up correctly with the steps described in this article:

    Automate and remotely to your accessories HomeKit

    If everything looks OK, then use the section 'Get help with your home hub' down. Thank you for using communities of Apple Support.

  • Control Automation with Siri on Mac?

    Control Automation with Siri on Mac?

    I am aware that Siri on a Mac of Sierra does not yet support Apple HomeKit.

    As another example illustrating Siri on a Mac is currently quite limited, it is not extensible by developers unlike Siri on iOS.

  • I can't turn off the automation in Touch ID &amp; password settings

    I am on iOS 10, on the iPhone 6.  There is a switch that starts to turn itself on after I turn off manually.

    Under contact ID & password in the settings, there is a section called "allow access when locked. One of the lines that appears under Home Control (associated with HomeKit) there.  This is the switch has been set default to 'On', but I wanted to turn it off - I don't have/want everything home automation.  So I managed to get the cursor to turn off (very hard to get then move/stick for some reason any), and I can't see that it is set to off.  Yet if I go out and to return to this setting, it is auto-réactivé!  Why can not disable this option?  I suspect that it is a software bug.

    Well, I realized the part of it.  This Home Control button will be wobbly and continually be reset until AFTER you try to start the application home again (which will require you to turn on ICloud to House to do).

    Fact that forced initiation of enforcement of the House, then the entry of home automation under the section allow access when locked TouchID & password work really correctly (triggering the switch isn't more wobbly, and it remains the way it was worth).

    But it must clearly be a software bug.  It makes no sense if you want not to activate/use controls Home automation (HomeKit), you really need to turn on then turn off all...

  • Automator

    Hello!

    I love to listen to songs on your tube in free time. If I'm listening to a particular singer and stop the song between the two (for example listen to half) and move on to the next song in the same singer.

    Then close the window.

    The song which has not completed will be work on the background.

    I heard about Automator, can it help me to close the application, and what are the uses of automator?

    Help, please.

    With the help of Mac book Air 10.11.6

    Thank you!

    These tutorials will help you understand Automator:

    How to use Automator in Mac. Tutorial you can never lose you... - YouTube

    Automator: Learn - Mac OS X automation

    Automator for Mac OS x: tutorial and examples - Ray Wenderlich

    Automator can do for you - how - Macworld UK

    Automator workshop Apple - Cal Poly

  • Automation not triggering Homekit

    I'm really loving the new application Homekit in iOS 10. I think it is much better than the app of hue of Philips I used to control my lights at home. However there seems to be something wrong with the function of automation. Or if Miss me just something, in this case, I'd appreciate any help I can get.

    My configuration is:

    • 4th gen Apple TV acting as a hup homekit
    • 1 Philips Hue bridge
    • 4 white tinted Philips bulbs
    • 1 Philips Lightstrip of Hue
    • 1 iPhone and 1 iPad Mini using Homekit app to set scenes

    I have several scenes set up and using automation functionality, I use the following schedule

    • Good morning - All 4 white bulbs and lightstrip on at 05:30
    • Lights - all the lights from 08:45
    • Afternoon - all 4 white bulbs and lightstrip on at 14:30
    • Evening - 3 white and lightstrip bulbs on at 19:00
    • Good morning - all lights except lightstrip off at 22:30

    The problem is that the timers don't always trigger. As far as I know, the afternoon lights, evening and good night controls work fine. But the automation of the morning never seems to trigger automatically. When I try to debug the morning and playing with time and wait and see, it will sometimes trigger, sometimes not. And then I wait again the next morning and it does not fire. I even put a light in 05:00, half an hour before good morning, to see if it helped, but it didn't.

    Does anyone have any suggestions as to why automation in the morning won't turn on?

    Hi Arthur,.

    I have the same problem as you. The triggers appear to respond inconsistently. The worst is the one from the Sun which is added when it is already dark. Apple should add the ability to take some time before the sun goes down. My Apple tv is always on and I also used an ipad as a hub. Have you found a solution since you post your question?

    iPhone with iOS 10 5s

  • Automator and MS Office

    Run 10.11.6 and have MS office 2004 and 2011 on my hard drive.  Automator has kept its Office 2004 "link" automator as seen by the following.   How can I get detached from 2004 and 2011-related Automator.

    Thanks for the help

    Workflows can be found in: / Library/Automator

    (In the ⬆⌘G Finder and enter: / Library/Automator)

    Find the workflow you don't want and delete it (or better, move it to another location)

  • iOS 10 HomeKit Lock Automation

    Why shares of automation for locks HomeKit in iOS 10 require user action to run? for example, a trigger to arrive at a situation pushes a notification to the user asking if you want to run the scene or not to unlock the lock. Kind of defeated the purpose of automation, it seems.

    I think the reason is that a lock is a safety feature and he now wants verification that you are the user.

    I noticed the same thing with my lock not unlock not until I selected ok in the notification Center and then had to connect to the iPhone to work the scene.

    To test this theory, I created another trigger to run a scene when you leave an area. Set this trigger to run a scene that started a fire. It worked without any user interaction.

    Only the trigger to run a scene using a safety device (lock door i.e.:a) would it not work until I logged in.

    Its the same when you wake up your iPhone but do not you connect and go then drag until you reach the command center then swipe on to homekit and select props or scenes. Then you can run scenes not safety and trigger safety accessories not without logging in, but if you try to unlock/lock the lock it will ask you to log in first before execution.

    It is logical, if someone gets your phone they could unlock your door if they had not implemented this feature. Under iOS9, it was different. The trigger to run the scene automatically without user intervention.

    That's what I understood from my tests.

  • The automated help site rejects my extreme SN.

    The automated help site rejects my extreme SN.  Embarrassing.  Has anyone else had this experience

    < re-titled by host >

    do not post your email.

    your question is vague to the point that the answer is to ask the developers of the Web site.

Maybe you are looking for

  • Version 7.4.85.102 do not display my contacts list.

    Hi, my desktop version of Windows automatically update this morning to the 7.4.85.102 version and does not display my contacts. If I connect to my mobile application, they are always there... is there an easy way to get back them on desktop? Or if no

  • My speakers on my computer laptop dv7-6b56nr do not work

    I have a pavilion dv7-6b56nr laptop computer.  When I originally bought the external speaker audio beats DID work correctly.  Him now NOT.  Can you please helpp me?  I would appreciate it a lot, because it was one of the options that the computer off

  • LogMeIn security contacted me to say that security Windows has expired

    I was contacted by Logmein to inform me that my windows security has expired and my computer is threatened by pirates. They want £133 for a subscription of 12 months to renew. Is it necessary or legitimate?

  • Windows live mail sign

    I can't connect to my windows live email. I have reset the password. It leaves me on once and back to does not connect me again. What should I do? This is ridiculous, I do all my stuff at home that I need to enter my email! Help, please

  • WiFi connectivity - the On / Off button on my Dell Vostro 1310 does not

    I can't have the WiFi button to enable the WiFi connectivity. I tried to update the drivers from the Dell site, but I thought that the material is missing. Any suggestions are welcome. Thank you Mervyn