This is a migrated thread and some comments may be shown as answers.

How to capture RadBusyIndicator

5 Answers 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mariko
Top achievements
Rank 1
Mariko asked on 21 Nov 2011, 02:23 AM
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

5 Answers, 1 is accepted

Sort by
0
Accepted
Anthony
Telerik team
answered on 21 Nov 2011, 04:50 PM
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
0
Mariko
Top achievements
Rank 1
answered on 14 Jun 2012, 07:17 AM
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
0
Anthony
Telerik team
answered on 14 Jun 2012, 03:59 PM
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
0
Mariko
Top achievements
Rank 1
answered on 16 Jun 2012, 10:58 AM
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.
0
Anthony
Telerik team
answered on 18 Jun 2012, 04:01 PM
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
Tags
General Discussions
Asked by
Mariko
Top achievements
Rank 1
Answers by
Anthony
Telerik team
Mariko
Top achievements
Rank 1
Share this question
or