using Telerik.WebAii.Controls.Html;
//using Telerik.WebAii.Controls.Xaml;
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using ArtOfTest.Common.UnitTesting;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.Controls.HtmlControls;
using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;
using ArtOfTest.WebAii.Design;
using ArtOfTest.WebAii.Design.Execution;
using ArtOfTest.WebAii.ObjectModel;
using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.Silverlight.UI;
namespace SFTQuickStarts_NUnit_CS
{
public class Login : BaseWebAiiTest
{
#region [ Dynamic Pages Reference ]
private string loginPage; // path to site
private string emulatorPath; // path to emulator
private string credentials; // path to file with credentials
private string sitePage; // path to file with site page
private string login;
private string pass;
private Pages _pages;
/// <
summary
>
/// Gets the Pages object that has references
/// to all the elements, frames or regions
/// in this project.
/// </
summary
>
public Pages Pages
{
get
{
if (_pages == null)
{
_pages = new Pages(Manager.Current);
}
return _pages;
}
}
#endregion
private Pages _pages;
public Pages Pages
{
get
{
if (_pages == null)
{
_pages = new Pages(Manager.Current);
}
return _pages;
}
}
Error 1 The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?) C:\Program Files\Telerik\WebUI Test Studio 2010.3\Samples\WebAii Framework\QuickStarts_NUnit_CS\Login.cs 32 17 QuickStarts_NUnit_CS
Error 2 The type or namespace name 'Pages' could not be found (are you missing a using directive or an assembly reference?) C:\Program Files\Telerik\WebUI Test Studio 2010.3\Samples\WebAii Framework\QuickStarts_NUnit_CS\Login.cs 39 16 QuickStarts_NUnit_CS
Once the data source is binded to a test, we are able to control the data pointer using the below code.
var row = this.ExecutionContext.ActiveDataRows[1];
var dataString = row["Col1"];
But we are unable to control the data iteration to a particular row, say if we have 5 rows in an excel sheet and using the above code we can make the tool to start from particular row but not control to only particular row.
Impact: Due to this, we are unable to execute a specific row (Only One) out of 10 records available in the test data sheet.We tried to use the below code from forum to bind data sheet dynamically, but not working.
http://blogs.msdn.com/b/mathew_aniyan/archive/2009/04/16/more-on-data-driving-coded-ui-tests.aspx
<DataSource("System.Data.OleDb", @"Provider=Microsoft.Jet.OLEDB.8.0;Data Source=C:\QTP_Scripts\hCue_Refresh_POC\hCue_POC_01\TestProject1\TestProject1\Data\hCue_Refresh.xls;Extended Properties='Excel 8.0;HDR=Yes;IMEX=1'", "Login$", DataAccessMethod.Sequential), TestMethod()> _
Hi,
I am trying to open one Alert dialog and do some operation on it using webAii automation.The scenario is like this:
1.I want to delete a record.So I am selecting one record
2.Clicking on Remove selecetd record button.Onclick of this I am getting one Alert dialog.
3.After clicking on this button the Alert pop up is coming and it is getting closed before the test script goes to next line
4.I am not able to capture the dialog in Dialog monitor
Please help me on this.