Quick start examples: couple of issues

2 posts, 0 answers
  1. Lois
    Lois avatar
    3 posts
    Member since:
    Apr 2010

    Posted 22 Dec 2012 Link to this post


    1) I was trying NUnit example below from (c:\Program Files (x86)\Telerik\Test Studio\Samples\Testing Framework\QuickStarts_NUnit_CS\) and added annotation. Annotation is moving as per code, but mouse not, it stays always on same spot. Any ideas? I have VS 2012 on 64bit win7, tried in IE9 and latest Chrome, project compiled as x86, .NET 4.0.
            [Description("Use HtmlControls drag/drop native support")]
            public void HtmlElementsDragDropSupport()
                // Slow down the execution a bit so we can easily observe WebAii doing the drags<br>
                Manager.Settings.ExecutionDelay = 100;
                Manager.Settings.AnnotateExecution = true;


                // get the window element we are trying to drag.
                HtmlDiv div1 = Find.ById<HtmlDiv>("dd-demo-1");
                HtmlDiv div2 = Find.ById<HtmlDiv>("dd-demo-2");
                HtmlDiv div3 = Find.ById<HtmlDiv>("dd-demo-3");
                //Move Div1 50 pixels to the right and 25 pixels to the top.
                div1.DragTo(50, -25);
                // Move Div2 to where Div3 is.

                // Validate both locations are the same.
                Assert.AreEqual(div2.GetRectangle(), div3.GetRectangle());

    2) json2.js is missing and is referenced in project.

    3) it seems any mouse action is not working:
    // Open the popup using mouse click so it doesn't hang execution.           

    4) VS template examples fails on any call to e.g.: TestDeploymentDir, ActiveBrowser.NavigateTo(Path.Combine(TestContext.TestDeploymentDir, TESTPAGE));

    Any ideas please? It looks like some configuration problem, even I had clean install of all tools.

     Thanks, David
  2. Boyan Boev
    Boyan Boev avatar
    1072 posts

    Posted 27 Dec 2012 Link to this post

    Hi David,

    It seems you are using the 64-bit version of NUnit and this is causing the issue.

    Note that if you have a 64-bit machine, be sure to use the 32-bit version of NUnit (nunit-x86.exe) and not the 64-bit version (nunit.exe).

    Please check out this article in order to get more information about using NUnite.

    Let me know if this helps.

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