TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
jithin das
NA
4
5.3k
Getting nullreference exception
Aug 19 2011 3:53 AM
can any body help me plzz....whe i try to run the above code...getting an error...object reference not set to an instance of an object.....
platform...microsoft visual studio 2005...i am trying to run this class library in nunit..
this is desktop GUI application...
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Forms;
using NUnit.Framework;
using QAliber.Engine;
using QAliber.Engine.Controls;
using QAliber.Engine.Controls.UIA;
using QAliber.Engine.Controls.Web;
using QAliber.Engine.Controls.WPF;
using QAliber.Logger;
using QAliber.TestModel;
using QAliber.RemotingModel;
using System.IO;
namespace ClassLibrary15
{
public class Class1
{
[Test]
#region Temporary Recording Code
public static void RecordedTest1()
{
UIAEditBox uiaeditbox0 =Desktop.UIA[@"Business Suite", @"TfrmMain", @"UIAWindow"][@"Login", @"tLogin", @"UIAWindow"][@"UIAPane", 1][@"UIAEditBox", 1] as UIAEditBox;
uiaeditbox0.Click(MouseButtons.Left, new Point(78, 12));
uiaeditbox0.Write("demo{D1}{D2}{D3}");
UIAButton login2 = Desktop.UIA[@"Business Suite", @"TfrmMain", @"UIAWindow"][@"Login", @"tLogin", @"UIAWindow"][@"UIAPane", 0][@"Login", @"TBitBtn", @"UIAButton"] as UIAButton;
// login2 = new login2();
login2.Click(MouseButtons.Left, new Point(42, 18));
UIAPane uiapane3 = Desktop.UIA[@"Business Suite - Back Office - Sample Demo and Training Company", @"TfrmMain", @"UIAWindow"][@"UIAPane", 0][@"UIAPane", 0] as UIAPane;
// uiapane3 = new uiapane3();
uiapane3.Click(MouseButtons.Left, new Point(27, 30));
UIAButton close4 = Desktop.UIA[@"Business Suite - Back Office - Sample Demo and Training Company", @"TfrmMain", @"UIAWindow"][@"Business Suite - Back Office - Sample Demo and Training Company", @"", @"TitleBar"][@"Close", @"", @"Close"] as UIAButton;
// close4 = new close4();
close4.Click(MouseButtons.Left, new Point(12, 4));
UIAButton yes5 = Desktop.UIA[@"Confirm", @"TMessageForm", @"UIAWindow"][@"Yes", @"TButton", @"UIAButton"] as UIAButton;
// yes5 = new yes5();
yes5.Click(MouseButtons.Left, new Point(65, 6));
}
#endregion
}
}
Reply
Answers (
1
)
How can i use custom forms authentication or forms authentication with 3 fields in my web application
Getting nullreference exception