How to capture RadBusyIndicator

6 posts, 1 answers
  1. Mariko
    Mariko avatar
    39 posts
    Member since:
    Jun 2011

    Posted 20 Nov 2011 Link to this post

    Hi,

    How can i automate/capture the RadBusyIndicator? I want to populate the textbox correctly so I set next action to Wait.ForNoMotion but it doesn't works.

    Also, is it possible to extract the URL the page being tested and add a web/wcf service to the Test Project?

    Thanks
  2. Answer
    Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 21 Nov 2011 Link to this post

    Hi Mariko,

    1. I tested this against a Telerik Busy Indicator Demo Site and got it to work correctly without code:

    1. Locate the RadBusyIndicator in the DOM (see attached screen shot).
    2. Right click it, choose Show Element Menu, then Build Verification.
    3. Click the Property button.
    4. Select the IsBusy property and set it to False.
    5. You can optionally right click the Verify step to Change Role > Set as Wait.

    I tested the IsBusyIndicationVisible property and it worked as well. In my test, I manually unchecked the IsBusy box on the left-hand Configurator menu during execution to satisfy the verification's condition so it could pass. 

    2. Yes, you can extract the URL of the page being tested in code with ActiveBrowser.Url. Here's an example that writes that into the log:

    Log.WriteLine(ActiveBrowser.Url.ToString());
     
    You could also set it as an Extracted Value to be used later in the test by a Data Bound Navigate to step:

    string url = ActiveBrowser.Url.ToString();
    SetExtractedValue("extractedURL", url);

    3. Test Studio does not currently supported testing Web/WCF Services. This is being considered for a potential future implementation, however.

    Greetings,
    Anthony
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Mariko
    Mariko avatar
    39 posts
    Member since:
    Jun 2011

    Posted 14 Jun 2012 Link to this post

    Hi Anthony,

    How can I use the Wait.For as a coded step? When I change the custom code it generate returns an error

    The result of the expression is always 'false' since a value of type 'bool' is never equal to 'null' of type '<null>'

    Thanks
  4. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 14 Jun 2012 Link to this post

    Hello Mariko,

    You've discovered a bug for which I filed a report. You can find the PITS Issue here: Public URL. I've updated your Telerik points accordingly.  

    If I discover a work-around in the meantime, I'll update this thread. For now, please continue to use the standard, non-coded step.

    Kind regards,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  5. Mariko
    Mariko avatar
    39 posts
    Member since:
    Jun 2011

    Posted 16 Jun 2012 Link to this post

    Hi Anthony,

    I encountered the bug because I have a code error. I didn't notice that there were other errors because the rad busy indicator error took a lot of lines.

    Thanks.
  6. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 18 Jun 2012 Link to this post

    Hello Mariko,

    Let us know if you require assistance with your other code error.

    Greetings,
    Anthony
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top