Telerik Forums
Test Studio Forum
2 answers
116 views
I was thinking, I know it dangerous for me to do.  Is there any Telerik user groups in the chicago area?

thanks in advance,
John
John
Top achievements
Rank 2
 answered on 16 Sep 2011
1 answer
203 views
Hi,

I have a test where I want to verify that a certain document ID is routed correctly on the system I am testing.  However, the document ID is generated as part of an earlier test step & changes each time a new document is created.  So each time I run the test the document ID is different & I don't know what the ID will be until it is generated as part of the previous step.  Is it possible for me to capture the document ID when it is created and use that information it in a later verification step? 

The only way I could think of to test this would be to set up a separate test to create the document ID then another test for the verification and update the verification test each time once I know the document ID that has been generated.

Thanks
Stoich
Telerik team
 answered on 16 Sep 2011
4 answers
132 views

We want to automate some tests against our Silverlight application. Trying out the „Test Studio“, I managed to record a Login action, but the recoded Steps just don’t get replayed. At playback, the IE starts up and then stays at “about:blank“ till the timeout.  In the log file, I saw the following error messages:

 

Overall Result: Fail
------------------------------------------------------------
'14.09.2011 20:23:06' - Starting execution....
'14.09.2011 20:23:06' - Detected a Silverlight Test. Setting EnableSilverlight=True
------------------------------------------------------------
'14.09.2011 20:23:42' - 'Fail' : 1. Click LoginButton
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Unable to find the Silverlight plugin on the following page:'about:blank' using the following expression:'[id 'Exact' silverlightControlHost] AND [tagname 'Exact' div][tagname 'Exact' object]'. Exception: System.TimeoutException: Wait for condition has timed out  
at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo)  
at ArtOfTest.Common.WaitSync.For[T,V](Func`3 func, T target, V custom, Boolean invertCondition, Int32 timeout)  
at ArtOfTest.WebAii.Synchronization.Wait.ForCondition(Func`3 condition, Boolean invertCondition, Object custom, Int32 timeout)  
at ArtOfTest.WebAii.Synchronization.Wait.ForExists(Int32 timeout, Boolean refreshElement)  
at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.GetHost(IAutomationHost topBrowser, ElementDescriptor element, Int32 hostFindTimeout, Int32 appConnectTimeout, Boolean cachedSLAppOnly, String& error)

 

I read some other threads of the similar problem; the suggested solution would be to, turn-off the IE’s “Protected Mode“ using the checkbox on the Security tab of IE. Unfortunately, my PC is running with Windows XP and IE8., there is no such checkbox for IE8 on Windows XP.  Protected Mode is only available on Windows Vista because it is based on security features new to Windows Vista.   

I can’t upgrade my PC to Vista. So I wonder if there is other way to overcome this problem. Any idea would be appreciated.  

 

Cody
Telerik team
 answered on 15 Sep 2011
8 answers
140 views
Is there a setting I need to change to get my data-driven test to stop iterating after the last data element?
John
Top achievements
Rank 2
 answered on 15 Sep 2011
2 answers
80 views
Does Telerik support windows 8?

thanks,
John
John
Top achievements
Rank 2
 answered on 15 Sep 2011
1 answer
143 views
I have downloaded the chm API reference file and when I click on items to the left, I see the following error to the right: 

Navigation to the webpage was canceled


Any ideas?

thanks,
John
Plamen
Telerik team
 answered on 15 Sep 2011
7 answers
181 views
I am creating a test that does the following:
  • open a list of report links
  • foreach report, click a button or a link to launch a new browser to run the report
  • maximize the new window
  • capture the browser in an image

My method is:

[CodedStep(@"Click 'ContentPlaceHolder1RgPRgRBtnRunButton'")]
public void getClientReports_CodedStep1()
{
    List<HtmlTableRow> advancedReports = new List<HtmlTableRow>();
    List<HtmlTableRow> classicReports = new List<HtmlTableRow>();
    ReadOnlyCollection<HtmlInputButton> expandButtons = Pages.TargetPage.Find.AllByAttributes<HtmlInputButton>("class=rgExpand");
    foreach (HtmlInputButton expandBtn in expandButtons)
    {
        expandBtn.Click(false);
    }
    ReadOnlyCollection<HtmlTableRow> reportRow = Pages.VergeSolutionsLLC86.Find.AllByXPath<HtmlTableRow>("//table[@class='rgMasterTable']/tbody/tr[contains(@id,'ContentPlaceHolder1')]");
    system = Pages.TargetPage.Find.ById("ctl00_ucHeader_lblSystem").InnerText;
    org = Pages.TargetPage.Find.ById("ctl00_ucHeader_l_hco").InnerText;
    foreach(HtmlTableRow row in reportRow)
    {
        ReadOnlyCollection<HtmlTableCell> cells = row.Find.AllByTagName<HtmlTableCell>("td");
        if (cells.Count > 5)
        {
            if (cells[5].InnerText == "Advanced")
            {
                reportName = cells[1].InnerText;
                HtmlInputButton btnRun = cells[6].Find.AllByTagName<HtmlInputButton>("input")[0];
                btnRun.Click(false);
                System.Threading.Thread.Sleep(5000);
                Manager.ActiveBrowser.Window.Maximize();
                Manager.Log.CaptureBrowser(Manager.ActiveBrowser, system + "." + org + "." + reportName);
                Manager.Browsers[1].Close();
            }
            if (cells[5].InnerText == "Classic")
            {
                reportName = cells[1].InnerText;
                HtmlAnchor btnRun = cells[6].Find.ByContent<HtmlAnchor>("Run");
                btnRun.Click();
                System.Threading.Thread.Sleep(5000);
                Manager.ActiveBrowser.Window.Maximize();
                Manager.Log.CaptureBrowser(Manager.ActiveBrowser, system + "." + org + "." + reportName);
                Manager.Browsers[1].Close();
            }
        }
    }
}

I want to capture all report outputs as images. This runs fine the first time through. The second time this runs, I get the error: "A generic error occurred in GDI+". The folder to which I am writing has write permissions (it wrote the file the first time through).

Any help with this error would be most helpful.

Thanks.

Cody
Telerik team
 answered on 14 Sep 2011
2 answers
92 views
Hello,

I have recorded a Test Case of Login and wants to record the other one which will work after login to the system. In the other Test Case, again I have to record the login Test Case and then record the other one.
Is there any procedure that I can only record the other one and I can embed the login Test case in others test cases.

Thanks,
John
Top achievements
Rank 2
 answered on 14 Sep 2011
9 answers
267 views

 

Hi,

I have an scenario to set cell value on a data grid by using with OnKeypress event. It is working and I can able to set value to the first selected row cell, but I couldn’t able to set the value to next selected row cell. It is always trying to set the value to first selected row cell instead of set value to next selected row cell.


I have noticed the first row cell is still selected even though I have select the next row cell. My issue, I don’t know how to clear onkeypress event from first row cell after set value.


Please help me in resolving this problem. I am looking for a C# code example.


Waiting for your reply.

Thanks

Ganga S

Cody
Telerik team
 answered on 14 Sep 2011
3 answers
124 views
Hi,

Let's say I have 2 test steps, step1 and step2. step1 is bound to data1 and step2 is bound to data2 and each data source has 3 rows.

Is it possible to use its own data file for each step and run in that way:
step1-data1 row1
step2-data2 row1
step1-data1 row2
step2-data2 row2
step1-data1 row3
step2-data2 row3

I have known how to use inherit parent data feature but I have too many columns for data that's why i don't want to merge them. Without using inherit parent data feature now it works like:
step1-data1 row1
step1-data1 row2
step1-data1 row3
step2-data2 row1
step1-data1 row1
step1-data1 row2
step1-data1 row3
step2-data2 row2
step1-data1 row1
step1-data1 row2
step1-data1 row3
step2-data2 row3

Thanks a lot

Ercan
Stoich
Telerik team
 answered on 14 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?