Hello Mikael,

JBehave is a tool for handle the execution of BDD like textual stories
where each step line should be mapped to step methods that is contained in
any kind of java pojo class.[1]

If your testcases are java classes and its methods could be annotated with
JBehave annotations so certainly you could use JBehave with them in your
context. But probably will be best you call the testcases methods from
specific Step classes created to support your stories.

For example, you could write a story like that:

"Given that nodeX is online // in this step you must ensure that nodeX is
online. if it is not your test could fail immediately.
And noteY is offline
When customer makes a call
Then control system must wake up the nodeZ
And complete the call"

In the Step Class that you will create to map this story to java you can
reuse and call the methods of your testcases to do what you needed and
assert what you expected to get.

hope I could help,

regards,

Cristiano

[1] - http://jbehave.org/reference/stable/getting-started.html


2013/5/10 Mikael Petterson <[email protected]>

>  Hi,****
>
> ** **
>
> I have looked at this framework and it looks promising. Also I want to
> take the opportunity to ask some questions to people that knows more about
> it than me J****
>
> ** **
>
> We have a number of testcases that we use to test nodes in a telco
> network. Some testcases requires that we have specific nodes ( like a
> specific switch or server ) and if we don’t have these then it is no use to
> run the testcases.****
>
> ** **
>
> Let’s take an example:****
>
> To run a suite of testcases  we need to have nodeX and nodeY in our test
> plant. So we need to verify if we have nodeX and nodeY.****
>
> If we have node X and Y run the a suite of testcases ( TestNG). Is this
> possible to do in Jbehave? How would this look like in a Jbehave context?*
> ***
>
> ** **
>
> Taking it one step further would it be possible to select the testcases
> automatically when you know that you have nodeX and nodeY in the testplant?
> ****
>
> ** **
>
> Br,****
>
> ** **
>
> //mikael****
>



-- 
"Tudo vale a pena se a alma não é pequena..."

Reply via email to