Re: 5.4 Kills PageTester

2013-10-16 Thread Martin Kersten
TapestryRunnerConstants was the class to vanish. I recreated it but the page rendering is resulting in null response. Nothing is written so there is something else to hunt for. I will extract the whole page tester related classes (rewrote the PageTester class also) and the selenium is also

Re: 5.4 Kills PageTester

2013-10-16 Thread Thiago H de Paula Figueiredo
On Wed, 16 Oct 2013 17:34:52 -0300, Martin Kersten wrote: Hi everyone, Hi! I just updated my pom today and removed all irritating dependencies regarding to tapestry 5.3 and replaced them with their counterpart versions of 5.4. Don't forget that 5.4 is an alpha version. It's not fin

5.4 Kills PageTester

2013-10-16 Thread Martin Kersten
components (ok questionable) and I would like to stick to java here. Since I asked a couple of days ago regarding to testing pages it seams that I was encorraged encouraged to get up and ride a dead horse. So I have two options. Switch to spock I am currently not familar with or second extract the

PageTester

2013-10-14 Thread Martin Kersten
I am currently rewriting the PageTester to fit a more general overall experience by for example adding Page objects and bundle request and response together and using a new request every time. Also I use threads to render the response and being able to simply issue several requests at a time for

Re: Using Spock Mocks with PageTester

2012-10-22 Thread Tony Nelson
it should be very similar to that. > > Cheers - Alex K > > On Mon, Oct 22, 2012 at 10:27 AM, Tony Nelson wrote: > >> Does anyone have an example of using Spock Mocks with PageTester? >> >> I'd like to substitute Mocks for @Injected resources and I can'

Re: Using Spock Mocks with PageTester

2012-10-22 Thread Alex Kotchnev
ing Spock Mocks with PageTester? > > I'd like to substitute Mocks for @Injected resources and I can't seem to > find a way to make it happen. > > Has anyone figured out a good way to do this? > > Thanks in advance > -Tony > > > > > Since 1982, St

Using Spock Mocks with PageTester

2012-10-22 Thread Tony Nelson
Does anyone have an example of using Spock Mocks with PageTester? I'd like to substitute Mocks for @Injected resources and I can't seem to find a way to make it happen. Has anyone figured out a good way to do this? Thanks in advance -Tony Since 1982, Starpoint Solutions has been

Re: PageTester cant handle querystring ?

2012-06-19 Thread Steve Eynon
There is also a duplicate JIRA for the PageTester bug and a patch file here: REOPEN TAP5-698 - PageTester's setupRequestFromURI incorrectly uses substring twice on same string https://issues.apache.org/jira/browse/TAP5-1936 Steve. -- Steve Eynon --- "If at

Re: PageTester cant handle querystring ?

2012-06-19 Thread Steve Eynon
A colleague already filed this JIRA last year: PageTester causes StringIndexOutOfBoundsException with query parameter https://issues.apache.org/jira/browse/TAP5-1770 While you're at it, you may also wish to patch TestableRequestImpl with the following: @Override public TestableRequest

PageTester cant handle querystring ?

2012-06-18 Thread Karan Rajanayagam
PageTester cant handle query string.. for ex. an link like: admin/clazz/edit?schoolYearId=0 Im getting StringIndexOutOfBounds because an error in PageTester class., PageTester class we have: / private void setupRequestFromURI(String URI) { String linkPath

Re: Access to session when testing with PageTester?

2012-03-10 Thread annon88
Hello, I have the same question. Would somebody answer, please? -- View this message in context: http://tapestry.1045711.n5.nabble.com/Access-to-session-when-testing-with-PageTester-tp2425559p5552430.html Sent from the Tapestry - User mailing list archive at Nabble.com

Re: PageTester with an application that uses tynamo

2012-02-13 Thread donarus
; private ThreadState threadState; private PageTester pageTester; @BeforeClass public void beforeClass() { initMocks(this); threadState = new SubjectThreadState(subject); threadState.bind(); pageTester = new

Re: PageTester with tapestry-security: No SecurityManager accessible to the calling code

2012-01-10 Thread Kalle Korhonen
On Tue, Jan 10, 2012 at 8:00 AM, Jonathan Barker wrote: > We are attempting to use PageTester with an application using > tapestry-security, and are running into a problem on any secured > pages, where there is no SecurityManager available.  I think I > understand the problem, but I

PageTester with tapestry-security: No SecurityManager accessible to the calling code

2012-01-10 Thread Jonathan Barker
We are attempting to use PageTester with an application using tapestry-security, and are running into a problem on any secured pages, where there is no SecurityManager available. I think I understand the problem, but I suspect that someone has already put in the effort to move from understanding

Re: PageTester can't init JPAModule when run mvn test

2011-12-16 Thread Igor Drobiazko
The message "No PersistenceProvider implementation available in the runtime environment." means that no JPA implementor like EclipseLink is not available on the classpath. On Fri, Dec 16, 2011 at 10:50 AM, Bo Gao wrote: > Hi, > How can I test my services using TestNG? > &g

PageTester can't init JPAModule when run mvn test

2011-12-16 Thread Bo Gao
Hi, How can I test my services using TestNG? I use PageTester to start tapestry and call getService to get my service instance. This works when I run in a main function. But I write some test class use TestNG, when I call mvn test in shell. I get the following Exceptions. &qu

Re: [T5.3] Bug PageTester

2011-12-05 Thread Kevin Lin
Move to TAP5: https://issues.apache.org/jira/browse/TAP5-1770 On Thu, Dec 1, 2011 at 9:52 AM, Kevin Lin wrote: > Thanks Josh. Defect raised in JIRA: > TAPESTRY-2785 - [T5.3] - PageTester causes StringIndexOutOfBoundsException > for any page request path with query > par

Re: [T5.3] Bug PageTester

2011-11-30 Thread Kevin Lin
Thanks Josh. Defect raised in JIRA: TAPESTRY-2785 - [T5.3] - PageTester causes StringIndexOutOfBoundsException for any page request path with query parameter<https://issues.apache.org/jira/browse/TAPESTRY-2785> On Tue, Nov 29, 2011 at 10:49 AM, Josh Canfield wrote: > query parameter

Re: [T5.3] Bug PageTester

2011-11-28 Thread Josh Canfield
> My current fix is monkey-patch the PageTester class file. Hopefully this > will be fixed in next release of T53. It's unlikely to be fixed unless you file a defect in Jira. :) It's curious that none of the internal tests include a query parameter that would have caught this. J

[T5.3] Bug PageTester

2011-11-28 Thread Kevin Lin
same class file confirms my findings (see attached). My current fix is monkey-patch the PageTester class file. Hopefully this will be fixed in next release of T53. Regards, Kevin Lin - To unsubscribe, e-mail: users-unsubscr...@tap

Re: PageTester with an application that uses tynamo

2011-11-25 Thread Robert Zeigler
1) Create your page tester instance: PageTester tester = new PageTester("packagename","Appname","contextpath"); 2) get the registry from the page tester : tester.getRegistry(); 3) Get the RequestGlobals service from the registry: RequestGlobals globals = registry.g

Re: PageTester with an application that uses tynamo

2011-11-25 Thread parranz
sHttp(...) > > But I don't se how to do it.. > > > If you reply to this email, your message will be added to the > discussion below: > http://tapestry.1045711.n5.nabble.com/PageTester-with-an-application-that-uses-tynam

Re: PageTester with an application that uses tynamo

2011-11-25 Thread donarus
TR to provide httpServletResponse/Request, which can be accebted by WebUtils.isHttp(...) But I don't se how to do it.. -- View this message in context: http://tapestry.1045711.n5.nabble.com/PageTester-with-an-application-that-uses-tynamo-tp4942722p5022861.html Sent from the Tapestry - User ma

Re: PageTester with an application that uses tynamo

2011-10-27 Thread Kalle Korhonen
2011 at 4:46 AM, parranz wrote: > > Hi, > > I'm trying to create Unit Tests for my application, i've begun with a very > simple example, only calling the index page: > > >        PageTester tester = new PageTester(appPackage, appName, > "src/main/webapp&q

PageTester with an application that uses tynamo

2011-10-27 Thread parranz
Hi, I'm trying to create Unit Tests for my application, i've begun with a very simple example, only calling the index page: PageTester tester = new PageTester(appPackage, appName, "src/main/webapp", new Class[] { AppModule.class}); Document doc = test

[T5.2.6] Testing File Upload with PageTester

2011-10-09 Thread Steve Eynon
Hi, Is there any way to perform / simulate a File Upload with tapestry-upload when using the tapestry PageTester (via Testify)? Looking around, I can't find a way to set the org.apache.tapestry5.upload.services.UploadedFile property.

Re: Disable @Secure testing with PageTester

2011-09-30 Thread albaeck
bble.com/Disable-Secure-testing-with-PageTester-tp4858523p4858915.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands,

Disable @Secure testing with PageTester

2011-09-30 Thread albaeck
th context path '/foo'. How to avoid this? Thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/Disable-Secure-testing-with-PageTester-tp4858523p4858523.html Sent from the Tapestry - User mailing list a

Re: How to test ActivationRequestParameter using PageTester

2011-01-23 Thread Taha Hafeez
Hi What i do is create a main test page say "TestIndex" Now say I have a page PageNeedingContext and it needs a context, I add this to my TestIndex page Page Needing Context Now my test will be something like @BeforeClass public void init() { pageTester = new

Re: How to test ActivationRequestParameter using PageTester

2011-01-23 Thread Angelo C.
if the page contains some injected services, how to use PageTester with this kind of page? thanks. -- View this message in context: http://tapestry.1045711.n5.nabble.com/How-to-test-ActivationRequestParameter-using-PageTester-tp3353447p3353466.html Sent from the Tapestry - User mailing list

Re: How to test ActivationRequestParameter using PageTester

2011-01-23 Thread Taha Hafeez
t; > val appPackage = "mq.api"; >val appName = "App"; // App1Module.java has configured some > services. >val pageTester= new PageTester(appPackage, appName, > "src/main/webapp") >val request = pa

How to test ActivationRequestParameter using PageTester

2011-01-23 Thread Jun Tsai
me = "App"; // App1Module.java has configured some services. val pageTester= new PageTester(appPackage, appName, "src/main/webapp") val request = pageTester.getService(classOf[TestableRequest]) request.loadParameter("name","test"

Re: Unable to load an Asset which contains a folder destination in Tapestry 5.1.0.5 using PageTester

2010-08-02 Thread Sven Homburg
> $RequestPageCache_12a329095f3.get($RequestPageCache_12a329095f3.java) >at > > > org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.j > > ava:69) > -- > View this message in context: > http://tapestry-users.832.n2.nabble

Re: Unable to load an Asset which contains a folder destination in Tapestry 5.1.0.5 using PageTester

2010-08-02 Thread Juan E. Maya
ler.handleRequestException(DefaultRequestExceptionHandler.j > > ava:69) > -- > View this message in context: > http://tapestry-users.832.n2.nabble.com/Unable-to-load-an-Asset-which-contains-a-folder-destination-in-

Unable to load an Asset which contains a folder destination in Tapestry 5.1.0.5 using PageTester

2010-08-02 Thread Smita
org.apache.tapestry5.internal.services.DefaultRequestExceptionHandler.handleRequestException(DefaultRequestExceptionHandler.j ava:69) -- View this message in context: http://tapestry-users.832.n2.nabble.com/Unable-to-load-an-Asset-which-contains-a-folder-destination-in-Tapestry-5-1-0-5-using-PageTester-tp

T5.2.0: Unit test using PageTester gets null pointer exception using Flash persistence.

2010-07-13 Thread Josh Canfield
I'm writing a unit test for a patch and I'm getting a NullPointerException in an interesting place. I have a property defined like this: @Property @Persist(org.apache.tapestry5.PersistenceConstants.FLASH) private static Map selected; and in method public boolean isObjectSelected() {

Using PageTester#submitForm and FormFragment

2010-01-12 Thread Christian Riedel
Hi, I'm trying to write a simple page test for a page with a form and several FormFragments (wizard-style; trying out tynamo-conversation, good work btw). The test should simply submit the form with one fragment visible. Now I'm not getting it submitted successfully because the validation fai

PageTester and @Secured

2010-01-01 Thread Joost Schouten (ml)
Hi, I just added @Secured to my logon page and my LogonTest no longer works [1] as it doesn't know how to handle the added protocol domain and port. Is this a bug or is there a workaround? Cheers, Joost [1] java.lang.RuntimeException: Path 'https://localhost:8443/foo/en/logon' does not star

Access to session when testing with PageTester?

2009-12-29 Thread Stephan Schwab
In another thread I read that the HTTP session is simulated by PageTester. In the other thread someone showed that you can get the ApplicationStateManager and use @SessionState objects. I'm writing a test that needs to set an attribute to the session so that security code can access

Re: using web.xml in a PageTester

2009-12-19 Thread Pierre DEVREUX
Nobody knows ? -- View this message in context: http://old.nabble.com/using-web.xml-in-a-PageTester-tp26841451p26855985.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

using web.xml in a PageTester

2009-12-18 Thread Pierre DEVREUX
Hi, I define a filter in web.xml with is executed before Tapestry filter. Is it possible to use a such web.xml with PageTester. PageTester constructor takes context path in parameter, but it seems not to take into account web.xml file. How can I manage this ? Thanks. -- View this message

Re: How do you pass a context to PageTester?

2009-11-09 Thread Paul Field
Or you can just create the URL manually with the parameter in your test: tester.renderPage("mypage/1234"); // 1234 is the id - Paul Igor Drobiazko wrote on 09/11/2009 06:30:34: > Just create another page containg a link to target page and click on > it. The link can contain a context. > > B

Re: How do you pass a context to PageTester?

2009-11-08 Thread Igor Drobiazko
e? Thanks, Matt Mats Henricson-2 wrote: Hi! Since Testify isn't working for me, I thought I'd look at this page: http://tapestry.apache.org/tapestry5.1/guide/unit-testing-pages.html It has this example: PageTester tester = new PageTester(appPackage, appName, "..."); Object[

Re: How do you pass a context to PageTester?

2009-11-08 Thread mraible
t; http://tapestry.apache.org/tapestry5.1/guide/unit-testing-pages.html > > It has this example: > > PageTester tester = new PageTester(appPackage, appName, "..."); > Object[] context = new Object[]{ "abc", 123 }; > Document doc = tester.invoke(new Com

How do you pass a context to PageTester?

2009-09-03 Thread Mats Henricson
Hi! Since Testify isn't working for me, I thought I'd look at this page: http://tapestry.apache.org/tapestry5.1/guide/unit-testing-pages.html It has this example: PageTester tester = new PageTester(appPackage, appName, "..."); Object[] context = new Object[]{ "

[T5] How to pass context to PageTester?

2009-05-31 Thread juan dela cruz
Hi all, The documentation is outdated re:Unit Testing of Page or Components. On earlier build of Tapestry 5, I could pass context to PageTester as shown in the docs. However, this is no longer supported in the latter builds. So, how does one pass context to PageTester now? Thanks.

Re: Spring, Tapestry-Test, PageTester and Extension

2009-05-29 Thread Paul Field
Hi Geoffrey, I've been looking at a related problem - mainly that if you create lots of PageTester objects then your tests run really slow (because a new IOC container is created every time). So, I've been looking at how to share a PageTester amongst all my tests but without

Re: Spring, Tapestry-Test, PageTester and Extension

2009-05-28 Thread Geoffrey Wiseman
On Thu, May 28, 2009 at 5:18 PM, Geoffrey Wiseman < geoffrey.wise...@gmail.com> wrote: > To make this happen, I looked at a few options, an ObjectProvider (e.g. > http://wiki.apache.org/tapestry/Tapestry5SpringIntegrationAlternative1) > although tapestry-spring seems to now be using an ObjectCreat

Spring, Tapestry-Test, PageTester and Extension

2009-05-28 Thread Geoffrey Wiseman
This is a long story, so I'm going to try and get through it quickly in point form: - I have pages that have dependencies injected into them that come from Spring. - I want to be able to test those pages using tapestry-test and PageTester, possibly with the real dependencies, pos

PageTester use the foo contextPath

2009-05-22 Thread jverite
I try to use the PageTester, my first test is very simple on a login page, but when I try to submit a form I get this error message java.lang.RuntimeException: Path 'login.loginform' does not start with context path '/foo'. at org.apache.tapestry5.test.PageTester.

Re: T5: problems with PageTester

2009-03-02 Thread Inge Solvoll
have turned into an interface. Does anyone have a new "best practice" for passing an activation context to a page under test, since the documentation is outdated? I also figured out the solution to the context asset problem. After checking out the PageTester source, I found that Sys

T5: problems with PageTester

2009-02-27 Thread Inge Solvoll
I've managed to mock up all my services in a separate Module class, and got the PageTester working. But there are a few things that I still haven't found a solution for: 1. context-assets don't work. My project structure is like this: /src: all java and tml files /web/WEB-INF/cla

Re: T5: PageTester and services in AppModule

2009-02-15 Thread manuel aldana
this problem is fixed in 5.1. I did some major surgery on PageTester, and it now simulates the Tapestry Request, Response, Session and Context objects (not the Servlet API ones, however). This means you can test much more of your application beyond pages, including Dispatchers contributed to

Re: T5: PageTester and services in AppModule

2009-02-14 Thread Angelo Chen
Hi Howard, Is getServeletContext considered part of Servlet API? I have following in a service and got NullPointerException when calling getServletContext in T5.1. It seems to me more problems encountered with PageTester when the app uses services, how to use pageTester to do some real testing

Re: T5: PageTester and services in AppModule

2009-02-14 Thread Howard Lewis Ship
is problem is fixed in 5.1. I did some major surgery on >> PageTester, and it now simulates the Tapestry Request, Response, >> Session and Context objects (not the Servlet API ones, however). This >> means you can test much more of your application beyond pages, >> including

Re: T5: PageTester and services in AppModule

2009-02-14 Thread Angelo Chen
Hi Howard, Sounds good, is 5.1 as stable as 5.0.18? I did: 5.1 but it did not pull down the 5.1, any idea? thanks. Howard Lewis Ship wrote: > > I believe this problem is fixed in 5.1. I did some major surgery on > PageTester, and it now simulates the Tapestry Request, Response,

Re: T5: PageTester and services in AppModule

2009-02-14 Thread Howard Lewis Ship
I believe this problem is fixed in 5.1. I did some major surgery on PageTester, and it now simulates the Tapestry Request, Response, Session and Context objects (not the Servlet API ones, however). This means you can test much more of your application beyond pages, including Dispatchers

T5: PageTester and services in AppModule

2009-02-14 Thread Angelo Chen
Hi, I'm trying to add some page test into a running application, code is just simple: PageTester tester = new PageTester(appPackage, appName, "src/main/webapp"); PageTester tester = new PageTester(appPackage, appName, "src/main/webapp"); Documen

PageTester and form validation

2009-01-12 Thread akochnev
was wondering, is this expected behavior ? If PageTester doesn't process the page templates (from where it can pick up that I requested a "required" validation), it would still make sense that it would follow the same event processing logic as a "non-test" processing (that is

Re: Is possible to use ApplicationStateManager with PageTester?

2008-12-28 Thread Howard Lewis Ship
I'm not 100% sure, I'd have to check the code, but I believe it simulates the HttpSession (using a Map). On Sat, Dec 27, 2008 at 4:02 AM, Massimo Lusetti wrote: > It doesn't seems to me the PageTester is able to "use" the > ApplicationStateManager since this nee

Is possible to use ApplicationStateManager with PageTester?

2008-12-27 Thread Massimo Lusetti
It doesn't seems to me the PageTester is able to "use" the ApplicationStateManager since this needs a Servlet Container to stick the ASO into the Session. Is this right? Thanks -- Massimo http://meridio.blogspot.com -

Re: [T5] Localization problem (PageTester) on Linux

2008-11-30 Thread Daniel Kleine-Albers
Hi guys, solved it myself. I had the appName for the PageTester as "App". After changing it to "app" everything works as expected on both platforms. However I wonder if this is a bug (as Mac OS X is case-sensitive as well) or if this is the expected behaviour?

[T5] Localization problem (PageTester) on Linux

2008-11-30 Thread Daniel Kleine-Albers
Hi everyone, I'm experiencing a strange behaviour regarding localization. As usual I've got two localization catalogs in my WEB-INF directory: app.properties app_de.properties I've got some unit tests using the PageTester initialized like this: tester = new PageTester(appP

RE: PageTester and HttpServletRequest error.

2008-09-17 Thread Jonathan Barker
nal Message- > From: Kit Yeung [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 17, 2008 21:57 > To: Tapestry users > Subject: Re: PageTester and HttpServletRequest error. > > Hi Hilcon, > > > On Wed, Sep 17, 2008 at 01:19, Kit Yeung <[EMAIL PROTECTED]> wrot

Re: PageTester and HttpServletRequest error.

2008-09-17 Thread Kit Yeung
Hi Hilcon, On Wed, Sep 17, 2008 at 01:19, Kit Yeung <[EMAIL PROTECTED]> wrote: I am doing a evaluation on Tapestry, I am very new to Tapestry as well as Java and its frameworks. Don't you think you're taking on slightly more than you can handle? If you're really that new to Java, its framewor

RE: T5: testing using PageTester and EasyMock

2008-09-17 Thread Russell Brown
ssell -Original Message- From: Russell Brown [mailto:[EMAIL PROTECTED] Sent: 17 September 2008 16:09 To: Tapestry users Subject: RE: T5: testing using PageTester and EasyMock Alex, Yeah. I think that the approach you outline may well work but is unworkable (if you know what I mean). I hold ou

Re: PageTester and HttpServletRequest error.

2008-09-17 Thread Hilco Wijbenga
Hi Kit, On Wed, Sep 17, 2008 at 01:19, Kit Yeung <[EMAIL PROTECTED]> wrote: > I am doing a evaluation on Tapestry, I am very new to Tapestry as well as > Java and its frameworks. Don't you think you're taking on slightly more than you can handle? If you're really that new to Java, its frameworks,

RE: T5: testing using PageTester and EasyMock

2008-09-17 Thread Russell Brown
the mock in the test case is that you don't get the mock from the registry, you get a proxy wrapped mock. Cheers Russell -Original Message- From: Alex Kotchnev [mailto:[EMAIL PROTECTED] Sent: 17 September 2008 15:27 To: Tapestry users Subject: Re: T5: testing using PageTeste

Re: T5: testing using PageTester and EasyMock

2008-09-17 Thread Peter Stavrinides
Hi Russell, Now I see what you mean, like I said though I haven't used PageTester yet. I only use Easymock to test my IoC services that implement Tapestry interfaces, you appear to have an unsatisfied class dependency... just a shot in the dark, but have you tried the EasyMock Class Exte

Re: T5: testing using PageTester and EasyMock

2008-09-17 Thread Alex Kotchnev
the instances of all > the classes and you are creating the instance of the class under test aren't > you? Where is the PageTester and Tapestry IoC and all that (or have you > missed some code, or am I missing something?) > > > > What I meant was this:- In the src/main/java t

RE: T5: testing using PageTester and EasyMock

2008-09-17 Thread Russell Brown
Hi Peter, Thanks for that. That is just normal EasyMock testing isn't it? I don't see where tapestry comes into that at all? You are creating the instances of all the classes and you are creating the instance of the class under test aren't you? Where is the PageTester and Tapes

Re: T5: testing using PageTester and EasyMock

2008-09-17 Thread Peter Stavrinides
l Brown" <[EMAIL PROTECTED]> To: "Tapestry users" Sent: Wednesday, 17 September, 2008 2:00:12 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: RE: T5: testing using PageTester and EasyMock Hi Peter, How have you done this? When I try to use Tapestry to "Build&q

Re: T5: testing using PageTester and EasyMock

2008-09-17 Thread Peter Stavrinides
> To: "Tapestry users" Sent: Wednesday, 17 September, 2008 2:00:12 PM GMT +02:00 Athens, Beirut, Bucharest, Istanbul Subject: RE: T5: testing using PageTester and EasyMock Hi Peter, How have you done this? When I try to use Tapestry to "Build" my EasyMock services the resu

RE: T5: testing using PageTester and EasyMock

2008-09-17 Thread Angelo Chen
you end up with a test > class with populated mocks, a page class with populated services and a > helper class with the same mocks held in an iterable fashion for > convenience. > > > > Russell > > -- View this message in context: http://www.nabble.com/T5%3A-test

RE: T5: testing using PageTester and EasyMock

2008-09-17 Thread Russell Brown
er 2008 11:47 To: Tapestry users Subject: Re: T5: testing using PageTester and EasyMock Hi all, I haven't got around to using PageTester yet, but I started using Easymock for my IoC services recently... Its quite amazing how you can create a full blown IoC service with all dependencies sati

RE: T5: testing using PageTester and EasyMock

2008-09-17 Thread Russell Brown
Message- From: Alex Kotchnev [mailto:[EMAIL PROTECTED] Sent: 16 September 2008 17:39 To: Tapestry users Subject: Re: T5: testing using PageTester and EasyMock I was grappling with this issue myself, I still don't have a good answer to it. Because T5 is so heavily annotation driven (with th

Re: T5: testing using PageTester and EasyMock

2008-09-17 Thread Peter Stavrinides
Hi all, I haven't got around to using PageTester yet, but I started using Easymock for my IoC services recently... Its quite amazing how you can create a full blown IoC service with all dependencies satisfied so easily, it just works since service proxies are all interfaces in Tap

Re: T5: testing using PageTester and EasyMock

2008-09-17 Thread Angelo Chen
gt; Let's keep this discussion rolling, we certainly need a little more info > on > testing in T5. > > > -- View this message in context: http://www.nabble.com/T5%3A-testing-using-PageTester-and-EasyMock-tp19496126p19529056.html Sent from the Tapestry -

PageTester and HttpServletRequest error.

2008-09-17 Thread Kit Yeung
Hi all, I am doing a evaluation on Tapestry, I am very new to Tapestry as well as Java and its frameworks. I came across a problem when I try to use the PageTester. I wrote a very simple test case like the one in http://tapestry.apache.org/tapestry5/guide/unit-testing-pages.html. I put

Re: T5: testing using PageTester and EasyMock

2008-09-16 Thread Alex Kotchnev
onse. > Can someone else chime in? > It would be nice to have "real world" example in the documentation to > showcase TDD features of T5. > > /Serge > > > Russell Brown-6 wrote: > > > > One more related question would be this: in the docs at > > ht

RE: T5: testing using PageTester and EasyMock

2008-09-16 Thread SergeEby
this: in the docs at > http://tapestry.apache.org/tapestry5/guide/unit-testing-pages.html you > tell the PageTester class the name of your "filter" so it can load your > module. But how can you tell the PageTester to use the Spring filter not > the plain tapestry filter? All my s

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Mark Horn
set id="remove" then all links have >>>> the id of 'remove' which does not work for my tests ether. >>>> >>>> Any other ideas? >>>> >>>> On Tue, Aug 19, 2008 at 11:32 AM, Mark Horn <[EMAIL PROTECTED]> >>>&g

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Robert Zeigler
As far as I can tell from the issue you linked to, you need to bind the id (not t:id) parameter of the link. -Filip On 2008-08-19 17:11, Mark Horn wrote: I just updated to Tapestry 5.0.14 from 5.0.11 and have run into an issue with using PageTester to test ActionLinks as shown here http

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Mark Horn
27 AM, Filip S. Adamsen <[EMAIL PROTECTED]> >>> wrote: >>>> >>>> Hi, >>>> >>>> As far as I can tell from the issue you linked to, you need to bind the >>>> id >>>> (not t:id) parameter of the link. &

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Robert Zeigler
rom the issue you linked to, you need to bind the id (not t:id) parameter of the link. -Filip On 2008-08-19 17:11, Mark Horn wrote: I just updated to Tapestry 5.0.14 from 5.0.11 and have run into an issue with using PageTester to test ActionLinks as shown here http://tapestry.apache.org/tape

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Filip S. Adamsen
rom the issue you linked to, you need to bind the id (not t:id) parameter of the link. -Filip On 2008-08-19 17:11, Mark Horn wrote: I just updated to Tapestry 5.0.14 from 5.0.11 and have run into an issue with using PageTester to test ActionLinks as shown here http://tapestry.apache.org/tapestry5/g

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Mark Horn
gt;> >> -Filip >> >> On 2008-08-19 17:11, Mark Horn wrote: >>> >>> I just updated to Tapestry 5.0.14 from 5.0.11 and have run into an >>> issue with using PageTester to test ActionLinks as shown here >>> http://tapestry.apache.org/tapes

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Mark Horn
7:11, Mark Horn wrote: >> >> I just updated to Tapestry 5.0.14 from 5.0.11 and have run into an >> issue with using PageTester to test ActionLinks as shown here >> http://tapestry.apache.org/tapestry5/guide/unit-testing-pages.html >> >> It looks like this change in

Re: ActionLink, PageTester and ElementID

2008-08-19 Thread Filip S. Adamsen
Hi, As far as I can tell from the issue you linked to, you need to bind the id (not t:id) parameter of the link. -Filip On 2008-08-19 17:11, Mark Horn wrote: I just updated to Tapestry 5.0.14 from 5.0.11 and have run into an issue with using PageTester to test ActionLinks as shown here http

ActionLink, PageTester and ElementID

2008-08-19 Thread Mark Horn
I just updated to Tapestry 5.0.14 from 5.0.11 and have run into an issue with using PageTester to test ActionLinks as shown here http://tapestry.apache.org/tapestry5/guide/unit-testing-pages.html It looks like this change in 5.0.12, https://issues.apache.org/jira/browse/TAPESTRY-2294?page

Re: PageTester and Select Component

2008-06-03 Thread David Roberts
Replying to myself again! Probably a bad sign: the problem was this: id="searchOptions" should have been this:t:id="searchOptions" funny that it worked in the web page but failed the test. Anyway, I guess that's what the test is for. David Roberts wrote: Hi, I'm havin

PageTester and Select Component

2008-06-03 Thread David Roberts
Hi, I'm having problems instantiating values into a select component when testing forms. This is my form: model="searchTypes" validate="required"/> validate="required"/> and this is the test: doc = this.pageTester.renderPage("Se

T5: PageTester example broken

2008-04-08 Thread Zheng, Xiahong
Example fails to compile due to the missing "Element.getChildText()" method. It's probably removed from 5.0.11 release. What is the replacement for this method? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: T5 PageTester problem (Spring and Hibernate)

2008-03-14 Thread Jesper Zedlitz
Maybe someone is interested in a solution (or better: a dirty hack) for the problem. When the new PageTester is created with new PageTester("org.example.myapp", "Spring"); a new instance of SpringObjectProvider is created via SpringModule. The SpringObjectProvider is res

RE: T5 PageTester problem (Spring and Hibernate)

2008-03-02 Thread Jonathan Barker
> > I don't have a solution for you, but it's a similar problem to trying to > > use the HibernateTemplate outside of a web-app. I have some command- > line > > tools that look like: > > > > > > this.session = > > SessionFactoryUtils.getSession(sessionFactory, true); > > > > TransactionSynchr

RE: T5 PageTester problem (Spring and Hibernate)

2008-03-01 Thread Jesper Zedlitz
Jonathan Barker wrote: > I tried running your test, which gives a lazy-loading exception trying to > access the Set from BeanA. If you change your Hibernate mapping to > use lazy="false" then the problem goes away. > Unfortunately this is no option because the object tree is too large. > I don't

RE: T5 PageTester problem (Spring and Hibernate)

2008-02-29 Thread Jonathan Barker
> -Original Message- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jesper Zedlitz > Sent: Friday, February 29, 2008 9:59 AM > To: users@tapestry.apache.org > Subject: T5 PageTester problem (Spring and Hibernate) > > Maybe someone with more detailed knowledge

RE: T5 PageTester problem (Spring and Hibernate)

2008-02-29 Thread Jonathan Barker
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Jesper Zedlitz > Sent: Friday, February 29, 2008 9:59 AM > To: users@tapestry.apache.org > Subject: T5 PageTester problem (Spring and Hibernate) > > Maybe someone with more detailed knowledge about Tapestry's IoC > infrastruct

T5 PageTester problem (Spring and Hibernate)

2008-02-29 Thread Jesper Zedlitz
Maybe someone with more detailed knowledge about Tapestry's IoC infrastructure can help me with this problem. I have written a unit test (in fact it's more a kind of integration test) using the PageTester. Injected into the page is a DAO configured via Spring. If run in non-transactiona

Re: PageTester Can't Find .class Files

2008-02-25 Thread Mark W. Shead
mvn quickstart) uses AppModule instead of MyAppModule this change seems to have fixed the problem. Mark I am trying to use the PageTester functionality as described in: http://tapestry.formos.com/nightly/tapestry5/tapestry-core/guide/unit-testing-pages.html My test looks like: @T

  1   2   >