Author |
Message |
26/05/2010 15:14:14
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
Hello everybody,
is there anybody out there who tested his or her CaptainCasa application with a test framework like JUnit or FIT?
My problem is that I do not know how to simulate the HTTP session, faces context etc.
I tried it with HttpUnit but did not succeed so far.
Would be glad if anyone had some experience with that and likes to share it...
How about you Björn????
Frauke
|
|
|
26/05/2010 15:32:31
|
mreich
Power User
Joined: 30/01/2009 08:34:23
Messages: 744
Offline
|
Hi Frauke,
I'm working with JUnit tests.
But I just test the logic part of my app, as I use Spring, I just need the access to the application context, I do this with a static class
Code:
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class ContextStatic {
private static final ApplicationContext INSTANCE = new ClassPathXmlApplicationContext("applicationContext.xml");
public static ApplicationContext getInstance() {
return INSTANCE;
}
}
Then I have a static method too to get my beans:
Code:
public static LogicLayer getFromApplicationContext(ApplicationContext ctx) {
return (LogicLayer) ctx.getBean("logicLayer");
}
In my test case I get the bean than as following:
Code:
private ApplicationContext context = ContextStatic.getInstance();
private CompetitionLogic competitionLogic = (LogicLayer.getFromApplicationContext(context)).getCompetitionLogic();
Markus
|
|
|
26/05/2010 16:30:56
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5518
Offline
|
Hi Frauke,
because you directly ask me: I currently do not test at all. (I'm on holiday in Austria.)
Regards, Björn
PS: back at home, I will continue to use CaptainCasa's-UI-Test-Framework - but this is not what you are asking for ;-). And: any Junit framework that operates on top of normal JSF will also work with CaptainCasa.
|
Björn Müller, CaptainCasa GmbH |
|
|
27/05/2010 15:03:51
|
rheinrichs
Power User
Joined: 08/05/2009 10:05:36
Messages: 209
Offline
|
our customer use "TestComplete" (AutomatedQA) and it works fine in combination with the attribute "clientname" in CC-Editor.
Sure there are other Frameworks too, that can use the "clientname"-attribute.
Additional: Fulltest with tools need much time (no fun... :-$)
regards
|
|
|
01/10/2015 10:44:01
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
Hi everybody,
does anyone of you has experiences with testing frameworks?
Is there anything you can recommend thats working perfectly with the CaptainCasa GUI?
At the moment we are evaluating several frameworks and it would be interesting to know, which one you - or your customers - are using .....
Would be grateful and pleased about a lot of inspiring ideas!!!
Frauke
|
|
|
01/10/2015 11:44:09
|
CaptainCasa
Power User
Joined: 21/11/2007 12:23:06
Messages: 5518
Offline
|
Hi Frauke,
I know two cases in which QF-Test (Quality First, a company close to Munich) is used or at least was under evaluation... I'll ask the corresponding persons to contact you.
Reagrds, Björn
|
Björn Müller, CaptainCasa GmbH |
|
|
01/10/2015 11:59:36
|
heyl
Power User
Joined: 10/01/2008 09:41:55
Messages: 267
Location: Ettlingen
Offline
|
Hi Björn,
Thank you, that's great!
Best regards
Frauke
|
|
|
|