Example #1
0
def run(line):
    if line[3] == 'post':
        Http.post(line[4], line[5])
        return
    if line[3] == 'addheader':
        Http.add_header(line[4], line[5])
        return
    if line[3] == 'assertequals':
        Http.assert_equals(line[4], line[5])
        return
    if line[3] == 'savajson':
        Http.saveJson(line[4], line[5])
        return
    if line[3] == 'seturl':
        Http.seturl(line[4])
        return
Example #2
0
 def run(line):
     if line[3]=='post':
         Http.api_request('post',line[4],line[5])
         return
     if line[3]=='get':
         Http.api_request('get',line[4],line[5])
         return
     if line[3]=='put':
         Http.api_request('put',line[4],line[5])
         return
         return
     if line[3]=='delete':
         Http.api_request('delete',line[4],line[5])
         return
     if line[3]=='addheader':
         Http.add_header(line[4],line[5])
         return
     if line[3]=='assertequals':
         Http.assert_equals(line[4],line[5])
         return
     if line[3]=='savejson':
         Http.saveJson(line[4],line[5])
         return
     if  line[3]=='seturl':
         Http.seturl(line[4])
         return
     if  line[3]=='settimeout':
         Http.settimeout(line[4])
         return
     if  line[3]=='addparam':
         Http.add_param(line[4],line[5])
         return
     if  line[3]=='removeheader':
         Http.remove_header(line[4])
         return
Example #3
0
    def setUp(self):
        self.parentPath = os.path.join(os.getcwd(), 'data');
        self.param = Param.Param(self)

        self.http = Http.Http(self)