[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Testing the GUI: acceptance tests  XML
Forum Index -> Development
Author Message
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
mreich

Power User
[Avatar]

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
[WWW]
CaptainCasa

Power User
[Avatar]

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
rheinrichs

Power User
[Avatar]

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
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
CaptainCasa

Power User
[Avatar]

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
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
 
Forum Index -> Development
Go to:   
Powered by JForum 2.1.6 © JForum Team