fat-develop Mailing List for FAT Acceptance Testing Framework (Page 4)
Brought to you by:
exortech
You can subscribe to this list here.
| 2004 |
Jan
(33) |
Feb
(46) |
Mar
(10) |
Apr
|
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(9) |
Oct
|
Nov
|
Dec
|
|
From: <dmc...@pr...> - 2004-01-28 22:31:07
|
Update of /cvsroot/fat/FAT/test/FAT.Test In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13246/test/FAT.Test Modified Files: FAT.Test.csproj Log Message: Can now add HtmlDetails to TestLogger in FATFixtures. Details are dislayed in test results as clickable thumbnails in FAT.Web Index: FAT.Test.csproj =================================================================== RCS file: /cvsroot/fat/FAT/test/FAT.Test/FAT.Test.csproj,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** FAT.Test.csproj 15 Jan 2004 00:56:58 -0000 1.3 --- FAT.Test.csproj 28 Jan 2004 22:14:49 -0000 1.4 *************** *** 79,87 **** /> <Reference - Name = "FAT.Web" - Project = "{05A57278-4887-4A22-AF38-0FBCFD5941F3}" - Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" - /> - <Reference Name = "System.Web" AssemblyName = "System.Web" --- 79,82 ---- *************** *** 103,106 **** --- 98,111 ---- Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" /> + <Reference + Name = "System.Drawing" + AssemblyName = "System.Drawing" + HintPath = "..\..\..\..\WINDOWS\Microsoft.NET\Framework\v1.0.3705\System.Drawing.dll" + /> + <Reference + Name = "FAT.Web" + Project = "{05A57278-4887-4A22-AF38-0FBCFD5941F3}" + Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}" + /> </References> </Build> *************** *** 197,200 **** --- 202,220 ---- BuildAction = "Compile" /> + <File + RelPath = "Web\HtmlDetails\HtmlDetailsEnhancerTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Web\HtmlDetails\HtmlDetailsRequestHelperTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File + RelPath = "Web\HtmlDetails\HtmlDetailsStoreTest.cs" + SubType = "Code" + BuildAction = "Compile" + /> </Include> </Files> |
|
From: <dmc...@pr...> - 2004-01-28 22:31:02
|
Update of /cvsroot/fat/FAT/test/FAT.Acceptance In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13246/test/FAT.Acceptance Modified Files: WebFixture.cs Log Message: Can now add HtmlDetails to TestLogger in FATFixtures. Details are dislayed in test results as clickable thumbnails in FAT.Web Index: WebFixture.cs =================================================================== RCS file: /cvsroot/fat/FAT/test/FAT.Acceptance/WebFixture.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** WebFixture.cs 15 Jan 2004 00:56:58 -0000 1.2 --- WebFixture.cs 28 Jan 2004 22:14:48 -0000 1.3 *************** *** 15,18 **** --- 15,19 ---- browser.RequestPage(url); TestLogger.Log("Successfully retrieved: " + browser.Page.Url); + TestLogger.HtmlDetailsLog = new HtmlDetailsLog(browser.Page.Url, browser.Page.Html); } *************** *** 26,29 **** --- 27,31 ---- try { browser.Page.ClickButton(control); } catch (Exception ex) { Console.WriteLine(ex.ToString()); throw; } + TestLogger.HtmlDetailsLog = new HtmlDetailsLog(browser.Page.Url, browser.Page.Html); } |
|
From: <dmc...@pr...> - 2004-01-28 22:06:40
|
Update of /cvsroot/fat/FAT/test/FAT.Test/Web/HtmlDetails In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10385/HtmlDetails Log Message: Directory /cvsroot/fat/FAT/test/FAT.Test/Web/HtmlDetails added to the repository |
|
From: <dmc...@pr...> - 2004-01-28 22:05:52
|
Update of /cvsroot/fat/FAT/src/FAT.Web/HtmlDetails In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10115/HtmlDetails Log Message: Directory /cvsroot/fat/FAT/src/FAT.Web/HtmlDetails added to the repository |
|
From: Darren M. <DMc...@th...> - 2004-01-20 20:24:01
|
hi owen , Thanks for the detailed response. 2) I've installed vs.net 2002, it's useful to have and seems to work fine alongside vs.net 2003. I haven't had any problems in vs.net 2002 or 2003 with dots in project names. Everything worked fine. I've been doing some work on WebTest today. We had some problems with submit not submitting fields that are not explicitly set by the test - We had to call Page.RepopulateFormTags() right after each post in the test. We modified Page to call this on construction and fixed some other bugs in code called by Page.RepopulateFormTags(). I'll try and get the fixes checked in. Is the strategy to get rid of PageParser.cs entirely (is it possible?), and use the dom in mshtml instead. BTW - I'm working on getting some clickable thumbnails of web test results. Darren. Owen Rogers <OR...@th...> Sent by: fat...@li... 15/01/2004 02:51 To: Darren McGrath <DMc...@th...> cc: fat...@li... Subject: [Fat-develop] Re: FAT Acceptance Tests hi darren, sorry about taking ages to get back to you on this one. i've been trying not to focus on anything else while i was getting my paper ready for XP2004. now that that's out of the way, i'm intending to do a lot more work on FAT. in answer to your questions: 1) sure. i noticed you added it but have it commented out. i think that it is important to maintain backwards compatibility until it no longer makes sense to do it. at least we want to know when we've broken it. 2) yah, i know, i know. i'm still using vs.net 2002. i just haven't bothered to upgrade. it does make things a bit of a hassle when collaborating with people on open source projects that use a different version. what we're doing on ccnet is that we have two copies of the solution and project files checked in. one for each version of vs.net. it's a bit of a hassle as we need to keep the 2 in sync, but it works well enough. 3) thanks for that. i hadn't tried running the webtest tests yet. it's good that it's in the build script now though. my intention is to rewrite this stuff test first -- probably making more use of the mshtml stuff -- now that we've sorted most of the issues with it. i need to apply the new changes that i made to webtest before leaving egg. i'll do that tomorrow. > Am I right in thinking that if we keep going down this route then FAT.Acceptance.exe will become a dll, exactly right, i've already updated it. > FAT.Console.dll will become an exe (FAT.exe!) this is only like this because vs.net doesn't allow you to reference an exe. as we need to reference FAT.exe from the FAT.Test project, i needed to keep it as a dll to keep vs.net happy. the nant file builds it as a dll though. > and AllTests.cs, FATWebTests.cs and maybe some other stuff will disappear? yup. i'll do that tomorrow too. btw, did you have any problems getting the FAT.Web project to work? i was showing it to some people here that have vs.net 2003 installed and it was complaining about the period in the project name. we removed the period and it worked, but it's a bit irksome. maybe we should rename it. any suggestions for an alternate name without the dot? cheers, o. ps. i've added syncmail, so email updates will be send out on the fat-develop list every time someone checks in changes. this means that we know when things are changing. pps. i should bug mike roberts and try to get it up on ccnetlive. --- R. Owen Rogers ThoughtWorks Ltd ThoughtWorks - Deliver with passion! |---------+----------------------------> | | Darren McGrath | | | | | | 03/01/2004 13:33 | |---------+----------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: fat...@li... | | cc: Owen Rogers/Canada/ThoughtWorks@ThoughtWorks | | Subject: FAT Acceptance Tests | >--------------------------------------------------------------------------------------------------------------------------------------------------| Hi Owen, Hope all's going well in India! I've taken an initial look at FAT, done a few commits and now have a few questions ..... [1] As we're aiming at FAT being compatible with .NET Framework 1.0, would it make sense to add <property name="nant.settings.currentframework" value="net-1.0"/> to FAT.build to enforce this more explicitly? [2] I'm using VS.NET V7. The project and solution files that are checked in look like they are produced by VS.NET V6. Are you looking at moving to V7? [3] I've got all the unit tests passing in FAT.Test and FAT.WebTest (fixed the RequestCookies test by changing url to the FATWeb url from http://localpublic/pages/start.aspx which didn't exist on my machine). I've added the invocation of the FAT.WebTest.dll tests to FAT.build script. It looked like you were moving the FAT.Acceptance projects to use FAT to acceptance test itself - makes sense! I got the "Web/Run Simple Passing Test.fat" and "Console/Run Simple Passing Test.fat" acceptance tests running and passing. Am I right in thinking that if we keep going down this route then FAT.Acceptance.exe will become a dll, FAT.Console.dll will become an exe (FAT.exe!) and AllTests.cs, FATWebTests.cs and maybe some other stuff will disappear? Cheers, Darren ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Fat-develop mailing list Fat...@li... https://lists.sourceforge.net/lists/listinfo/fat-develop |
|
From: <exo...@us...> - 2004-01-20 06:01:31
|
Update of /cvsroot/fat/FAT/test/FAT.Test/Web
In directory sc8-pr-cvs1:/tmp/cvs-serv9446/test/FAT.Test/Web
Modified Files:
CreateTestModelTest.cs
Log Message:
parser is now configurable. configuration is used as factory for parser
Index: CreateTestModelTest.cs
===================================================================
RCS file: /cvsroot/fat/FAT/test/FAT.Test/Web/CreateTestModelTest.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** CreateTestModelTest.cs 14 Dec 2003 21:30:28 -0000 1.2
--- CreateTestModelTest.cs 20 Jan 2004 06:01:20 -0000 1.3
***************
*** 11,14 ****
--- 11,26 ----
public class CreateTestModelTest : Assertion
{
+ private Mock mockParser;
+ private Mock mockRunner;
+ private DefaultPageModel model;
+
+ [SetUp]
+ protected void SetUp()
+ {
+ mockParser = new DynamicMock(typeof(ITestParser));
+ mockRunner = new DynamicMock(typeof(ITestRunner));
+ model = new DefaultPageModel((ITestParser)mockParser.MockInstance, (ITestRunner)mockRunner.MockInstance);
+ }
+
[Test]
public void RunTest()
***************
*** 17,27 ****
ITestResult testResult = CreateTestResults();
- Mock mockParser = new DynamicMock(typeof(ITestParser));
mockParser.ExpectAndReturn("Parse", test, "testName", "testContent", "setup", "teardown");
-
- Mock mockRunner = new DynamicMock(typeof(ITestRunner));
mockRunner.ExpectAndReturn("Run", testResult, test);
- DefaultPageModel model = new DefaultPageModel((ITestParser)mockParser.MockInstance, (ITestRunner)mockRunner.MockInstance);
model.Run("testName", "fixture", "testContent", "setup", "teardown");
--- 29,35 ----
***************
*** 33,37 ****
public void CreateResultsTable()
{
- DefaultPageModel model = new DefaultPageModel();
Table table = model.CreateResultsTable(CreateTestResults());
--- 41,44 ----
***************
*** 65,67 ****
// }
}
! }
--- 72,74 ----
// }
}
! }
\ No newline at end of file
|
|
From: <exo...@us...> - 2004-01-20 06:01:28
|
Update of /cvsroot/fat/FAT/test/FAT.Acceptance
In directory sc8-pr-cvs1:/tmp/cvs-serv9446/test/FAT.Acceptance
Modified Files:
AcceptanceTestRunner.cs
Log Message:
parser is now configurable. configuration is used as factory for parser
Index: AcceptanceTestRunner.cs
===================================================================
RCS file: /cvsroot/fat/FAT/test/FAT.Acceptance/AcceptanceTestRunner.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** AcceptanceTestRunner.cs 12 Dec 2003 23:28:50 -0000 1.1
--- AcceptanceTestRunner.cs 20 Jan 2004 06:01:20 -0000 1.2
***************
*** 35,38 ****
--- 35,44 ----
get { return new Assembly[] { Assembly.GetExecutingAssembly() }; }
}
+
+ public ITestParser TestParser { get { return null; } }
+
+ public ITestFileScanner TestFileScanner { get { return null; } }
+
+ public ITestRunner TestRunner { get { return null; } }
}
}
|
|
From: <exo...@us...> - 2004-01-20 06:01:28
|
Update of /cvsroot/fat/FAT/test/FAT.Test/Console In directory sc8-pr-cvs1:/tmp/cvs-serv9446/test/FAT.Test/Console Modified Files: ConsoleMainTest.cs Log Message: parser is now configurable. configuration is used as factory for parser Index: ConsoleMainTest.cs =================================================================== RCS file: /cvsroot/fat/FAT/test/FAT.Test/Console/ConsoleMainTest.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ConsoleMainTest.cs 14 Dec 2003 21:30:28 -0000 1.2 --- ConsoleMainTest.cs 20 Jan 2004 06:01:20 -0000 1.3 *************** *** 35,39 **** ConsoleMain console = new ConsoleMain((ITestFileScanner)mockScanner.MockInstance, null, null); ! console.Run(); mockScanner.Verify(); --- 35,39 ---- ConsoleMain console = new ConsoleMain((ITestFileScanner)mockScanner.MockInstance, null, null); ! console.Run(null); mockScanner.Verify(); *************** *** 67,71 **** // what to do with results? ConsoleMain console = new ConsoleMain((ITestFileScanner)mockScanner.MockInstance, (ITestParser)mockParser.MockInstance, (ITestRunner)mockRunner.MockInstance); ! console.Run(); // because of test results --- 67,71 ---- // what to do with results? ConsoleMain console = new ConsoleMain((ITestFileScanner)mockScanner.MockInstance, (ITestParser)mockParser.MockInstance, (ITestRunner)mockRunner.MockInstance); ! console.Run(null); // because of test results |
|
From: <exo...@us...> - 2004-01-20 06:01:28
|
Update of /cvsroot/fat/FAT/test/FAT.Test/Core
In directory sc8-pr-cvs1:/tmp/cvs-serv9446/test/FAT.Test/Core
Modified Files:
ConfigurationTest.cs
Log Message:
parser is now configurable. configuration is used as factory for parser
Index: ConfigurationTest.cs
===================================================================
RCS file: /cvsroot/fat/FAT/test/FAT.Test/Core/ConfigurationTest.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** ConfigurationTest.cs 15 Jan 2004 00:56:58 -0000 1.2
--- ConfigurationTest.cs 20 Jan 2004 06:01:20 -0000 1.3
***************
*** 61,69 ****
public void CreateTestFileScanner()
{
! string xml = String.Format(@"<FAT><TestPaths><TestPath>foo</TestPath></TestPaths></FAT>");
ITestFileScanner scanner = new FATConfiguration(LoadXml(xml)).TestFileScanner;
AssertNotNull(scanner);
}
}
}
--- 61,103 ----
public void CreateTestFileScanner()
{
! string xml = String.Format(@"<FAT><TestPaths><TestPath>foo</TestPath></TestPaths></FAT>");
ITestFileScanner scanner = new FATConfiguration(LoadXml(xml)).TestFileScanner;
AssertNotNull(scanner);
}
+
+ [Test]
+ public void CreateParserFromConfigurationXml()
+ {
+ string xml = String.Format(@"<FAT><Parser>FAT.Test.Core.ConfigurationTest+MockParser,FAT.Test</Parser></FAT>");
+ ITestParser parser = new FATConfiguration(LoadXml(xml)).TestParser;
+ AssertEquals(typeof(MockParser), parser.GetType());
+ }
+
+ [Test]
+ public void CreateDefaultParser()
+ {
+ ITestParser parser = new FATConfiguration(LoadXml("<FAT/>")).TestParser;
+ AssertEquals(typeof(TestParser), parser.GetType());
+ }
+
+ [Test]
+ public void CreateDefaultRunner()
+ {
+ ITestRunner runner = new FATConfiguration(LoadXml("<FAT/>")).TestRunner;
+ AssertEquals(typeof(TestRunner), runner.GetType());
+ }
+
+ class MockParser : ITestParser
+ {
+ public FAT.Core.ITest Parse(string testName, string testContent, string setup, string teardown)
+ {
+ return null;
+ }
+ public FAT.Core.ITest Parse(string testName, string testContent)
+ {
+ return null;
+ }
+ }
}
}
|
|
From: <exo...@us...> - 2004-01-20 06:01:26
|
Update of /cvsroot/fat/FAT/src/FAT.Core/Configuration
In directory sc8-pr-cvs1:/tmp/cvs-serv9446/src/FAT.Core/Configuration
Modified Files:
ConfigurationFactory.cs FATConfiguration.cs IConfiguration.cs
Log Message:
parser is now configurable. configuration is used as factory for parser
Index: ConfigurationFactory.cs
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Core/Configuration/ConfigurationFactory.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ConfigurationFactory.cs 12 Dec 2003 23:28:50 -0000 1.1
--- ConfigurationFactory.cs 20 Jan 2004 06:01:19 -0000 1.2
***************
*** 6,9 ****
--- 6,10 ----
public class ConfigurationFactory
{
+ /// TODO: cache configuration?
public static IConfiguration Create()
{
Index: FATConfiguration.cs
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Core/Configuration/FATConfiguration.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** FATConfiguration.cs 15 Jan 2004 00:56:58 -0000 1.2
--- FATConfiguration.cs 20 Jan 2004 06:01:19 -0000 1.3
***************
*** 11,14 ****
--- 11,15 ----
private Assembly[] assemblies;
private string[] paths;
+ private Type parserType;
public FATConfiguration(XmlNode root)
***************
*** 16,19 ****
--- 17,21 ----
assemblies = ParseAssemblies(root);
paths = ParsePaths(root);
+ parserType = ParseParserType(root);
}
***************
*** 39,42 ****
--- 41,45 ----
}
+ // use relative paths for http context?
private string[] ParsePaths(XmlNode root)
{
***************
*** 50,57 ****
--- 53,85 ----
}
+ private Type ParseParserType(XmlNode root)
+ {
+ XmlNode parserTypeNode = root.SelectSingleNode("Parser");
+ if (parserTypeNode != null)
+ {
+ Type parserType = Type.GetType(parserTypeNode.InnerText);
+ if (parserType != null)
+ {
+ return parserType;
+ }
+ Log.Warning("Unable to load parser using type string from configuration file: " + parserTypeNode.InnerText);
+ }
+ return typeof(TestParser);
+ }
+
public ITestFileScanner TestFileScanner
{
get { return new TestFileScanner(paths); }
}
+
+ public ITestParser TestParser
+ {
+ get { return (ITestParser)Activator.CreateInstance(parserType); }
+ }
+
+ public ITestRunner TestRunner
+ {
+ get { return new TestRunner(new TestFixtureLoader(this)); }
+ }
}
}
Index: IConfiguration.cs
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Core/Configuration/IConfiguration.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** IConfiguration.cs 12 Dec 2003 23:28:50 -0000 1.1
--- IConfiguration.cs 20 Jan 2004 06:01:19 -0000 1.2
***************
*** 7,10 ****
--- 7,13 ----
{
Assembly[] Assemblies { get; }
+ ITestFileScanner TestFileScanner { get; }
+ ITestParser TestParser { get; }
+ ITestRunner TestRunner { get; }
}
}
|
|
From: <exo...@us...> - 2004-01-20 06:01:26
|
Update of /cvsroot/fat/FAT/src/FAT.Console
In directory sc8-pr-cvs1:/tmp/cvs-serv9446/src/FAT.Console
Modified Files:
ConsoleMain.cs
Log Message:
parser is now configurable. configuration is used as factory for parser
Index: ConsoleMain.cs
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Console/ConsoleMain.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** ConsoleMain.cs 15 Jan 2004 00:56:57 -0000 1.3
--- ConsoleMain.cs 20 Jan 2004 06:01:19 -0000 1.4
***************
*** 1,3 ****
--- 1,4 ----
using FAT.Core;
+ using FAT.Core.Configuration;
using System;
using System.Diagnostics;
***************
*** 17,21 ****
private ITestRunner runner;
! public ConsoleMain(string[] args) : this(new TestFileScanner(args), new TestParser(), new TestRunnerFactory().Create()) { }
public ConsoleMain(ITestFileScanner scanner, ITestParser parser, ITestRunner runner)
--- 18,22 ----
private ITestRunner runner;
! public ConsoleMain(IConfiguration configuration) : this(configuration.TestFileScanner, configuration.TestParser, configuration.TestRunner) { }
public ConsoleMain(ITestFileScanner scanner, ITestParser parser, ITestRunner runner)
***************
*** 26,32 ****
}
! public void Run()
{
! ITestFile[] testfiles = scanner.Scan();
if (testfiles.Length == 0)
{
--- 27,33 ----
}
! public void Run(string[] args)
{
! ITestFile[] testfiles = scanner.Scan(args);
if (testfiles.Length == 0)
{
***************
*** 64,68 ****
try
{
! new ConsoleMain(args).Run();
}
catch (Exception ex)
--- 65,69 ----
try
{
! new ConsoleMain(ConfigurationFactory.Create()).Run(args);
}
catch (Exception ex)
|
|
From: <exo...@us...> - 2004-01-20 06:01:26
|
Update of /cvsroot/fat/FAT/src/FAT.Web
In directory sc8-pr-cvs1:/tmp/cvs-serv9446/src/FAT.Web
Modified Files:
DefaultPageModel.cs TestTreeView.cs Web.config
Log Message:
parser is now configurable. configuration is used as factory for parser
Index: DefaultPageModel.cs
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Web/DefaultPageModel.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** DefaultPageModel.cs 14 Dec 2003 21:30:28 -0000 1.2
--- DefaultPageModel.cs 20 Jan 2004 06:01:20 -0000 1.3
***************
*** 1,3 ****
--- 1,4 ----
using FAT.Core;
+ using FAT.Core.Configuration;
using System;
using System.Text;
***************
*** 11,15 ****
private ITestRunner runner;
! public DefaultPageModel() : this(new TestParser(), IsolatedTestRunnerFactory.Create()) { }
public DefaultPageModel(ITestParser parser, ITestRunner runner)
--- 12,18 ----
private ITestRunner runner;
! public DefaultPageModel() : this(ConfigurationFactory.Create()) { }
!
! public DefaultPageModel(IConfiguration configuration) : this(configuration.TestParser, IsolatedTestRunnerFactory.Create()) { }
public DefaultPageModel(ITestParser parser, ITestRunner runner)
***************
*** 21,25 ****
public ITestResult Run(string testName, string fixture, string testContent, string setup, string teardown)
{
- // TODO: move to config
ITest test = parser.Parse(testName, testContent, setup, teardown);
test.Fixture = fixture;
--- 24,27 ----
Index: TestTreeView.cs
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Web/TestTreeView.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TestTreeView.cs 15 Jan 2004 00:56:58 -0000 1.1
--- TestTreeView.cs 20 Jan 2004 06:01:20 -0000 1.2
***************
*** 15,20 ****
private HtmlAnchor[] testLinks;
! // TODO: load scanner from config
! public TestTreeView() : this(new TestFileScanner(new string[] { @"D:\dev\FAT\sample" } )) { }
public TestTreeView(ITestFileScanner scanner)
--- 15,19 ----
private HtmlAnchor[] testLinks;
! public TestTreeView() : this(ConfigurationFactory.Create().TestFileScanner) { }
public TestTreeView(ITestFileScanner scanner)
***************
*** 42,47 ****
get
{
! // EnsureChildControls();
! CreateChildControls();
return testLinks;
}
--- 41,45 ----
get
{
! EnsureChildControls();
return testLinks;
}
Index: Web.config
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Web/Web.config,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** Web.config 15 Jan 2004 00:56:58 -0000 1.2
--- Web.config 20 Jan 2004 06:01:20 -0000 1.3
***************
*** 10,13 ****
--- 10,16 ----
<Assembly>D:\dev\FAT\build\FAT.Acceptance.dll</Assembly>
</Assemblies>
+ <TestPaths>
+ <TestPath>D:\dev\FAT\sample\Calculator</TestPath>
+ </TestPaths>
</FAT>
|
|
From: <exo...@us...> - 2004-01-20 06:01:26
|
Update of /cvsroot/fat/FAT/src/FAT.Core
In directory sc8-pr-cvs1:/tmp/cvs-serv9446/src/FAT.Core
Modified Files:
ITestFileScanner.cs TestFileScanner.cs
Log Message:
parser is now configurable. configuration is used as factory for parser
Index: ITestFileScanner.cs
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Core/ITestFileScanner.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ITestFileScanner.cs 14 Dec 2003 21:30:28 -0000 1.1
--- ITestFileScanner.cs 20 Jan 2004 06:01:19 -0000 1.2
***************
*** 6,9 ****
--- 6,10 ----
{
ITestFile[] Scan();
+ ITestFile[] Scan(string[] args);
}
}
Index: TestFileScanner.cs
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Core/TestFileScanner.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TestFileScanner.cs 14 Dec 2003 21:30:28 -0000 1.1
--- TestFileScanner.cs 20 Jan 2004 06:01:20 -0000 1.2
***************
*** 10,14 ****
public const string TESTFILE_EXTENSION = ".fat";
private string[] inputPaths;
- private ArrayList testFiles;
public TestFileScanner(string[] paths)
--- 10,13 ----
***************
*** 19,38 ****
public ITestFile[] Scan()
{
! string[] paths = (inputPaths.Length == 0) ? new string[] { Directory.GetCurrentDirectory() } : inputPaths;
! testFiles = new ArrayList();
! Scan(paths);
return (ITestFile[])testFiles.ToArray(typeof(ITestFile));
}
! private void Scan(string[] paths)
{
foreach (string path in paths)
{
! Scan(path);
}
}
! private void Scan(string path)
{
if (File.Exists(path))
--- 18,45 ----
public ITestFile[] Scan()
{
! return Scan(inputPaths);
! }
! public ITestFile[] Scan(string[] paths)
! {
! if (paths.Length == 0)
! {
! paths = new string[] { Directory.GetCurrentDirectory() };
! }
!
! ArrayList testFiles = new ArrayList();
! Scan(paths, testFiles);
return (ITestFile[])testFiles.ToArray(typeof(ITestFile));
}
! private void Scan(string[] paths, IList testFiles)
{
foreach (string path in paths)
{
! Scan(path, testFiles);
}
}
! private void Scan(string path, IList testFiles)
{
if (File.Exists(path))
***************
*** 45,49 ****
else if (Directory.Exists(path))
{
! Scan(Directory.GetFileSystemEntries(path));
}
else
--- 52,56 ----
else if (Directory.Exists(path))
{
! Scan(Directory.GetFileSystemEntries(path), testFiles);
}
else
|
|
From: Owen R. <OR...@th...> - 2004-01-15 02:51:12
|
hi darren, sorry about taking ages to get back to you on this one. i've been trying not to focus on anything else while i was getting my paper ready for XP2004. now that that's out of the way, i'm intending to do a lot more work on FAT. in answer to your questions: 1) sure. i noticed you added it but have it commented out. i think that it is important to maintain backwards compatibility until it no longer makes sense to do it. at least we want to know when we've broken it. 2) yah, i know, i know. i'm still using vs.net 2002. i just haven't bothered to upgrade. it does make things a bit of a hassle when collaborating with people on open source projects that use a different version. what we're doing on ccnet is that we have two copies of the solution and project files checked in. one for each version of vs.net. it's a bit of a hassle as we need to keep the 2 in sync, but it works well enough. 3) thanks for that. i hadn't tried running the webtest tests yet. it's good that it's in the build script now though. my intention is to rewrite this stuff test first -- probably making more use of the mshtml stuff -- now that we've sorted most of the issues with it. i need to apply the new changes that i made to webtest before leaving egg. i'll do that tomorrow. > Am I right in thinking that if we keep going down this route then FAT.Acceptance.exe will become a dll, exactly right, i've already updated it. > FAT.Console.dll will become an exe (FAT.exe!) this is only like this because vs.net doesn't allow you to reference an exe. as we need to reference FAT.exe from the FAT.Test project, i needed to keep it as a dll to keep vs.net happy. the nant file builds it as a dll though. > and AllTests.cs, FATWebTests.cs and maybe some other stuff will disappear? yup. i'll do that tomorrow too. btw, did you have any problems getting the FAT.Web project to work? i was showing it to some people here that have vs.net 2003 installed and it was complaining about the period in the project name. we removed the period and it worked, but it's a bit irksome. maybe we should rename it. any suggestions for an alternate name without the dot? cheers, o. ps. i've added syncmail, so email updates will be send out on the fat-develop list every time someone checks in changes. this means that we know when things are changing. pps. i should bug mike roberts and try to get it up on ccnetlive. --- R. Owen Rogers ThoughtWorks Ltd ThoughtWorks - Deliver with passion! |---------+----------------------------> | | Darren McGrath | | | | | | 03/01/2004 13:33 | |---------+----------------------------> >--------------------------------------------------------------------------------------------------------------------------------------------------| | | | To: fat...@li... | | cc: Owen Rogers/Canada/ThoughtWorks@ThoughtWorks | | Subject: FAT Acceptance Tests | >--------------------------------------------------------------------------------------------------------------------------------------------------| Hi Owen, Hope all's going well in India! I've taken an initial look at FAT, done a few commits and now have a few questions ..... [1] As we're aiming at FAT being compatible with .NET Framework 1.0, would it make sense to add <property name="nant.settings.currentframework" value="net-1.0"/> to FAT.build to enforce this more explicitly? [2] I'm using VS.NET V7. The project and solution files that are checked in look like they are produced by VS.NET V6. Are you looking at moving to V7? [3] I've got all the unit tests passing in FAT.Test and FAT.WebTest (fixed the RequestCookies test by changing url to the FATWeb url from http://localpublic/pages/start.aspx which didn't exist on my machine). I've added the invocation of the FAT.WebTest.dll tests to FAT.build script. It looked like you were moving the FAT.Acceptance projects to use FAT to acceptance test itself - makes sense! I got the "Web/Run Simple Passing Test.fat" and "Console/Run Simple Passing Test.fat" acceptance tests running and passing. Am I right in thinking that if we keep going down this route then FAT.Acceptance.exe will become a dll, FAT.Console.dll will become an exe (FAT.exe!) and AllTests.cs, FATWebTests.cs and maybe some other stuff will disappear? Cheers, Darren |
|
From: <exo...@us...> - 2004-01-15 00:57:02
|
Update of /cvsroot/fat/FAT/test/FAT.Test
In directory sc8-pr-cvs1:/tmp/cvs-serv19380/test/FAT.Test
Modified Files:
FAT.Test.csproj
Log Message:
commits to fat will now be sent out on developer mailing list
Index: FAT.Test.csproj
===================================================================
RCS file: /cvsroot/fat/FAT/test/FAT.Test/FAT.Test.csproj,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** FAT.Test.csproj 14 Dec 2003 21:30:28 -0000 1.2
--- FAT.Test.csproj 15 Jan 2004 00:56:58 -0000 1.3
***************
*** 123,126 ****
--- 123,131 ----
/>
<File
+ RelPath = "Console\ArgumentParserTest.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath = "Console\ConsoleMainTest.cs"
SubType = "Code"
***************
*** 187,190 ****
--- 192,200 ----
BuildAction = "Compile"
/>
+ <File
+ RelPath = "Web\TestTreeViewTest.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
</Include>
</Files>
|
|
From: <exo...@us...> - 2004-01-15 00:57:02
|
Update of /cvsroot/fat/FAT/test/FAT.Test/Console
In directory sc8-pr-cvs1:/tmp/cvs-serv19380/test/FAT.Test/Console
Added Files:
ArgumentParserTest.cs
Log Message:
commits to fat will now be sent out on developer mailing list
--- NEW FILE: ArgumentParserTest.cs ---
using FAT.Console;
using NUnit.Framework;
using System;
namespace FAT.Test.Console
{
[TestFixture]
public class ArgumentParserTest : Assertion
{
[Test]
public void ParseSpecifiedArguments()
{
string[] args = new string[] { "foo.fat", "/config:fat.config", "bar.fat" };
ArgumentParser parser = new ArgumentParser(args);
AssertEquals(2, parser.Tests.Length);
AssertEquals("foo.fat", parser.Tests[0]);
AssertEquals("bar.fat", parser.Tests[1]);
AssertEquals("fat.config", parser.Config);
}
[Test]
public void ParseDefaultArguments()
{
string[] args = new string[] { };
ArgumentParser parser = new ArgumentParser(args);
AssertEquals(1, parser.Tests.Length);
AssertEquals(System.IO.Directory.GetCurrentDirectory(), parser.Tests[0]);
AssertEquals(AppDomain.CurrentDomain.SetupInformation.ConfigurationFile, parser.Config);
}
}
}
|
|
From: <exo...@us...> - 2004-01-15 00:57:02
|
Update of /cvsroot/fat/FAT/test/FAT.Test/Web
In directory sc8-pr-cvs1:/tmp/cvs-serv19380/test/FAT.Test/Web
Added Files:
TestTreeViewTest.cs
Log Message:
commits to fat will now be sent out on developer mailing list
--- NEW FILE: TestTreeViewTest.cs ---
using FAT.Core;
using FAT.Web;
using NMock;
using NUnit.Framework;
using System;
using System.Web.UI.HtmlControls;
namespace FAT.Test.Web
{
[TestFixture]
public class TestTreeViewTest : Assertion
{
[Test]
public void CreateControl()
{
ITestFile[] testFiles = new ITestFile[] { new TestFile("foo.fat"), new TestFile("bar.fat") };
Mock mockTestFileScanner = new DynamicMock(typeof(ITestFileScanner));
mockTestFileScanner.ExpectAndReturn("Scan", testFiles);
TestTreeView view = new TestTreeView((ITestFileScanner) mockTestFileScanner.MockInstance);
HtmlAnchor[] actualLinks = view.TestLinks;
AssertEquals(2, actualLinks.Length);
AssertEquals("?foo.fat", actualLinks[0].HRef);
AssertEquals("?bar.fat", actualLinks[1].HRef);
AssertEquals("foo", actualLinks[0].InnerText);
AssertEquals("bar", actualLinks[1].InnerText);
mockTestFileScanner.Verify();
}
// todo: how to organise in treeview?
// how to structure and make presentation
}
}
|
|
From: <exo...@us...> - 2004-01-15 00:57:02
|
Update of /cvsroot/fat/FAT/test/FAT.Test/Core
In directory sc8-pr-cvs1:/tmp/cvs-serv19380/test/FAT.Test/Core
Modified Files:
ConfigurationTest.cs
Log Message:
commits to fat will now be sent out on developer mailing list
Index: ConfigurationTest.cs
===================================================================
RCS file: /cvsroot/fat/FAT/test/FAT.Test/Core/ConfigurationTest.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ConfigurationTest.cs 14 Dec 2003 21:30:28 -0000 1.1
--- ConfigurationTest.cs 15 Jan 2004 00:56:58 -0000 1.2
***************
*** 34,38 ****
}
! [Test, ExpectedException(typeof(ConfigurationException))]
public void MissingAssembliesElement()
{
--- 34,38 ----
}
! [Test, ExpectedException(typeof(ConfigurationException)), Ignore("is this necessary to verify?")]
public void MissingAssembliesElement()
{
***************
*** 57,60 ****
--- 57,69 ----
ConfigurationFactory.Create();
}
+
+ [Test]
+ public void CreateTestFileScanner()
+ {
+ string xml = String.Format(@"<FAT><TestPaths><TestPath>foo</TestPath></TestPaths></FAT>");
+ ITestFileScanner scanner = new FATConfiguration(LoadXml(xml)).TestFileScanner;
+
+ AssertNotNull(scanner);
+ }
}
}
|
|
From: <exo...@us...> - 2004-01-15 00:57:02
|
Update of /cvsroot/fat/FAT/test/FAT.Acceptance/Test/Console In directory sc8-pr-cvs1:/tmp/cvs-serv19380/test/FAT.Acceptance/Test/Console Modified Files: Run Simple Passing Test.fat Log Message: commits to fat will now be sent out on developer mailing list Index: Run Simple Passing Test.fat =================================================================== RCS file: /cvsroot/fat/FAT/test/FAT.Acceptance/Test/Console/Run Simple Passing Test.fat,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** Run Simple Passing Test.fat 6 Jan 2004 21:36:31 -0000 1.3 --- Run Simple Passing Test.fat 15 Jan 2004 00:56:58 -0000 1.4 *************** *** 1,4 **** @Fixture: ConsoleFixture ! Run: "C:\dev\FAT\build\FAT.exe" "Simple Passing Test.fat" AssertOutputContains: "Test: Simple Passing Test - Test Passed" \ No newline at end of file --- 1,4 ---- @Fixture: ConsoleFixture ! Run: "..\..\..\build\FAT.exe" "Simple Passing Test.fat" AssertOutputContains: "Test: Simple Passing Test - Test Passed" \ No newline at end of file |
|
From: <exo...@us...> - 2004-01-15 00:57:01
|
Update of /cvsroot/fat/FAT/test/FAT.Acceptance
In directory sc8-pr-cvs1:/tmp/cvs-serv19380/test/FAT.Acceptance
Modified Files:
FAT.Acceptance.csproj WebFixture.cs
Log Message:
commits to fat will now be sent out on developer mailing list
Index: FAT.Acceptance.csproj
===================================================================
RCS file: /cvsroot/fat/FAT/test/FAT.Acceptance/FAT.Acceptance.csproj,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** FAT.Acceptance.csproj 6 Jan 2004 21:36:31 -0000 1.4
--- FAT.Acceptance.csproj 15 Jan 2004 00:56:58 -0000 1.5
***************
*** 16,20 ****
DefaultTargetSchema = "IE50"
DelaySign = "false"
! OutputType = "Exe"
RootNamespace = "FAT.Acceptance"
StartupObject = "FAT.Acceptance.AllTests"
--- 16,20 ----
DefaultTargetSchema = "IE50"
DelaySign = "false"
! OutputType = "Library"
RootNamespace = "FAT.Acceptance"
StartupObject = "FAT.Acceptance.AllTests"
***************
*** 32,36 ****
IncrementalBuild = "true"
Optimize = "false"
! OutputPath = "..\..\build\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
--- 32,36 ----
IncrementalBuild = "true"
Optimize = "false"
! OutputPath = "bin\Debug\"
RegisterForComInterop = "false"
RemoveIntegerChecks = "false"
Index: WebFixture.cs
===================================================================
RCS file: /cvsroot/fat/FAT/test/FAT.Acceptance/WebFixture.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** WebFixture.cs 12 Dec 2003 23:28:50 -0000 1.1
--- WebFixture.cs 15 Jan 2004 00:56:58 -0000 1.2
***************
*** 24,28 ****
public void ClickButton(string control)
{
! browser.Page.ClickButton(control);
}
--- 24,29 ----
public void ClickButton(string control)
{
! try { browser.Page.ClickButton(control); }
! catch (Exception ex) { Console.WriteLine(ex.ToString()); throw; }
}
|
|
From: <exo...@us...> - 2004-01-15 00:57:01
|
Update of /cvsroot/fat/FAT/src/FAT.Core/Configuration
In directory sc8-pr-cvs1:/tmp/cvs-serv19380/src/FAT.Core/Configuration
Modified Files:
FATConfiguration.cs
Log Message:
commits to fat will now be sent out on developer mailing list
Index: FATConfiguration.cs
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Core/Configuration/FATConfiguration.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FATConfiguration.cs 12 Dec 2003 23:28:50 -0000 1.1
--- FATConfiguration.cs 15 Jan 2004 00:56:58 -0000 1.2
***************
*** 10,17 ****
--- 10,19 ----
{
private Assembly[] assemblies;
+ private string[] paths;
public FATConfiguration(XmlNode root)
{
assemblies = ParseAssemblies(root);
+ paths = ParsePaths(root);
}
***************
*** 25,35 ****
ArrayList assemblies = new ArrayList();
! XmlNode assembliesNode = root.SelectSingleNode("Assemblies");
! if (assembliesNode == null)
! {
! throw new ConfigurationException("No test fixture assemblies have been specified. Please ensure to add the test fixture assemblies to the configuration file.");
! }
!
! foreach (XmlNode assemblyNode in assembliesNode.ChildNodes)
{
if (assemblyNode.NodeType == XmlNodeType.Element)
--- 27,32 ----
ArrayList assemblies = new ArrayList();
! XmlNodeList assemblyNodes = root.SelectNodes("Assemblies/Assembly");
! foreach (XmlNode assemblyNode in assemblyNodes)
{
if (assemblyNode.NodeType == XmlNodeType.Element)
***************
*** 41,44 ****
--- 38,57 ----
return (Assembly[])assemblies.ToArray(typeof(Assembly));
}
+
+ private string[] ParsePaths(XmlNode root)
+ {
+ ArrayList pathList = new ArrayList();
+ XmlNodeList pathNodes = root.SelectNodes("TestPaths/TestPath");
+ foreach (XmlNode node in pathNodes)
+ {
+ pathList.Add(node.InnerText);
+ }
+ return (string[])pathList.ToArray(typeof(string));
+ }
+
+ public ITestFileScanner TestFileScanner
+ {
+ get { return new TestFileScanner(paths); }
+ }
}
}
|
|
From: <exo...@us...> - 2004-01-15 00:57:01
|
Update of /cvsroot/fat/FAT/src/FAT.Web
In directory sc8-pr-cvs1:/tmp/cvs-serv19380/src/FAT.Web
Modified Files:
Default.aspx Default.aspx.cs FAT.Web.csproj FAT.css Web.config
Added Files:
TestTreeView.cs
Log Message:
commits to fat will now be sent out on developer mailing list
--- NEW FILE: TestTreeView.cs ---
using FAT.Core;
using FAT.Core.Configuration;
using System;
using System.Collections;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.ComponentModel;
namespace FAT.Web
{
public class TestTreeView : WebControl
{
private ITestFileScanner scanner;
private HtmlAnchor[] testLinks;
// TODO: load scanner from config
public TestTreeView() : this(new TestFileScanner(new string[] { @"D:\dev\FAT\sample" } )) { }
public TestTreeView(ITestFileScanner scanner)
{
this.scanner = scanner;
}
protected override void CreateChildControls()
{
ITestFile[] testFiles = scanner.Scan();
testLinks = new HtmlAnchor[testFiles.Length];
for (int i = 0; i < testFiles.Length; i++)
{
HtmlAnchor anchor = new HtmlAnchor();
anchor.HRef = "?" + testFiles[i].Filename;
anchor.InnerText = testFiles[i].Name;
testLinks[i] = anchor;
Controls.Add(anchor);
}
}
public HtmlAnchor[] TestLinks
{
get
{
// EnsureChildControls();
CreateChildControls();
return testLinks;
}
}
}
}
Index: Default.aspx
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Web/Default.aspx,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Default.aspx 13 Dec 2003 00:09:02 -0000 1.1
--- Default.aspx 15 Jan 2004 00:56:58 -0000 1.2
***************
*** 1,2 ****
--- 1,3 ----
+ <%@ Register Tagprefix="FAT" Namespace="FAT.Web" Assembly="FAT.Web" %>
<%@ Page language="c#" Codebehind="Default.aspx.cs" AutoEventWireup="false" Inherits="FAT.Web.Default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
***************
*** 8,11 ****
--- 9,15 ----
<body>
<form id="CreateTest" method="post" runat="server">
+ <div id="TestTreeView" class="Menu">
+ <FAT:TestTreeView runat="server" id="TestTreeView1" />
+ </div>
<table>
<tr>
***************
*** 13,37 ****
</tr>
<tr>
! <td><asp:Label id="testNameLabel">Test Name: </asp:Label></td>
<td><asp:TextBox id="testName" runat="server" Width="500" /></td>
<td><asp:Label ID="testNameWarning" Runat="server">*</asp:Label></td>
</tr>
<tr>
! <td><asp:Label id="fixtureLabel">Fixture: </asp:Label></td>
<td><asp:TextBox id="fixture" runat="server" Width="500" /></td>
<td><asp:Label ID="fixtureWarning" Runat="server">*</asp:Label></td>
</tr>
<tr>
! <td valign="top"><asp:Label id="testLabel">Test: </asp:Label></td>
<td><asp:TextBox id="test" runat="server" Rows="10" TextMode="MultiLine" Width="500" /></td>
<td valign="top">*</td>
</tr>
<tr>
! <td valign="top"><asp:Label id="setUpLabel">SetUp: </asp:Label></td>
<td><asp:TextBox id="setup" runat="server" Rows="4" TextMode="MultiLine" Width="500" /></td>
<td valign="top">*</td>
</tr>
<tr>
! <td valign="top"><asp:Label id="tearDownLabel">TearDown: </asp:Label></td>
<td><asp:TextBox id="teardown" runat="server" Rows="4" TextMode="MultiLine" Width="500" /></td>
<td valign="top">*</td>
--- 17,41 ----
</tr>
<tr>
! <td><asp:Label id="testNameLabel" Runat="server">Test Name: </asp:Label></td>
<td><asp:TextBox id="testName" runat="server" Width="500" /></td>
<td><asp:Label ID="testNameWarning" Runat="server">*</asp:Label></td>
</tr>
<tr>
! <td><asp:Label id="fixtureLabel" Runat="server">Fixture: </asp:Label></td>
<td><asp:TextBox id="fixture" runat="server" Width="500" /></td>
<td><asp:Label ID="fixtureWarning" Runat="server">*</asp:Label></td>
</tr>
<tr>
! <td valign="top"><asp:Label id="testLabel" Runat="server">Test: </asp:Label></td>
<td><asp:TextBox id="test" runat="server" Rows="10" TextMode="MultiLine" Width="500" /></td>
<td valign="top">*</td>
</tr>
<tr>
! <td valign="top"><asp:Label id="setUpLabel" Runat="server">SetUp: </asp:Label></td>
<td><asp:TextBox id="setup" runat="server" Rows="4" TextMode="MultiLine" Width="500" /></td>
<td valign="top">*</td>
</tr>
<tr>
! <td valign="top"><asp:Label id="tearDownLabel" Runat="server">TearDown: </asp:Label></td>
<td><asp:TextBox id="teardown" runat="server" Rows="4" TextMode="MultiLine" Width="500" /></td>
<td valign="top">*</td>
Index: Default.aspx.cs
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Web/Default.aspx.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Default.aspx.cs 13 Dec 2003 00:09:02 -0000 1.1
--- Default.aspx.cs 15 Jan 2004 00:56:58 -0000 1.2
***************
*** 14,26 ****
--- 14,34 ----
{
protected Label instructions;
+ protected Label testNameLabel;
protected TextBox testName;
protected Label testNameWarning;
+ protected Label fixtureLabel;
protected TextBox fixture;
+ protected Label testLabel;
protected TextBox test;
+ protected Label setupLabel;
protected TextBox setup;
+ protected Label teardownLabel;
protected TextBox teardown;
protected Label fixtureWarning;
protected Button run;
protected PlaceHolder results;
+ protected FAT.Web.TestTreeView TestTreeView1;
+ protected System.Web.UI.WebControls.Label setUpLabel;
+ protected System.Web.UI.WebControls.Label tearDownLabel;
private DefaultPageModel model = new DefaultPageModel();
Index: FAT.Web.csproj
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Web/FAT.Web.csproj,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FAT.Web.csproj 13 Dec 2003 00:09:02 -0000 1.1
--- FAT.Web.csproj 15 Jan 2004 00:56:58 -0000 1.2
***************
*** 83,86 ****
--- 83,91 ----
Package = "{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}"
/>
+ <Reference
+ Name = "System.Drawing"
+ AssemblyName = "System.Drawing"
+ HintPath = "C:\WINNT\Microsoft.NET\Framework\v1.0.3705\System.Drawing.dll"
+ />
</References>
</Build>
***************
*** 138,141 ****
--- 143,151 ----
/>
<File
+ RelPath = "TestTreeView.cs"
+ SubType = "Code"
+ BuildAction = "Compile"
+ />
+ <File
RelPath = "Web.config"
BuildAction = "Content"
Index: FAT.css
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Web/FAT.css,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** FAT.css 13 Dec 2003 00:09:02 -0000 1.1
--- FAT.css 15 Jan 2004 00:56:58 -0000 1.2
***************
*** 32,33 ****
--- 32,38 ----
FONT-SIZE: 10px
}
+
+ .menu
+ {
+ float: left;
+ }
\ No newline at end of file
Index: Web.config
===================================================================
RCS file: /cvsroot/fat/FAT/src/FAT.Web/Web.config,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** Web.config 13 Dec 2003 00:09:02 -0000 1.1
--- Web.config 15 Jan 2004 00:56:58 -0000 1.2
***************
*** 8,12 ****
<FAT>
<Assemblies>
! <Assembly>D:\dev\FAT\build\FAT.Acceptance.exe</Assembly>
</Assemblies>
</FAT>
--- 8,12 ----
<FAT>
<Assemblies>
! <Assembly>D:\dev\FAT\build\FAT.Acceptance.dll</Assembly>
</Assemblies>
</FAT>
|
|
From: <exo...@us...> - 2004-01-15 00:57:01
|
Update of /cvsroot/fat/FAT/src/FAT.Console In directory sc8-pr-cvs1:/tmp/cvs-serv19380/src/FAT.Console Modified Files: ConsoleMain.cs FAT.Console.csproj app.config Added Files: ArgumentParser.cs Log Message: commits to fat will now be sent out on developer mailing list --- NEW FILE: ArgumentParser.cs --- using System; using System.Collections; using System.IO; namespace FAT.Console { public class ArgumentParser { private ArrayList tests = new ArrayList(); private string config = AppDomain.CurrentDomain.SetupInformation.ConfigurationFile; public ArgumentParser(string[] args) { foreach (string arg in args) { if (arg.StartsWith("/config:")) { config = (arg.Substring("/config:".Length)); } else { tests.Add(arg); } } if (tests.Count == 0) tests.Add(Directory.GetCurrentDirectory()); } public string[] Tests { get { return (string[])tests.ToArray(typeof(string)); } } public string Config { get { return config; } } } } Index: ConsoleMain.cs =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Console/ConsoleMain.cs,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ConsoleMain.cs 14 Dec 2003 21:30:28 -0000 1.2 --- ConsoleMain.cs 15 Jan 2004 00:56:57 -0000 1.3 *************** *** 9,14 **** { public const string NoFilesFoundMessage = @"No test files found."; ! public const string UsageMessage = @"Usage: FAT <testfile1.fat> <testfile2.fat> ... ! "; private ITestFileScanner scanner; private ITestParser parser; --- 9,16 ---- { public const string NoFilesFoundMessage = @"No test files found."; ! public const string UsageMessage = @"Usage: FAT [options] <testfile1.fat> <testfile2.fat> ... ! Options: ! /config:<filename>\t\tSpecify configuration file to use."; ! private ITestFileScanner scanner; private ITestParser parser; Index: FAT.Console.csproj =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Console/FAT.Console.csproj,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** FAT.Console.csproj 14 Dec 2003 21:30:28 -0000 1.2 --- FAT.Console.csproj 15 Jan 2004 00:56:57 -0000 1.3 *************** *** 91,94 **** --- 91,99 ---- /> <File + RelPath = "ArgumentParser.cs" + SubType = "Code" + BuildAction = "Compile" + /> + <File RelPath = "AssemblyInfo.cs" SubType = "Code" Index: app.config =================================================================== RCS file: /cvsroot/fat/FAT/src/FAT.Console/app.config,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** app.config 12 Dec 2003 23:28:50 -0000 1.1 --- app.config 15 Jan 2004 00:56:57 -0000 1.2 *************** *** 7,11 **** <FAT> <Assemblies> ! <Assembly>D:\dev\FAT\build\FAT.Acceptance.exe</Assembly> </Assemblies> </FAT> --- 7,11 ---- <FAT> <Assemblies> ! <Assembly>D:\dev\FAT\build\FAT.Acceptance.dll</Assembly> </Assemblies> </FAT> *************** *** 13,17 **** <system.diagnostics> <switches> ! <add name="FATTraceSwitch" value="4" /> <!-- Verbose: All messages --> </switches> <trace> --- 13,17 ---- <system.diagnostics> <switches> ! <add name="FATTraceSwitch" value="3" /> <!-- Verbose: All messages --> </switches> <trace> |
|
From: Darren M. <DMc...@th...> - 2004-01-03 20:33:50
|
Hi Owen,
Hope all's going well in India!
I've taken an initial look at FAT, done a few commits and now have a few
questions .....
[1] As we're aiming at FAT being compatible with .NET Framework 1.0, would
it make sense to add
<property name="nant.settings.currentframework" value="net-1.0"/>
to FAT.build to enforce this more explicitly?
[2] I'm using VS.NET V7. The project and solution files that are checked
in look like they are produced by VS.NET V6. Are you looking at moving to
V7?
[3] I've got all the unit tests passing in FAT.Test and FAT.WebTest (fixed
the RequestCookies test by changing url to the FATWeb url from
http://localpublic/pages/start.aspx which didn't exist on my machine).
I've added the invocation of the FAT.WebTest.dll tests to FAT.build
script.
It looked like you were moving the FAT.Acceptance projects to use FAT to
acceptance test itself - makes sense! I got the "Web/Run Simple Passing
Test.fat" and "Console/Run Simple Passing Test.fat" acceptance tests
running and passing.
Am I right in thinking that if we keep going down this route then
FAT.Acceptance.exe will become a dll, FAT.Console.dll will become an exe
(FAT.exe!) and AllTests.cs, FATWebTests.cs and maybe some other stuff will
disappear?
Cheers,
Darren |