Selenium Forum: Functional And Regression Testing Tool.
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Search
Display results as :
Advanced Search
Latest topics
AEM Training | Free Online DemoWed Apr 21, 2021 5:45 pmazharuddin
c# PageFactory - issue initializing elementsFri Nov 01, 2019 8:40 pmthegoatboy
Selenium making automatic connection to random urlsMon Jul 08, 2019 12:58 pmrepairtechsolutions1
How can we design the custom framework in Selenium RCMon Jun 24, 2019 2:26 pmrandybonnettes
What are the new features in Selenium 3.0Tue Jun 18, 2019 5:37 pmpappyvicky
What are you using Selenium for? Fri Apr 12, 2019 3:52 amzhl
LIMITATIONS OF SELENIUMWed Apr 10, 2019 11:23 amswara
Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search

Go down
avatar
Syed
Posts : 2
Join date : 2011-09-26

Selenium RC with NUnit throwing error - File does not exist. File 'c:\Projects\WebDriver\trunk\src\Selenium.Core\HttpCommandProcessor.cs' Empty Selenium RC with NUnit throwing error - File does not exist. File 'c:ProjectsWebDrivertrunksrcSelenium.CoreHttpCommandProcessor.cs'

Mon Sep 26, 2011 11:29 pm
Hi All,

When I run my below code on selenium RC it throws error message at the line marked wiht comment as "// this is problematic line". The error says Selenium.SeleniumException : ERROR: There was an unexpected Alert! [An error occurred while updating the entries. See the inner exception for details. Column 'IncrementType' cannot be null]

and in the code frame of NUnit I see,
Cannot open file: 'c:\Projects\WebDriver\trunk\src\Selenium.Core\HttpCommandProcessor.cs'
Error: 'File does not exist. 'c:\Projects\WebDriver\trunk\src\Selenium.Core\HttpCommandProcessor.cs'

I am not sure what this is. The interesting part is
Op.Click("id=debugLink");
Op.Click("css=input.resetAuction");
have run well before it reached
Op.Click("css=input.offerNext");
plus these lines work well when a direct recording of selenium RC is
played back!!


public class MultipleBrowsersExpt
{
private ISelenium Op, B1, B2, B3;
private StringBuilder verificationErrors;

[SetUp]
public void SetupTest()
{
Op = new DefaultSelenium("localhost", 4444, "*chrome", url);
B1 = new DefaultSelenium("localhost", 4444, "*chrome", url);
B2 = new DefaultSelenium("localhost", 4444, "*chrome", url);
B3 = new DefaultSelenium("localhost", 4444, "*chrome", url);
Op.Start();
Op.SetSpeed("500");
B1.Start();
B1.SetSpeed("500");
B2.Start();
B2.SetSpeed("500");
B3.Start();
B3.SetSpeed("500");
verificationErrors = new StringBuilder();
}

[TearDown]
public void TeardownTest()
{
try
{
http://Op.Stop();
http://B1.Stop();
http://B2.Stop();
http://B3.Stop();

}
catch (Exception)
{
// Ignore errors if unable to close the browser
}
Assert.AreEqual("", verificationErrors.ToString());
}

[Test]
public void TheBiddinRecordingTest()
{

bool OpLogin = LiveApp_login(Op, "Operator", "Op", "password");
bool B1Login = LiveApp_login(B1, "Bidder", "B1", "password");
bool B2Login = LiveApp_login(B2, "Bidder", "B2", "password");
bool B3Login = LiveApp_login(B3, "Bidder", "B3", "password");

ReArrange_AUT_windows(Op, B1, B2, B3);

Excel.Application xlApp;
Excel.Workbook xlBook;
Excel.Worksheet xlSheet;
xlApp = new Excel.Application();
xlBook = xlApp.Workbooks.Open("C:\\Test Data\\MyDataSheet.xls", 0, false, 5, "", "", true, Excel.XlPlatform.xlWindows, "\t", true, false, 0, true, true, false);
xlSheet = (Excel.Worksheet)xlBook.Sheets["Sheet1"];

int ColNdx = 4;
MessageBox.Show("value of (Convert.ToString(xlSheet.Cells[3,ColNdx]) now is " + Convert.ToString(xlSheet.Cells[3,ColNdx].Value));
while (Convert.ToString(xlSheet.Cells[3, ColNdx].Value) != "")
{
MessageBox.Show("value of (Convert.ToString(xlSheet.Cells[3,ColNdx]) now is " + Convert.ToString(xlSheet.Cells[3, ColNdx].Value));
PerformOnScreenAction(Convert.ToString(xlSheet.Cells[3, ColNdx].Value));
//PerformOnScreenValidations(ColNdx);
ColNdx = ColNdx + 1;
}

GC.Collect();
GC.WaitForPendingFinalizers();
xlBook.Save();
Marshal.FinalReleaseComObject(xlSheet);
xlBook.Close(Type.Missing, Type.Missing, Type.Missing);
Marshal.FinalReleaseComObject(xlBook);
xlApp.Quit();
Marshal.FinalReleaseComObject(xlApp);

}

private void PerformOnScreenAction(String ActionName)
{
switch (ActionName)
{
case "Op_Reset":
Op.Click("id=debugLink");
Op.Click("css=input.resetAuction");
http://Op.Refresh();
http://Op.WaitForPageToLoad("30000");
break;

case "Op_Restart":

Op.Click("css=input.offerNext"); //This is the problematic line
http://Op.Refresh();
http://Op.WaitForPageToLoad("30000");
break;

case "Op_Offer":
Op.Click("css=button.button.offer");
http://Op.Refresh();
http://Op.WaitForPageToLoad("30000");
break;

case "B1_Place":
B1.Click("id=BdButton");
break;

case "B2_Place":
B2.Click("id=BdButton");
break;

case "B3_Place":
B3.Click("id=BdButton");
break;

default:
break;
}
}


}
Back to top
Permissions in this forum:
You cannot reply to topics in this forum