bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] GSOC Idea 1:Doubt on test suite


From: Darshit Shah
Subject: Re: [Bug-wget] GSOC Idea 1:Doubt on test suite
Date: Wed, 4 Mar 2015 18:11:46 +0530

Hey,

No issues. There would be little use for us mentors if you understood
everything on the first go.

Yes, you're right. Pre-hooks are executed before the Wget executable
is invoked and the Post-test hooks are invoked after.
However, there's three different types of hooks:
1. Pre-Test Hooks
2. Post-Test Hooks
3. Test Rules

The Pre-Test rules are used to set up the test environment, e.g.:
creating a local directory structure.
The Post-Test rules are used to check the results of the command.
These can be checking the exit code, the list of downloaded files and
their contents and a lot of other things
The Test Rules are used to configure the Test Server. For each test, a
custom HTTP Server is created with a certain set of rules. These could
be asking for authentication, setting page redirects or setting
cookies.



On Wed, Mar 4, 2015 at 5:58 PM, Smriti Gambhir
<address@hidden> wrote:
> Hi !
>
> I started working on GSOC Idea 1.
> I am currently going through RFC 959. Halfway down. Meanwhile I also
> decided to go through the existing test suite. I got a little stuck. Sorry
> if it sounds a bit beginner level, haven't read much of source code lately.
> I wanted to know more about pre-hooks and post-hooks and conf in the
> BaseTest class. I didn't completely understand what they do. According to
> my understanding, pre-test and post-test hooks are executed before and
> after the issuing of wget command. Is that correct?
>
> Thanks
>
> --
> Smriti Gambhir
> Department of Computer Science
> BITS Pilani K.K. Birla Goa Campus



-- 
Thanking You,
Darshit Shah



reply via email to

[Prev in Thread] Current Thread [Next in Thread]