Thanks Mauro

My situation is like this
Given that a person registers a case of type XXXX from the Internet
And that user administratorInternet has logged on
When the case is selected in the inbox
<etc>

Normally when an administrator logs on, the inbox is filled with anything from 
one to hundreds of cases. I want to select the specific one that was created in 
the first given step. That step extracts a case id from a WS response. So my 
question is really, if not using a static variable in some class, how do you 
guys get that case id in the third step?
I don't want to webdriver click on just any case in the inbox.

A colleague of mine just suggested ThreadLocal. Perhaps I'll look into that.

Thanks a lot for any support,
Christian

Christian Karlsson
CAG Contactor AB
Adress: Jan Stenbecks Torg 17, SE-164 40 Kista
Mobil: +46 (0)706694527
Mail: christian.karlsson <at> cag.se
www.cag.se<https://wmail.cag.se/owa/redir.aspx?C=G2EjVQkj7kGZyieqy24uGB6NV2uAkM9Iy3xqV4cZFUaEVGXCGlWIq_V5O25t1jIUtjHgAaGFl0U.&URL=http%3a%2f%2fwww.cag.se%2f>

Från: Mauro Talevi [mailto:[email protected]]
Skickat: den 18 april 2013 19:50
Till: [email protected]
Ämne: Re: [jbehave-user] Setting up parallell stories with Spring configured 
Steps classes

Hi,

Spring supports the bean factory-method:

http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/beans.html#beans-factory-class-static-factory-method

But I'm not quite sure I understand your use case.    Why do you need to keep 
track of this case ID?  And what other information do you need?   And who needs 
it?

If you can share your needs starting from the scenarios, perhaps we can help 
you find a more appropriate solution.

Cheers

On 18/04/2013 15:26, Karlsson Christian wrote:
Hi all

I have a situation where I test a workflow of a case in our application. Until 
now I've used static variables to keep track of the case id and some other 
information. (I know it's not the "right" way to do it but it was convenient :)
Since some of the scenarios requires the processing to suspend for a few 
minutes (we are waiting for a BPEL process to finish) I now feel the need to 
run stories in parallel. I've seen the noughtsandcrosses example which passes 
the WindowControl to all Step classes. But how would you set this up when you 
have your steps in the Spring configuration XML?

Feel a bit puzzled here and any advice would be appreciated.
So far I either have the same case id for all stories (using static variables) 
or can't pass values along at all :(
I guess I need to prototype the beans in the XML but then what?

Well, I'll keep digging.

Happy coding,
Regards


Christian Karlsson
CAG Contactor AB
Adress: Jan Stenbecks Torg 17, SE-164 40 Kista
Mobil: +46 (0)706694527
Mail: christian.karlsson <at> cag.se
www.cag.se<https://wmail.cag.se/owa/redir.aspx?C=G2EjVQkj7kGZyieqy24uGB6NV2uAkM9Iy3xqV4cZFUaEVGXCGlWIq_V5O25t1jIUtjHgAaGFl0U.&URL=http%3a%2f%2fwww.cag.se%2f>


Reply via email to