Feature request, or is this doable

4 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 17 Dec 2012 Link to this post

    Can I set the browser playback width (in order to test visibility of responsive items?)
  2. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 17 Dec 2012 Link to this post

    Hello Steve,

    Yes it is doable via this single code:

    ActiveBrowser.Window.Move(new System.Drawing.Rectangle(0,0,800,600), true);
     
    This will redraw the browser to 0,0 position with 800px width 600px height.

    Note that you will need to add a assembly reference System.Drawing.

    Hope this helps. All the best,
    Boyan Boev
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 17 Dec 2012 Link to this post

    Anytime I add a coded step the entire test is no longer runnable

    Test.Functional\Medportal\Atomic\GadgetBarOpenClose.tstest.cs: Line 52: (CS0246) The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?)
    Test.Functional\Medportal\Atomic\GadgetBarOpenClose.tstest.cs: Line 59: (CS0246) The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?)
    Test.Functional\Medportal\Auth\Login.tstest.cs: Line 52: (CS0246) The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?)
    Test.Functional\Medportal\Auth\Login.tstest.cs: Line 59: (CS0246) The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?)


  4. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 18 Dec 2012 Link to this post

    Hi Steve,

    The most common reason for these errors is a namespace mismatch. Probably the name of the namespace in GadgetBarOpenClose.tstest.cs and Login.tstest.cs is different then in the project settings and this is causing the problem. 

    Please open these files and rename the namespace such as it is in the project settings (see the attached screenshot).

    Note that to view the entire class in the Test Studio you should convert one of the step in code and click on "View Class" button. Please see the second attached screen shot. 

    Let me know if this helps.

    Regards,

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