Hi Team,
I'm working on creating a Telerik Testing Framework for HTML/Silverlight applications using Nunit following are the issues I encountered
1. To achieve Page Object Model I had seperated TestSuites,Pagemethods,SafeActions and except Locators I'm not able to store the locators outside the testsuite file I'm getting the errors while doing this
as
ERROR: An object reference is required for the non-static field, method, or property 'ArtOfTest.WebAii.Core.Find.ById(string)' D:\Telerik\TTF_FRAMEWORK\TelerikFramework2\Pages\PageConstants\GmailConstants.cs 148 31 TelerikFramework2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ArtOfTest.WebAii.Controls.HtmlControls;
using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.ObjectModel;
using ArtOfTest.WebAii.TestAttributes;
using ArtOfTest.WebAii.TestTemplates;
using ArtOfTest.WebAii.Win32.Dialogs;
using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.Silverlight.UI;
using NUnit.Framework;
using Core = NUnit.Core;
using TelerikFramework2;
namespace TelerikFramework2.Pages.PageConstants
{
public class Gmail : BaseTest
{
public static Element ID = Find.ById("Email");
}
}
I understand "Find" class doesnot have any object reference since I'm not storing it in TestSuite ,I'm storing it in a class .cs file. Please provide me some suggestions so that I need to store all the locators seperatley and able access them from another class.Please Respond me ASAP ,Thanks in advance
Regard,
Uday.
I'm working on creating a Telerik Testing Framework for HTML/Silverlight applications using Nunit following are the issues I encountered
1. To achieve Page Object Model I had seperated TestSuites,Pagemethods,SafeActions and except Locators I'm not able to store the locators outside the testsuite file I'm getting the errors while doing this
as
ERROR: An object reference is required for the non-static field, method, or property 'ArtOfTest.WebAii.Core.Find.ById(string)' D:\Telerik\TTF_FRAMEWORK\TelerikFramework2\Pages\PageConstants\GmailConstants.cs 148 31 TelerikFramework2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ArtOfTest.WebAii.Controls.HtmlControls;
using ArtOfTest.WebAii.Controls.HtmlControls.HtmlAsserts;
using ArtOfTest.WebAii.Core;
using ArtOfTest.WebAii.ObjectModel;
using ArtOfTest.WebAii.TestAttributes;
using ArtOfTest.WebAii.TestTemplates;
using ArtOfTest.WebAii.Win32.Dialogs;
using ArtOfTest.WebAii.Silverlight;
using ArtOfTest.WebAii.Silverlight.UI;
using NUnit.Framework;
using Core = NUnit.Core;
using TelerikFramework2;
namespace TelerikFramework2.Pages.PageConstants
{
public class Gmail : BaseTest
{
public static Element ID = Find.ById("Email");
}
}
I understand "Find" class doesnot have any object reference since I'm not storing it in TestSuite ,I'm storing it in a class .cs file. Please provide me some suggestions so that I need to store all the locators seperatley and able access them from another class.Please Respond me ASAP ,Thanks in advance
Regard,
Uday.