RE: [jbehave-user] Stories' Dependency

2014-09-12 Thread Anders
Check this description of the GivenStories keyword: 

http://jbehave.org/reference/stable/given-stories.html

 

The whole point with the keyword GivenStories is to do exactly that: run
the dependency before each dependent story.

 

If what you need is just to have the stories run in sequence (A - B - C),
then the GivenStories keyword is not what you want to use.

 

 

From: Zheng, Ayesha(AWF) [mailto:xuzh...@ebay.com] 
Sent: den 12 september 2014 03:53
To: user@jbehave.codehaus.org
Subject: [jbehave-user] Stories' Dependency

 

Hi all,

 

I have a problem with stories' dependency.

 

Example:

I have A,B,C stories, and stories B, C depends on A. (B-A, C-A).

I add GivenStories: A.story in both B.story and C.story to do this, then
run these 3 stories.

I found A.story run for 3 times.

 

I want to make A,B,C stories run only one time and keep dependency at the
same time. (Like testng: dependsOnMethods)

Does JBehave support this?

 

Thanks very much.

 

 

Best Regards,

Ayesha

 



RE: [jbehave-user] Stories' Dependency

2014-09-12 Thread Zheng, Ayesha(AWF)
Thanks for your answer.
Seems “GivenStories” cannot match my requirement.

Actually my requirement is:
B and C depend on A.
If A succeed, then run B and C in parallel. (Run them in serial need too long 
time)
If A failed, then skip B and C.

Does any feature in JBehave can do this?

Thanks.

Best Regards,
Ayesha

From: Anders [mailto:codeh...@aek.se]
Sent: 2014年9月12日 17:39
To: user@jbehave.codehaus.org
Subject: RE: [jbehave-user] Stories' Dependency

Check this description of the “GivenStories” keyword:
http://jbehave.org/reference/stable/given-stories.html

The whole point with the keyword “GivenStories” is to do exactly that: run the 
dependency before each dependent story.

If what you need is just to have the stories run in sequence (A - B - C), 
then the “GivenStories” keyword is not what you want to use.


From: Zheng, Ayesha(AWF) [mailto:xuzh...@ebay.com]
Sent: den 12 september 2014 03:53
To: user@jbehave.codehaus.orgmailto:user@jbehave.codehaus.org
Subject: [jbehave-user] Stories' Dependency

Hi all,

I have a problem with stories’ dependency.

Example:
I have A,B,C stories, and stories B, C depends on A. (B-A, C-A).
I add “GivenStories: A.story” in both B.story and C.story to do this, then run 
these 3 stories.
I found A.story run for 3 times.

I want to make A,B,C stories run only one time and keep dependency at the same 
time. (Like testng: dependsOnMethods)
Does JBehave support this?

Thanks very much.


Best Regards,
Ayesha



Re: [jbehave-user] Stories' Dependency

2014-09-12 Thread Mauro Talevi
There is no such behaviour built-in.

You can nonetheless implement some state logic in your story A so that if 
successful it won't get repeated more than once.

Think about setting up a context object.

 On 12 Sep 2014, at 11:50, Zheng, Ayesha(AWF) xuzh...@ebay.com wrote:
 
 Thanks for your answer.
 Seems “GivenStories” cannot match my requirement.
  
 Actually my requirement is:
 B and C depend on A.
 If A succeed, then run B and C in parallel. (Run them in serial need too long 
 time)
 If A failed, then skip B and C.
  
 Does any feature in JBehave can do this?
  
 Thanks.
  
 Best Regards,
 Ayesha
  
 From: Anders [mailto:codeh...@aek.se] 
 Sent: 2014年9月12日 17:39
 To: user@jbehave.codehaus.org
 Subject: RE: [jbehave-user] Stories' Dependency
  
 Check this description of the “GivenStories” keyword:
 http://jbehave.org/reference/stable/given-stories.html
  
 The whole point with the keyword “GivenStories” is to do exactly that: run 
 the dependency before each dependent story.
  
 If what you need is just to have the stories run in sequence (A - B - C), 
 then the “GivenStories” keyword is not what you want to use.
  
  
 From: Zheng, Ayesha(AWF) [mailto:xuzh...@ebay.com] 
 Sent: den 12 september 2014 03:53
 To: user@jbehave.codehaus.org
 Subject: [jbehave-user] Stories' Dependency
  
 Hi all,
  
 I have a problem with stories’ dependency.
  
 Example:
 I have A,B,C stories, and stories B, C depends on A. (B-A, C-A).
 I add “GivenStories: A.story” in both B.story and C.story to do this, then 
 run these 3 stories.
 I found A.story run for 3 times.
  
 I want to make A,B,C stories run only one time and keep dependency at the 
 same time. (Like testng: dependsOnMethods)
 Does JBehave support this?
  
 Thanks very much.
  
  
 Best Regards,
 Ayesha
  


[jbehave-user] When hook

2014-09-12 Thread Chad Wilson

Is there any way to run something before all When steps?

Chad

-
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email