Example for UITestControl.WaitForControlCondition Method checking for WpfText.Text value

Hi
I want to wait until the text value of a WpfText is a certain string. How would that be done using UITestControl.WaitForControlCondition Method when a predicate of the test function must be used and I need to reference the WpfText item I want to check
text value of?
Thanks
RB_IA

Hi RB_IA,
AdrianHHH’s idea for that code is right, he meant that he compiled the code but he did not execute it to verify whether the code can run fine. I think that code should run.
For the code you pasted, yes, the UITestControl parameter is not sent to IsStatusDone method through
 parameters within it directly, but the text is defined outside of IsStutusDone method and it is used in the IsStatusDone method.
For your second doubt, Adrian used this API:
WaitForControlCondition(Predicate<UITestControl>) which accepts a bool parameter as the specific condition instead of this API:
WaitForCondition<T>(T, Predicate<T>).
You can reference this code snippet which is used to
wait till the status text of a control is “Succeeded” or “Failed”.in this blog:How
To: Make playback wait for certain event?
// Define the method to evaluate the condition
private
static
bool IsStatusDoneOrError(UITestControl[] controls)
    WinText statusText = controls[0]
as
WinText;
    WinWindow errorDialog = controls[1]
as
WinWindow;
    return statusText.DisplayText ==
"Succeeded" || errorDialog.Exists;
// In test method, wait till the method evaluates to true
UITestControl.WaitForCondition<UITestControl[]>(new
UITestControl[] { statusText, errorDialog }, IsStatusDoneOrError);
I am not a developer, maybe you can try to write your code like below to compare the text value of the wpf control through WpfText.DisplayText property with the expected text value:
class ParameterisedIsStatusDone
    public
ParameterisedIsStatusDone(string t)
expectedtext = t;
    private
string expectedtext;
    public
bool IsStatusDone(UITestControl control)
WpfText ControlTextVale = control
as WpfText;
return
ControlTextVale.DisplayText ==
expectedtext;
ParameterisedIsStatusDone pisd =
new ParameterisedIsStatusDone("Succeeded");
yourControl.WaitForControlCondition(pisd.IsStatusDone);
You also can reference Victor Zn's solution in that thread.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Can anyone give an example for 'PUT' method.

    Can anyone give an example for 'PUT' method ?
    Unable to find an examples for this in the forum
    Thanks
    Chandran

    Hi Chandran,
    Check link below:
    RESRful POST method
    Resource Templates : Strategy for dealing with PUT and POST
    HTH
    Zack

  • TS1398 I have I-phone 4S - Since updating to IOS 6, when at home with Wi-Fi network with my I Phone connection is not responding sometimes – for example if I want to check my G-mail it shows loading but nothing happens and after few minutes it displays "C

    I have I-phone 4S - Since updating to IOS 6, when at home with Wi-Fi network with my I Phone connection is not responding sometimes – for example if I want to check my G-mail it shows loading but nothing happens and after few minutes it displays “Cannot Get Mail” – The mail server “imap.gmail.com is not responding, Verify that you have entered the correct account info in mail settings
    Other times the Wi-Fi connection works fine and it check e-mail or other within few seconds. The connection problems seems to be intermitted
    This issue never happened before with IOS 5 since I bought the new phone in Oct 2011.

    We suffered the imap.gmail.com server problem After an IoS 6 upgrade. The simple solution is to delete the problem account, shut down the iPad, start up again and reenter the account. Everything comes back normally. Good Luck everyone!

  • Need example of delimiter of Scanner method for breaking the values

    Please give me an example of the delimiter method of Scanner class from which I can break up a value for example
    if a user enters from scanner credit card number 12-56789-8990 "-" dash must occur in between. like this format xx-xxxxxx-xxxxx-xx.

    Guess what, there's a discussion going on about the very same topic here.
    You wouldn't happen to have two user accounts for flame-free cross posting, would you?
    db

  • Check average growth (by week for example) for the biggest tables

    Hello friends,
    I have the list of the biggest tables,
    but i need to check average growth (by week for example) for the biggest tables.
    Is it possible somehow ?
    Thanks in advance,

    Hi Jordy,
    Call DB02. Then go to Space -> Segments -> Detailed Analysis -> Select the tablename on the list by double click -> At the bottom table click on History -> Click on Weeks tab -> Find the value under Chg.Size column
    Best regards,
    Orkun Gedik

  • Can anyone give me an example for crm_svy_..._pai?

    Hi all, I have a survey, there are several questions. After I input the answers, I click the 'CHECK' button, I will check the answers. There will be different response to my answers. If the answer is not correct, I will post an error message.
    And I also need to retrieve data from tables to fill the blank.
    I am a beginner for CRM survey, can anyone help me? I create a FM:crm_svy_..._pai, and code in it right? But how can I do it?
    Can anyone give me an example for crm_svy_..._pai to do what I need?
    Many many thanks in advance!! 
    Heare is an example, but I don't its function and how does it work..
      read table lt_all_values into ls_value
                               with key answer_id = 'get_value'.
      if sy-subrc = 0.
        data: lt_values type crm_svy_api_string_t.
        append ls_value-value to lt_values.
        call method ir_survey_values->values_set
          exporting
            i_question_id = 'set_value'
            i_answer_id   = 'set_value'
            it_values     = lt_values.
      endif.

    Hi Yu,
    Could you tell how you solved your issue?
    Regards and tx in advance,
    Mon

  • Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory

    Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory

    Here are a few Links to a helpful Knowledge Base article and a White Paper that should help you out: http://digital.ni.com/public.nsf/allkb/BBCAD1AB08F1B6BB8625741F0082C2AF and http://www.ni.com/white-paper/10435/en/ . The methods for File IO in Real Time are the same for all of the Real Time Targets. The White Paper has best practices for the File IO and goes over how to do it. 
    Alex D
    Applications Engineer
    National Instruments

  • GR based IV to be checked for free text requirement

    Hi All,
    Is there any option that if we create shopping carts for free text requirement,GR based IV should be checked automatically in purchase order created for that shopping cart.Or will this get replicated depending on vendor master we select.Please suggest.
    Thanks.

    Hi,
    As of standard, this setting in PO would come from Vendor master only. But in case you want this to happen for all free text items, then you can use the doc change badi as suggested by Masa. You should use the po change method to pass this indicator.
    Regards,
    Sanjeev

  • Configuration example for QuickVPN on Windows 8.1 and RV016

    I have been using a gateway-to-gateway VPN for years between two RV016 routers. I am adding a few Surface Pro tablets for our salesman and I need to configure VPN clients on one of the routers. Can this be done? Can anyone provide an example of this setup?

    The current release supports the white-space property for a text area and it is possible that the website uses white-space: pre instead of white-space: pre-wrap.
    The former will prevent Firefox from wrapping the text.
    You can check that in the Inspector via the right-click context menu.
    *https://developer.mozilla.org/Tools/Page_Inspector
    See:
    *https://developer.mozilla.org/en-US/Firefox/Releases/36#CSS
    <blockquote>The white-space property is now working on <textarea> HTML elements (bug 82711).</blockquote>
    See also:
    *[[/questions/1050456]] Word wrap problems in 36.0

  • PAPI Web Service (PAPI-WS) Example for Oracle BPM Enterprise Standalone

    Here is the location of a step-by-step explanation on how to use PAPI Web Service (PAPI-WS) to create a work item instance and then run the instance inside an activity in a process running on Oracle BPM Enterprise Standalone.
    http://www.4shared.com/file/128249957/9bd6ef61/PAPI-WS_for_Oracle_BPM_Standalone.html
    Be sure to use the project that is in the zip file for this example.
    To see how to invoke PAPI-WS when using Oracle BPM Studio, go to this thread: PAPI Web Service (PAPI-WS) Example for Oracle BPM Studio
    If you need a step-by-step example of how to use PAPI (the Java API) go to this thread: Creating a new work item instance in a process using PAPI
    Hope this helps,
    Dan

    Dan,
    I tried in both studio and Standalone.
    From Studio :*
    1. The Url for the Webservice is (http://localhost:8585/papiws/PapiWebServiceEndpoint?wsdl). From studio by default port number was 8585.From this studio wsdl URL(http://localhost:8585/papiws/PapiWebServiceEndpoint?wsdl),I did n't see any wsdl text in the browser.
    From Standalone :*
    1. In BPM Admin Center, I have selected *"PAPI Web Services"* check box(Page 5 of your document).
    2. In The BPM Admin Center, I have clicked on *"Start BPM Web Applications"*.
    3. After Stand alone server started *"Launch PAPI WebServices Console"* link was enabled,And I clicked on that link.It opened a browser with URL (http://localhost:8686/papiws/PapiWebService)
    Oracle® BPM PAPI Web Services
    Service Name 'PapiWebService'
    Style: Document Literal Wrapped
    SSO Enabled: false
    WS-Security UsernameToken Profile Authentication Enabled: false
    HTTP Basic Authentication Enabled: true
    Preset Authentication Enabled: false
    MTOM Optimization for attachments Enabled*: false
    Endpoint: http://localhost:8686/papiws/PapiWebServiceEndpoint
    WSDL: http://localhost:8686/papiws/PapiWebServiceEndpoint?wsdl
    I have copied wsdl URL(http://localhost:8686/papiws/PapiWebServiceEndpoint?wsdl) and pasted it into a browser's URL field.I did n't see any wsdl text in the browser,but I see following error
    HTTP Status 404 - Servlet PapiWebServiceServlet is not available
    type Status report
    message Servlet PapiWebServiceServlet is not available
    description The requested resource (Servlet PapiWebServiceServlet is not available) is not available.
    Apache Tomcat/5.5.15
    Edited by: Prabhasankar on Dec 24, 2010 9:10 AM

  • Graphical message mapping examples for JDBC and RFC lookup

    hi, can any body provide me graphical message mapping examples for the "JDBC Lookup" function and "RFC Lookup" function?
    I'm now studying the graphical message mapping and want to try those 2 functions. thank you.
    I expect the examples to be simple enoung, not need to set up much.

    >
    Madhu_1980 wrote:
    > can u check this link:
    >
    > PI 7.0 & 7.1 Mapping - Blogs,Articles,Wiki,Code Samples and Videos Collections https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=79955426  
    >
    > it contains a link : SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups /people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-graphical-support-for-jdbc-and-rfc-lookups
    May be I'm too foolish to follow those links, I got issues of each links.
    What I really want is an example from step0
    Swarup:
    Refer the Lookup document - Easy Lookup in Process Integration 7.1
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20befc9a-aa72-2b10-ae9b-b0988791d457
    The first step is "Create an RFC Enabled Function Module for look up", but where can I create the function module? Should I use ESB, IB? or use transaction 'SE11' ?
    Kulkarni:
    Very good links for RFC lookup with 7.0/3.0
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/70d90a91-3cf4-2a10-d189-bfd37d9c3231&overridelayout=true
    At page6 "PI Development/Configuration", it saies "You are on the design maintenance screen in the Integration Builder.Expand the subnodes for the software component version for which you want to import interfaces".
    What is "design maintenance screen" ? My IB version is: Service Pack:08 Release:NW07_08_REL.
    When I open IB, it display a screen titled with "Configuration: Intergation Builder", I did not find "software component version" node on the left tree.
    Madhu_1980 :
    it contains a link : SAP PI 7.1 Mapping Enhancements Series: Graphical Support for JDBC and RFC Lookups /people/jin.shin/blog/2008/02/15/sap-pi-71-mapping-enhancements-series-graphical-support-for-jdbc-and-rfc-lookups
    The Prerequisites state:
    The JDBC channel to be used for the lookup must be configured and activated in the Integration Directory.
    The definition of the table used for the lookup must already be imported into the ES Repository as an external definition
    But I don't know how to create a JDBC channel and define the table.

  • Can anybody suggest a site which gives me example for context handling ?

    Can anybody suggest a site which gives me example for context handling ? and also some exersices for handson?

    Hi Anil,
    check the follwing links:
    /people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping
    /people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/1f/ea0fb12403844bbb6c4cbc8a00cda9/frameset.htm)
    http://help.sap.com/saphelp_nw70/helpdata/en/bd/ca1105c81c6742a0f8c8d49f8834bf/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/40/7b8e40496f6f1de10000000a1550b0/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/35/fb8c4057d5701de10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/42/f7293b2dbe1a71e10000000a422035/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/79/2835b7848c458bb42cf8de0bcc1ace/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f59730fa-0901-0010-df97-c12f071f7d3b
    /people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping
    Thanks,
    Soumya.

  • Post some good examples for logical database

    Hi all,
    Can any one post some good examples for logical database.
    Regards,
    Lisa

    Hi lisa
    Example of a Logical Database
    Let us consider the logical database TEST_LDB.
    Selections in the Selection Include
       SELECT-OPTIONS: SLIFNR   FOR LFA1-LIFNR,
                       SBUKRS   FOR LFB1-BUKRS,
                       SGJAHR   FOR LFC1-GJAHR,
                       SBELNR   FOR BKPF-BELNR.
    Database Program
    DATABASE PROGRAM OF THE LOGICAL DATABASE TEST_LDB
    PROGRAM SAPDBTEST_LDB DEFINING DATABASE TEST_LDB.
    TABLES: LFA1,
            LFB1,
            LFC1,
            BKPF.
    Initialize selection screen (process before PBO)
    FORM INIT.
    ENDFORM.                                "INIT
    PBO of selection screen (always before selection
    screen
    FORM PBO.
    ENDFORM.                                "PBO
    PAI of selection screen (process always after ENTER)
    FORM PAI USING FNAME MARK.
      CASE FNAME.
        WHEN 'SLIFNR'.
        WHEN 'SBUKRS'.
        WHEN 'SGJAHR'.
        WHEN 'SBELNR'.
      ENDCASE.
    ENDFORM.                                "PAI
    Call event GET LFA1
    FORM PUT_LFA1.
      SELECT * FROM LFA1
    WHERE LIFNR IN SLIFNR.
        PUT LFA1.
      ENDSELECT.
    ENDFORM.                                "PUT_LFA1
    Call event GET LFB1
    FORM PUT_LFB1.
      SELECT * FROM LFB1
    WHERE LIFNR = LFA1-LIFNR
    AND BUKRS IN SBULRS.
        PUT LFB1.
      ENDSELECT.
    ENDFORM.                                "PUT_LFB1
    Call event GET LFC1
    FORM PUT_LFC1.
      SELECT * FROM LFC1
    WHERE LIFNR = LFA1-LIFNR
    AND BUKRS = LFB1-BUKRS
    AND GJAHR IN SGJAHR.
        PUT LFC1.
      ENDSELECT.
    ENDFORM.                                "PUT_LFC1
    Call event GET BKPF
    FORM PUT_BKPF.
      SELECT * FROM BKPF
    WHERE BUKRS = LFB1-BUKRS
    AND BELNR IN SBELNR
    AND GJAHR IN SGJAHR.
        PUT BKPF.
    ENDSELECT.
    ENDFORM.                                "PUT_BKPF 
    The PROGRAM statement has the addition DEFINING DATABASE TEST_LDB. This defines the database program as belonging to the logical database TEST_LDB.
    The nodes of the structure are declared with the TABLES statement which generates the appropriate table work areas. You can also use the NODES statement to define database tables as nodes. If a node of a logical database is not a database table, you must use the NODES statement. The interface work areas are shared by the database program and the user, and so act as an interface for passing data. The term "user" here can mean either an executable program to which the logical database is linked, or the function module LDB_PROCESS.
    The subroutines INIT and PBO initialize the selection screen.
    In the PAI subroutine, you can include an authorization check for the user input on the selection screen. Plausibility or value range checks are also possible. If a check fails, you can write an error dialog. The corresponding field on the selection screen is then made ready for input again.
    The PUT_<node> subroutines read the database tables according to the selection criteria entered by the user and trigger the relevant events in the executable program. This program is intended only to show the essential structure of a logical database. It does not contain any refinements to improve response times. The order in which the subroutines are called is determined by the structure of the logical database.
    regards,
    vijay

  • Daq down counter example for pci-mio-16e-4 wanted

    Hi!
    I am searching for an example vi of a down-counter for
    ttl pulse trains.
    thnx,
    Holger

    Thanks for that, but that was also my first idea. Unfortunaly there is no
    example for an DOWN counter in that directory. they all count up.
    i want to count incoming a ttl-pulse-train and terminate that train(by
    dio-line) when
    counted exactly a certain number of counts. if i check the counts (600Hz)
    each time by software, there seems to be no chance to terminate the train
    at the desired number of pulses and thatfore i will have to use the daq card
    on board counter. and my idea is, that a down counter (which is specified in
    the
    manual) would do it.
    my question therefore is, if anyone has ever used a DOWN counter, because
    i have no idea how to realise it/how to use the daq-included down-counter
    vi, which
    i don´t realy understood
    i am thankful for any reply!
    bes
    t regards,
    holger
    "Nirmal Sharma" schrieb im Newsbeitrag
    news:[email protected]..
    > Hi,
    > there are numerous examples which you can find at this path:
    > C:\Program Files\National Instruments\LabVIEW 6.1\examples\daq\counter
    >
    > or Goto Find examples in Labview launching Panel -> Hardware Input and
    > Output -> DAQ -> Counters
    >
    > If you are using DAQ card, Goto ->Count buffered edges or count Edges.
    >
    > Hope this works. Your feedbacks are welcome.
    >
    > Best Regards,
    > Nirmal Sharma

  • Error from building medrec example for weblogic 10

    Hi,
    I tried to re-build medrec example for weblogic 10 and got error below. What was wrong?
    Any information would be appreciated. Thanks in advance.
    D:\bea\wlserver_10.0\samples\server\medrec\src>ant
    Buildfile: build.xml
    init:
    [echo] #### S T A R T M E D R E C ####
    [echo] Started on December 10 2007 at 0856
    build:
    banner:
    [echo] --------------------------------------------
    [echo] + Building StartBrowser Ear +
    [echo] --------------------------------------------
    build:
    BUILD FAILED
    D:\bea\wlserver_10.0\samples\server\medrec\src\build.xml:26: The following error occurred while exec
    uting this line:
    D:\bea\wlserver_10.0\samples\server\medrec\src\startBrowserEar\build.xml:50: Problem: failed to crea
    te task or type wlcompile
    Cause: The name is undefined.
    Action: Check the spelling.
    Action: Check that any custom tasks/types have been declared.
    Action: Check that any <presetdef>/<macrodef> declarations have taken place.

    open a new command window , run setDomainEnv.cmd and in the same window run ant task.

Maybe you are looking for

  • How to install and run USB device application without NI-VISA environment?

    Hi everyone:       I develop a LabWindows/CVI8.5 application that uses a driver for a USB device created using the NI-VISA 4.6.2. The application is ok when the NI-VISA  environment is installed in PC. But the  NI-VISA 4.6.2 is too big(326M).  Can be

  • Custom style classes

    hi all, Is it possible to create some custom style classes and assign them to styleClass property of some components? And if it possible, where to place those custom classes and how to use them? I've tried without success. Regards, Bassam

  • CL_GUI_HTML_VIEWER

    hi, I'm using a container and class interface CL_GUI_HTML_VIEWER to display documents (Text, Word...) I just want to display them and don't want the user to be able to change the document. I try to do it with method set_enable form class CL_GUI_HTML_

  • Mr11 and f.13

    Hi, I would like to know when to use F.13 and MR11. 1) Example 1, I need to use F.13 whereas example 2(whether due to quantity or amount), i need to use MR11. Correct? 2) Why minor differences in example 2 can happen? even it is due to forex, during

  • Images move when locked

    Hi, I have placed text buttons on a line of text to link within the flash site but after I lock the buttons and the text under a mask, the buttons scatter.  They don't line up with the text that they are intended to line up with. Can anyone give me a