Share

FitNesse

Tracker: Bugs

5 Import infects importing page with watermark and edit button - ID: 2383765
Last Update: Tracker Item Submitted ( robertmartin )

Messages In This Digest (10 Messages)
1.
Examples for HTMLFixtures. From: kishore_vb
2.
Unable to execute Javascript events using HTMLFixtures. From: kishore_vb
3.
(no subject) From: Emil Markow
4a.
Slim implementation in Python From: Eddy Pronk
5a.
Re: Fitnesse and GUI testing? From: Cs Cs
5b.
Re: Fitnesse and GUI testing? From: Williams, Wesley
5c.
Re: Fitnesse and GUI testing? From: Robert Stagner
6.
FitNesse 20081115 and importing Wiki Pages From: Thomas Letzkus
7.
FitNesse Bug Fix Release: 20081201 From: Robert Martin
8.
JavaScript/HTMLFixture From: kishore_vb
View All Topics | Create New Topic Messages
1.
Examples for HTMLFixtures.
Posted by: "kishore_vb" kishore_vb@yahoo.com kishore_vb
Mon Dec 1, 2008 6:38 am (PST)

Below is the text mentioned in fitnesse.org for Execute command of
HTML Fixture.

"Execute (applies to script nodes)
parameter: a condition on which to run this java script element. e.g.
onClick
Fire the condition if it is defined for this script element.

Note that the underlying htmlUnit still has only partial support for
javascript".

Please let me know what "partial support" means here , does it mean it
only supports only few javascript functions , where can I find more
info about it.

Back to top Reply to sender | Reply to group | Reply via web post
Messages in this topic (1)
2.
Unable to execute Javascript events using HTMLFixtures.
Posted by: "kishore_vb" kishore_vb@yahoo.com kishore_vb
Mon Dec 1, 2008 6:38 am (PST)

Below is the html code of the file which I wanted to test using
HTMLfixture , name of the file is ScriptPage.htm.

<html>
<head>
<script type="text/javascript">
function ChangeText()
{
document.getElementById("p1").style.color="blue";
document.getElementById("p1").style.fontFamily="Arial";
document.getElementById("p1").style.fontSize="larger";
}
</script>
</head>
<body>
<p id="p1">Hello world!</p>
<input type="button" onclick="ChangeText()"
value="Click me to change text above" ID="Button1" NAME="Button1">
</body>
</html>

I wrote below mentioned wiki script to test the onclick event of the
button.

!path *.jar
!path lib/*.jar
!path lib/HtmlFixture/*.jar
!path classes
!path lib
|com.jbergin.HtmlFixture|
|http://localhost/fitnessSite/ScriptPage.htm|
|Javascript|on|
|Element Focus|Button1|input|
|Execute|onclick|

When I test the below script , I am getting following java error.

"EcmaError: lineNumber=[1] column=[0] lineSource=[]
name=[ReferenceError] sourceName=[injected script]
message=[ReferenceError: "ChangeText" is not defined. (injected script#1)]
com.gargoylesoftware.htmlunit.ScriptException: ReferenceError:
"ChangeText" is not defined. (injected script#1)".

Can some one please let me know why I am getting this particular error.

Thanks in advance !!

Back to top Reply to sender | Reply to group | Reply via web post
Messages in this topic (1)
3.
(no subject)
Posted by: "Emil Markow" emarkow@gmail.com emarkowe
Mon Dec 1, 2008 6:39 am (PST)

1) Don't use '.' but rather the standard '/' URL delimiter character.
That way, I can have /com.foo/bar.car/1.0.0-SNAPSHOT

--
Emil

Back to top Reply to sender | Reply to group | Reply via web post
Messages in this topic (1)
4a.
Slim implementation in Python
Posted by: "Eddy Pronk" epronk@muftor.com epr0nk
Mon Dec 1, 2008 6:39 am (PST)

--- In fitnesse@yahoogroups.com, Robert Martin <UncleBob@...> wrote:
>
> This is a video overview of the new SLIM test system in the lastest
> release of FitNesse It's about 20 min long.
http://www.fitnesse.org/files/videos/SlimFitNesse.mov
>

I started coding the Python implementation.
I've got:

ListDeserializer.py
ListDeserializerTest.py
ListExecutor.py
ListExecutorTest.py
ListSerializer.py
ListSerializerTest.py
SlimError.py
SlimInstanceCreationTest.py
SlimMethodInvocationTest.py
SlimServer.py
SlimService.py
Statement.py
StatementExecutor.py
test/TestSlim.py

I want to let the java test for SlimService drive the python
implementation. I changed SlimServiceTest so it runs the service as a
process instead of creating an instance. Changing this for the java
implementation seemed like a good first step, but it doesn't work.
Does anyone know what I'm doing wrong here?

diff --git a/src/fitnesse/slim/SlimServiceTest.java
b/src/fitnesse/slim/SlimServiceTest.java
index db5b790..e9fc157 100644
--- a/src/fitnesse/slim/SlimServiceTest.java
+++ b/src/fitnesse/slim/SlimServiceTest.java
@@ -1,6 +1,7 @@
package fitnesse.slim;

import static fitnesse.util.ListUtility.list;
+import fitnesse.components.CommandRunner;
import org.junit.After;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
@@ -14,7 +15,7 @@ import java.util.Map;
public class SlimServiceTest {
private List<Object> statements;
private SlimClient slimClient = new SlimClient("localhost", 8099);
-
+ private CommandRunner runner;
@Before
public void setUp() throws Exception {
createSlimService();
@@ -30,7 +31,9 @@ public class SlimServiceTest {

private boolean tryCreateSlimService() throws Exception {
try {
- SlimService.main(new String[] {"8099"});
+ runner = new CommandRunner("java -cp
classes:fitnesse.jar:fitlibrary.jar fitnesse.slim.SlimService 8099",
null);
+ runner.start();
+ Thread.sleep(3);
return true;
} catch (Exception e) {
return false;

The Slim Python code so far:
http://github.com/epronk/stuff/tree/master/pyfit%2Ffitnesse%2Fslim

Eddy Pronk

Back to top Reply to sender | Reply to group | Reply via web post
Messages in this topic (5)
5a.
Re: Fitnesse and GUI testing?
Posted by: "Cs Cs" dotnetgurucs@yahoo.com dotnetgurucs
Mon Dec 1, 2008 6:40 am (PST)

Hi,

I recently experimented Fitnesse and Selenium for web testing.

We need to download both softwares and you need to run Fitnesse and
Selenium servers. Then we need to develop a code in (Class Library in .NET)
and implement any fixture ( in my case i implemented DoFixture). You can
test that DLL by referring in class path of Fitnesse web interface.

There is a Selenium Firefox AddOn , plz use that to find out some syntax
etc. It's a helpful tool.

Thanks,
Guru

________________________________
From: Myung-jin Choi <choipd.net@gmail.com>
To: fitnesse@yahoogroups.com
Sent: Tuesday, November 25, 2008 8:11:03 AM
Subject: [fitnesse] Fitnesse and GUI testing?

Hi group members,

I would like to discuss about the GUI testing with Fitnesse.
GUI testing automation means automatically control the mouse and keyboard
input.
Pywinauto with pyfit is one of my choices. Currently it is going well.
If anybody who has experience GUI testing, please share your golden
knowledge.

Thanks
Choipd


Back to top Reply to sender | Reply to group | Reply via web post
Messages in this topic (4)
5b.
Re: Fitnesse and GUI testing?
Posted by: "Williams, Wesley" wesley.williams@sabre.com wesinkrakow
Mon Dec 1, 2008 7:19 am (PST)

You can also use the selenium remote control server and start them from
within your fixture (I am doing this one time in the suite setup) and
have your test totally self contained (1 click testing) and easier to
automate.

Wes

From: fitnesse@yahoogroups.com [mailto:fitnesse@yahoogroups.com] On
Behalf Of Cs Cs
Sent: Tuesday, November 25, 2008 4:42 PM
To: fitnesse@yahoogroups.com
Cc: Myung-jin Choi
Subject: Re: [fitnesse] Fitnesse and GUI testing?

Hi,

I recently experimented Fitnesse and Selenium for web testing.

We need to download both softwares and you need to run Fitnesse and
Selenium servers. Then we need to develop a code in (Class Library in
.NET) and implement any fixture ( in my case i implemented DoFixture).
You can test that DLL by referring in class path of Fitnesse web
interface.

There is a Selenium Firefox AddOn , plz use that to find out some syntax
etc. It's a helpful tool.

Thanks,
Guru

________________________________

From: Myung-jin Choi <choipd.net@gmail.com>
To: fitnesse@yahoogroups.com
Sent: Tuesday, November 25, 2008 8:11:03 AM
Subject: [fitnesse] Fitnesse and GUI testing?

Hi group members,

I would like to discuss about the GUI testing with Fitnesse.
GUI testing automation means automatically control the mouse and
keyboard input.
Pywinauto with pyfit is one of my choices. Currently it is going well.
If anybody who has experience GUI testing, please share your golden
knowledge.

Thanks
Choipd

Back to top Reply to sender | Reply to group | Reply via web post
Messages in this topic (4)
5c.
Re: Fitnesse and GUI testing?
Posted by: "Robert Stagner" restagner@yahoo.com restagner
Mon Dec 1, 2008 9:21 am (PST)

Hi Wes,

We are also using a combination of fitnesse and Selenium. Could you please
elaborate (possibly with some example code) as to what is meant by "I am
doing this one time in the suite setup"? I am interested in firing up
Selenium just once for our entire suite of tests. Thanks.

Regards,
Robert

--- On Mon, 12/1/08, Williams, Wesley <wesley.williams@sabre.com> wrote:
From: Williams, Wesley <wesley.williams@sabre.com>
Subject: RE: [fitnesse] Fitnesse and GUI testing?
To: fitnesse@yahoogroups.com
Cc: "Myung-jin Choi" <choipd.net@gmail.com>
Date: Monday, December 1, 2008, 3:18 PM

You can also use the selenium remote control server and start
them from within your fixture (I am doing this one time in the suite setup)
and
have your test totally self contained (1 click testing) and easier to
automate.



Wes



From:
fitnesse@yahoogroup s.com [mailto:fitnesse@ yahoogroups. com] On Behalf Of
Cs
Cs

Sent: Tuesday, November 25, 2008 4:42 PM

To: fitnesse@yahoogroup s.com

Cc: Myung-jin Choi

Subject: Re: [fitnesse] Fitnesse and GUI testing?



Hi,

I recently experimented Fitnesse and Selenium for web testing.

We need to download both softwares and you need to run Fitnesse and
Selenium
servers. Then we need to develop a code in (Class Library in .NET) and
implement any fixture ( in my case i implemented DoFixture). You can test
that
DLL by referring in class path of Fitnesse web interface.

There is a Selenium Firefox AddOn , plz use that to find out some syntax
etc.
It's a helpful tool.

Thanks,

Guru



From: Myung-jin Choi <choipd.net@gmail. com>

To: fitnesse@yahoogroup s.com

Sent: Tuesday, November 25, 2008 8:11:03 AM

Subject: [fitnesse] Fitnesse and GUI testing?

Hi group members,

I would like to discuss about the GUI testing with Fitnesse.

GUI testing automation means automatically control the mouse and keyboard
input.

Pywinauto with pyfit is one of my choices. Currently it is going well.

If anybody who has experience GUI testing, please share your golden
knowledge.

Thanks

Choipd













Back to top Reply to sender | Reply to group | Reply via web post
Messages in this topic (4)
6.
FitNesse 20081115 and importing Wiki Pages
Posted by: "Thomas Letzkus" Thomas.Letzkus@intersys.ch thletzkus_g
Mon Dec 1, 2008 11:23 am (PST)


Hi all,

we use the wiki import feature to have a different start page (with
local parameters) on each server (development, testing, customer
site,...)

These start pages are locally defined and import the whole test set.

With the new version of FitNesse, also these local pages get the
Imported-watermark and, even worse, the respective buttons (Edit
remotely... which leads to a catastrophe...)

Looking at the properties of the page, there seems everything okay
(this pages imports its subpages from... NOT: this page imports its
content and its subpages...)

Going back to our latest version (20070619), everything works fine again.

Guess that's kind of a bug, isn't it?
Is there a workaround?

Regards and thanks for your answer in advance


Robert Martin ( robertmartin ) - 2008-12-03 17:55

5

Open

None

Robert Martin

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.