This is Syed Aslam Basha here from Relationship experience division (RXD) team.
CUITe is coded UI test enhanced framework available at http://cuite.codeplex.com/ useful for test UI automation. The advantages of CUITe is reduced code, better readability and maintainability. Let me show how to use CUITe.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Microsoft.VisualStudio.TestTools.UITesting; using CUITe.Controls.HtmlControls;
namespace $ProjectNameSpace.$ObjectRepository { public class LoginWindow : CUITe_BrowserWindow { public new string sWindowTitle = "Server Login"; public CUITe_HtmlEdit txtusername = new CUITe_HtmlEdit("Id=username"); public CUITe_HtmlPassword txtpassword = new CUITe_HtmlPassword("Id=password"); public CUITe_HtmlInputButton btnLogIn = new CUITe_HtmlInputButton("Value=Log In");
} }
LoginWindow.txtusername.SetText(username); LoginWindow.txtpassword .SetText(password); LoginWindow.btnLogIn .Click();
LoginWindow.txtusername.SetText(username);
LoginWindow.txtpassword .SetText(password);
LoginWindow.btnLogIn .Click();
Note:
1. Object recorder now only works for html/web.
2. Object recorder only records the object/control definitions, not actions.
For more information refer the site http://cuite.codeplex.com/
- Syed Aslam Basha (syedab@microsoft.com)
Relationship experience division (RXD) Team
Test Lead
Please leave a comment if the blog post has helped you.
The output of the CUITe project is a myproject.dll. How can I use that dll in another application to initiate a test that has been set up in my CUITe proeject?
Hi Jeremy,
Its like object repository you should create test methods to calling these objects/methods in sequence of your test case.
Syed