Hello everyone ! I have modified the Test file according to suggestions I have got from mentors . As Darshit and Tim has suggested me modifications line by line , I have tried to solve them . I think I should move on to main task about project though I have started looking at it . I want to focus on proposal and main project as Darshit has mentioned in the previous mail .
Please suggest me rough sketch of FTP test suite project . Things I know are 1) Implementation of FTP server . 2) Tests for FTP server . If I am missing anything else please point it out . >From aa03e399c32821dd96099f76500e736a542e4eb5 Mon Sep 17 00:00:00 2001 From: Satyam Zode <[email protected]> Date: Sat, 14 Mar 2015 23:53:26 +0530 Subject: [PATCH] Added wget http test for 503 Service unavailable --- testenv/Makefile.am | 1 + testenv/Test-503.py | 18 +++++++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) mode change 100644 => 100755 testenv/Makefile.am mode change 100644 => 100755 testenv/Test-503.py diff --git a/testenv/Makefile.am b/testenv/Makefile.am old mode 100644 new mode 100755 index a4e0352..0954153 --- a/testenv/Makefile.am +++ b/testenv/Makefile.am @@ -53,6 +53,7 @@ if HAVE_PYTHON3 Test-Post.py \ Test-504.py \ Test--spider-r.py \ + Test-503.py \ Test-redirect-crash.py # added test cases expected to fail here and under TESTS diff --git a/testenv/Test-503.py b/testenv/Test-503.py old mode 100644 new mode 100755 index 7f1c3c8..0e180c2 --- a/testenv/Test-503.py +++ b/testenv/Test-503.py @@ -5,36 +5,36 @@ from misc.wget_file import WgetFile """ This test ensures that Wget handles a 503 Service Unavailable response - correctly. + correctly. """ TEST_NAME = "503 Service Unavailable" ############# File Definitions ############################################### File1 = """All happy families are alike; Each unhappy family is unhappy in its own way""" -File2 = "Anyone for chocochip cookies?" + File1_rules = { + "Response" : 503 } A_File = WgetFile ("File1", File1, rules=File1_rules) -B_File = WgetFile ("File2", File2) Request_List = [ [ - "GET /File1", - "GET /File2", + "GET /File1" + ] ] -WGET_OPTIONS = "--tries=2" -WGET_URLS = [["File1", "File2"]] +WGET_OPTIONS = " " +WGET_URLS = [["File1"]] -Files = [[A_File, B_File]] +Files = [[A_File]] ExpectedReturnCode = 8 -ExpectedDownloadedFiles = [B_File] +ExpectedDownloadedFiles = [] ################ Pre and Post Test Hooks ##################################### pre_test = { -- 1.9.1 Thank you so much for great response and guidance :-) . Regards, Satyam Zode PICT , Pune
