Erlang/OTP Forums

Author Message

<  Erlang questions mailing list  ~  Common Test Hooks

Guest
Posted: Fri Sep 30, 2011 11:58 am Reply with quote
Guest
Hi CT users,

I wonder if anyone else has tried out the relatively recent addition of Common Test Hooks in Common Test?
In the project I'm working in we have used it successfully for about six months now.
I think it's a very powerful tool for creating behaviours that are common to multiple test suites.
We also use CT Hooks to start up and supervise resources and to perform cleanup and recovery actions after
failed test cases. It saves the testers a lot of work.

The CT Hooks functionality is still in alpha vsn according to OTP R14B03 but I think it's stable enough
to go ahead and use it. We have had no problems at all during these six months.

If anyone else out there has used CT Hooks I would appreciate if you could share your experiences and maybe
provide some new ideas about creative usage of the feature.
BR,
/OLA.
_______________________________________________
erlang-questions mailing list
erlang-questions@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
Post received from mailinglist
Guest
Posted: Fri Sep 30, 2011 1:04 pm Reply with quote
Guest
Hi Ola!

Just letting you and everyone else know that there will be a small
interface change (return value of init callback) in R14B04 with CTHs in
order to allow priority inbetween CTHs. I have also planned to extend
the priority feature to be more flexible duing execution of a suite so
that one could run hooks in one order during init_per_* and another
during end_per_*. Besides this change nothing more is planned right now,
though suggestions on improvements are more than welcome!

CTH will remain alpha until the R15 release and then be put in final
version.

Regarding creative uses of hooks, we at OTP use them to compile C code
in SUITE_data directories which are then used to test various interface
functionality within the erlang emulator.

Lukas
Erlang/OTP team

On 30/09/11 13:57, Ola Andersson A wrote:
> Hi CT users,
>
> I wonder if anyone else has tried out the relatively recent addition of Common Test Hooks in Common Test?
> In the project I'm working in we have used it successfully for about six months now.
> I think it's a very powerful tool for creating behaviours that are common to multiple test suites.
> We also use CT Hooks to start up and supervise resources and to perform cleanup and recovery actions after
> failed test cases. It saves the testers a lot of work.
>
> The CT Hooks functionality is still in alpha vsn according to OTP R14B03 but I think it's stable enough
> to go ahead and use it. We have had no problems at all during these six months.
>
> If anyone else out there has used CT Hooks I would appreciate if you could share your experiences and maybe
> provide some new ideas about creative usage of the feature.
> BR,
> /OLA.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@erlang.org
> http://erlang.org/mailman/listinfo/erlang-questions
>
_______________________________________________
erlang-questions mailing list
erlang-questions@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
Post received from mailinglist
Guest
Posted: Fri Sep 30, 2011 2:41 pm Reply with quote
Guest
Thanks for the info Lukas!
We will probably go directly for R14B04 at the next upgrade so that's good to know.

By the way, we also recently added a hook that compiles C code. In our case it's test cases that are executed on the target node.
The code is compiled and transferred to the node with ftp, then executed from the erlang suite with some hidden signalling.
All magically provided by the CTH.
/OLA.


> -----Original Message-----
> From: erlang-questions-bounces@erlang.org
> [mailto:erlang-questions-bounces@erlang.org] On Behalf Of
> Lukas Larsson
> Sent: den 30 september 2011 14:48
> To: erlang-questions@erlang.org
> Subject: Re: [erlang-questions] Common Test Hooks
>
> Hi Ola!
>
> Just letting you and everyone else know that there will be a
> small interface change (return value of init callback) in
> R14B04 with CTHs in order to allow priority inbetween CTHs. I
> have also planned to extend the priority feature to be more
> flexible duing execution of a suite so that one could run
> hooks in one order during init_per_* and another during
> end_per_*. Besides this change nothing more is planned right
> now, though suggestions on improvements are more than welcome!
>
> CTH will remain alpha until the R15 release and then be put
> in final version.
>
> Regarding creative uses of hooks, we at OTP use them to
> compile C code in SUITE_data directories which are then used
> to test various interface functionality within the erlang emulator.
>
> Lukas
> Erlang/OTP team
>
> On 30/09/11 13:57, Ola Andersson A wrote:
> > Hi CT users,
> >
> > I wonder if anyone else has tried out the relatively recent
> addition of Common Test Hooks in Common Test?
> > In the project I'm working in we have used it successfully
> for about six months now.
> > I think it's a very powerful tool for creating behaviours
> that are common to multiple test suites.
> > We also use CT Hooks to start up and supervise resources and to
> > perform cleanup and recovery actions after failed test
> cases. It saves the testers a lot of work.
> >
> > The CT Hooks functionality is still in alpha vsn according to OTP
> > R14B03 but I think it's stable enough to go ahead and use
> it. We have had no problems at all during these six months.
> >
> > If anyone else out there has used CT Hooks I would
> appreciate if you
> > could share your experiences and maybe provide some new
> ideas about creative usage of the feature.
> > BR,
> > /OLA.
> > _______________________________________________
> > erlang-questions mailing list
> > erlang-questions@erlang.org
> > http://erlang.org/mailman/listinfo/erlang-questions
> >
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@erlang.org
> http://erlang.org/mailman/listinfo/erlang-questions
>
_______________________________________________
erlang-questions mailing list
erlang-questions@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions
Post received from mailinglist
wuji
Posted: Mon Sep 03, 2012 7:17 am Reply with quote
User Joined: 10 Aug 2012 Posts: 654
Membership Chair."Instead, Guy said she planned to attend Cornell's program program [h2]imitation designer *beep*[/h2] program in Washington, D.C., in the fall, where she would
in both classes and have an internship, in order to to replica designer *beep* to be close to her home state to fulfill her
Wheatley, director of media relations for Cornell University, said, "That "That [h1]replica designer *beep*[/h1] "That letter was never meant to be public. It was
private letter between her and her sisters. Someone misbehaved in in cheap real jordans in releasing it."Wheatley said she is "staggered" by the involvement
Cornell students, and said their ability to juggle is something something buy real jordans something that they have been doing since they were in
school and continued successfully into college.But it's uncommon for many many [h4]replica designer *beep*[/h4] many state representatives to attend school while fulfilling their duties,
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum