One of the activities I will be working on in the lab is a test framework. A few examples of
features are:
* Basic instrument control (E.g. Multimeters, Power supplies, Signal generators, Scopes, etc.);
* Executing preprogrammed test sequences (created by one of the test engineers);
* Register control over multiple data interfaces (JTAG, SPI, etc.)
The exact implementations of the different mentioned features are not important at the moment.
However, important is that I do not know exactly how this program will be expanded in the
future. New interfaces may have to be added, or different functionalities are needed to support the
increasing complexity of our test cases.
a) Please try to explain some important structures or methods to cope with these expansions
in general.
b) Can you think of any methods to make it easier for the test engineers to compose above
mentioned test sequences?
c) What techniques would you use to develop such a program? (Programming language,
framework(s), tools, etc.). Please explain your answer.
Can anyone please help me by providing a short/simple answers for those questions? Thanks in advance!
[TestMethod()]
public
void
CheckAllTabs()
{
//Elements
_HyperlinkButton btnMap = myApp.FindName<HyperlinkButton>(
"btnMap"
);
System.Threading.Thread.Sleep(3500);
btnMap.User.Click();
System.Threading.Thread.Sleep(3500);
TestErrorPage();
System.Threading.Thread.Sleep(3500);
myManager.ActiveBrowser.NavigateTo(
"http://localhost:1314/MSP/default.aspx#lul"
);
System.Threading.Thread.Sleep(3500);
TestErrorPage();
}
//Checks for popup error Message
public
void
TestErrorPage()
{
FindStrategy originalStrategy = myApp.Popups.FirstOrDefault().VisualTree.Find.Strategy;
try
{
myApp.RefreshVisualTrees();
System.Threading.Thread.Sleep(3500);
//null reference exception occurs
myApp.Popups.FirstOrDefault().VisualTree.Find.Strategy = FindStrategy.WhenNotVisibleReturnNull;
Button OKButton = myApp.Popups.FirstOrDefault().VisualTree.Find.ByName<Button>(
"OKButton"
);
Assert.IsNull(OKButton);
}
finally
{
myApp.Popups.FirstOrDefault().VisualTree.Find.Strategy = originalStrategy;
}
}
Hi, I have three virtual machines with windows server 2003. First have Ie6, second IE7 and the last one IE8 installed browser. All of them have Chrome, Safari and FireFox. I configured all browsers (particulary IE) with document from your website. When I run simple test in all browsers, it only works in FF, safari and chrome. In IE (in all version) I have only blank page. I disabled IE ESC in all machines, but it still doesn’t work. In using Webaii framework 2010.3.1307.0 version My test code: //... //settings Manager.LaunchNewBrowser(BrowserType.InternetExplorer, true, ProcessWindowStyle.Maximized); browser = Manager.Browsers[0]; browser.NavigateTo("http://www.google.com";); browser.Close(); ag I changed webaii version from 2010.3.1307 to 2010.3.1421 and now it's working on IE7 and IE8.
ag
Manager.DialogMonitor.AddDialog(
LogonDialog.CreateLogonDialog(ActiveBrowser, <USerNMame>, <passwod>, DialogButton.OK));
Manager.DialogMonitor.Start();
ActiveBrowser.NavigateTo(
"URL");
Any idea how to resolve this issue.
Suggestion appreciated :)
Thanks in advance
Regards,
Mahendra