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

[Solved] Install Problem

5 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
FAR
Top achievements
Rank 1
FAR asked on 06 Nov 2009, 04:05 PM
Hi i'm trying to use Web AII Testing framework (free edition)

I installed the msi and now i've

_WebAii 2.0 Beta2
_WebAii Testing Framework BETA

in my program file.


I'm using Visual Studio Team System 2008
The demo project of telerik is working fine, but i dont know how to create one...

When i do like in the video, when i create a class library project, or either a "test project"
If i try to add a new item i dont have the "Test" Menu between "Reporting" and "Workflow".

One other point is that i dont understand the HtmlSampleTest example project.
I Execute it fine, but i can find how it goes from the file "RadControlsBaseTest.cs" to the "Calendar" class folder.
And I can't find how to add one test to the existing list.

Am i missing something ?
It doesn't seem that there is telerik WebAii component in my visual studio Interface..

5 Answers, 1 is accepted

Sort by
0
Missing User
answered on 06 Nov 2009, 09:24 PM
Hello Arnaud,

I'm sorry to hear that you are seeing this problem. Which version of VS Team System and Window OS do you have? You could try a reinstall of the framework or try the following:

I attached the VB and C# templates, so if you can please extract them into a WebAii 2.0 folder in the following locations: 

%InstallDir%\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Test

%InstallDir%\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\VisualBasic\Test

If the references are not added autmatically to your project with the templates or the templates are not recognized, then please add the following manually from the framework installation directory insto your test project:

Telerik.WebAii.Controls.Html, Telerik.WebAii.Controls.Xaml, ArtOfTest.Common, ArtOfTest.WebAii

And here is the VSUnit Template in C#:

using System;
using System.Text;
using System.Linq;
using System.Collections.Generic;
  
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.ObjectModel;
using ArtOfTest.WebAii.TestTemplates;
using ArtOfTest.WebAii.TestAttributes;
using ArtOfTest.WebAii.Win32.Dialogs;
using ArtOfTest.WebAii.Controls.HtmlControls;
using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;
  
using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.Silverlight.UI;
using Telerik.WebAii.Controls.Xaml;
using Telerik.WebAii.Controls.Html;
  
using Microsoft.VisualStudio.TestTools.UnitTesting;
  
namespace XamlSampleTests
{
    /// <summary>
    /// Summary description for WebAiiVSUnitTest1
    /// </summary>
    [TestClass]
    public class WebAiiVSUnitTest1 : BaseTest
    {
  
        #region [Setup / TearDown]
  
        private TestContext testContextInstance = null;
        /// <summary>
        ///Gets or sets the VS test context which provides
        ///information about and functionality for the 
        ///current test run.
        ///</summary>
        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }
  
  
        //Use ClassInitialize to run code before running the first test in the class
        [ClassInitialize()]
        public static void MyClassInitialize(TestContext testContext)
        {
        }
  
  
        // Use TestInitialize to run code before running each test 
        [TestInitialize()]
        public void MyTestInitialize()
        {
            #region WebAii Initialization
  
            // Initializes WebAii manager to be used by the test case.
            // If a WebAii configuration section exists, settings will be
            // loaded from it. Otherwise, will create a default settings
            // object with system defaults. 
            //
            // Note: We are passing in a delegate to the VisualStudio
            // testContext.WriteLine() method in addition to the Visual Studio
            // TestLogs directory as our log location. This way any logging 
            // done from WebAii (i.e. Manager.Log.WriteLine()) is 
            // automatically logged to the VisualStudio test log and
            // the WebAii log file is placed in the same location as VS logs.
            //
            // If you do not care about unifying the log, then you can simply
            // initialize the test by calling Initialize() with no parameters; 
            // that will cause the log location to be picked up from the config
            // file if it exists or will use the default system settings (C:\WebAiiLog\)
            // You can also use Initialize(LogLocation) to set a specific log
            // location for this test.
  
            // Pass in 'true' to recycle the browser between test methods
            Initialize(false, this.TestContext.TestLogsDir, new TestContextWriteLine(this.TestContext.WriteLine));
  
            // If you need to override any other settings coming from the 
            // config section you can comment the 'Initialize' line above and instead
            // use the following:
  
            /*
          
            // This will get a new Settings object. If a configuration
            // section exists, then settings from that section will be
            // loaded
                  
            Settings settings = GetSettings(); 
                  
            // Override the settings you want. For example:
            settings.DefaultBrowser = BrowserType.FireFox;
                  
            // Now call Initialize again with your updated settings object
            Initialize(settings, new TestContextWriteLine(this.TestContext.WriteLine));
                  
            */
  
            // Set the current test method. This is needed for WebAii to discover 
            // its custom TestAttributes set on methods and classes.
            // This method should always exist in [TestInitialize()] method.
            SetTestMethod(this, (string)TestContext.Properties["TestName"]);
  
            #endregion
  
            //
            // Place any additional initialization here
            //
  
        }
  
        // Use TestCleanup to run code after each test has run
        [TestCleanup()]
        public void MyTestCleanup()
        {
  
            //
            // Place any additional cleanup here
            //
  
            #region WebAii CleanUp
  
            // Shuts down WebAii manager and closes all browsers currently running
            // after each test. This call is ignored if recycleBrowser is set
            this.CleanUp();
  
            #endregion
        }
  
        //Use ClassCleanup to run code after all tests in a class have run
        [ClassCleanup()]
        public static void MyClassCleanup()
        {
            // This will shut down all browsers if
            // recycleBrowser is turned on. Else
            // will do nothing.
            ShutDown();
        }
  
        #endregion
  
  
        [TestMethod]
        public void SampleWebAiiTest()
        {
        }
  
    }
}

Regards,
Nelson Sin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
FAR
Top achievements
Rank 1
answered on 09 Nov 2009, 02:09 PM
Hi, i have Visual studio Team 2008

I put the folder where you wanted.

I replaced the 31ko Csharp Nunit with yours (123ko)
But i still dont have WebAI Items in Visual studio.

I'm working on asp.net web application project
I can see the references (except the Telerik.WebAii.Controls.Xaml)

But i have no telerik toolbox or menu for tests (like i can have with telerik ajax components).





0
Missing User
answered on 09 Nov 2009, 03:54 PM
Hi again Arnaud,

The testing framework does not have the menu options as the ones you mentioned. You can use the sample projects and the API documentation to write test cases for your application.

If you don't mind adding the references and the test setup/teardown yourself, you can continue testing as is. Or you can maybe try an uninstall then reinstall to see if the templates install correctly. If you do uninstall/reinstall, please delete the templates you added manually.

All the best,
Nelsin
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
FAR
Top achievements
Rank 1
answered on 09 Nov 2009, 04:50 PM
The problem is that the WEB UI testing studio Install is making a error, and dont give me any extra information.
0
Missing User
answered on 09 Nov 2009, 05:16 PM
Hello again Arnaud,

Yes, unfortunately it looks like there was indeed a problem on installation that went unreported. It might be best to uninstall at this point to get back to a clean state. From your description, it seems like the other major components installed correctly, so if we can get the templates installed and the test projects associated with the correct references, then you should be able to continue with your testing.

Regards,
Nelson
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
FAR
Top achievements
Rank 1
Answers by
Missing User
FAR
Top achievements
Rank 1
Share this question
or