Beispiel #1
0
 def test_03_ModifyProductInShoppingCart(self):
     print("Modify product in shopping cart Test")
     token = self.token
     url1 = self.url1 = ShoppingCartInterfaces.ModifyProductInShoppingCart_url
     head1 = Fun.merge_Two_Dicts(ShoppingCartInterfaces.header1, token)
     data1 = ShoppingCartInterfaces.data3
     data1_1 = json.dumps(data1)
     Fun.post_url(url=url1, data=data1_1, headers=head1)
Beispiel #2
0
 def test_04_BrowseTheItemsInTheShoppingCart(self):
     print("Browse the items in the shopping cart Test")
     token = self.token
     url1 = self.url1 = ShoppingCartInterfaces.BrowseTheItemsInTheShoppingCart_url
     head1 = Fun.merge_Two_Dicts(ShoppingCartInterfaces.header1, token)
     data1 = ShoppingCartInterfaces.data4
     data1_1 = json.dumps(data1)
     Fun.post_url(url=url1, data=data1_1, headers=head1)
Beispiel #3
0
 def test_01_AddToCart(self):
     print("Add to shopping cart Test")
     token = self.token
     url1 = self.url1 = ShoppingCartInterfaces.AddToCart_url
     head1 = Fun.merge_Two_Dicts(ShoppingCartInterfaces.header1, token)
     data1 = ShoppingCartInterfaces.data1
     data1_1 = json.dumps(data1)
     Fun.post_url(url=url1, data=data1_1, headers=head1)
Beispiel #4
0
 def test_02_DeleteItemsInShoppingCart(self):
     print("Delete items in shopping cart Test")
     token = self.token
     url1 = self.url1 = ShoppingCartInterfaces.DeleteItemsInShoppingCart_url
     head1 = Fun.merge_Two_Dicts(ShoppingCartInterfaces.header1, token)
     data1 = ShoppingCartInterfaces.data2
     data1_1 = json.dumps(data1)
     Fun.post_url(url=url1, data=data1_1, headers=head1)
Beispiel #5
0
 def test_4_getSearchRecipe(self):
     print("get Search Recipe Test")
     token = self.token
     url1 = self.url1 = Recipe_Interfaces.getSearchRecipe_url
     head1 = Fun.merge_Two_Dicts(Recipe_Interfaces.header1, token)
     data1 = Recipe_Interfaces.data4
     data1_1 = json.dumps(data1)
     Fun.post_url(url=url1, data=data1_1, headers=head1)
Beispiel #6
0
 def test_5_getRecipeDetails(self):
     print("Get recipe details Test")
     token = self.token
     url1 = self.url1 = Recipe_Interfaces.GetRecipeDetails_url
     head1 = Fun.merge_Two_Dicts(Recipe_Interfaces.header1, token)
     data1 = Recipe_Interfaces.data5
     data1_1 = json.dumps(data1)
     Fun.post_url(url=url1, data=data1_1, headers=head1)
Beispiel #7
0
 def test_3_GetRecipeList(self):
     print("Get Recipe List Test")
     token = self.token
     url1 = self.url1 = Recipe_Interfaces.getRecipeList_url
     head1 = Fun.merge_Two_Dicts(Recipe_Interfaces.header1, token)
     data1 = Recipe_Interfaces.data3
     data1_1 = json.dumps(data1)
     Fun.post_url(url=url1, data=data1_1, headers=head1)
Beispiel #8
0
 def test_2_GetRecipeHotCatalogs(self):
     print("get Recipe Hot Catalogs Test")
     token = self.token
     url1 = self.url1 = Recipe_Interfaces.getRecipeHotCatalogs_url
     head1 = Fun.merge_Two_Dicts(Recipe_Interfaces.header1, token)
     data1 = Recipe_Interfaces.data1
     data1_1 = json.dumps(data1)
     Fun.post_url(url=url1, data=data1_1, headers=head1)
Beispiel #9
0
 def test_06_getSeasonIngredientList(self):
     print("get Season Ingredient List Test")
     token = self.token
     url1 = self.url1 = Recipe_Interfaces.getSeasonIngredientList_url
     head1 = Fun.merge_Two_Dicts(Recipe_Interfaces.header1, token)
     data1 = Recipe_Interfaces.data6
     data1_1 = json.dumps(data1)
     Fun.post_url(url=url1, data=data1_1, headers=head1)
Beispiel #10
0
 def test_15_delCollect(self):
     print("del Collect Test")
     token = self.token
     url1 = self.url1 = Recipe_Interfaces.delCollect_url
     head1 = Fun.merge_Two_Dicts(Recipe_Interfaces.header1, token)
     data1 = Recipe_Interfaces.data15
     data1_1 = json.dumps(data1)
     Fun.post_url(url=url1, data=data1_1, headers=head1)
Beispiel #11
0
 def test_12_getRecipeByIngredients(self):
     print("get Recipe By Ingredients Test")
     token = self.token
     url1 = self.url1 = Recipe_Interfaces.getRecipeByIngredients_url
     head1 = Fun.merge_Two_Dicts(Recipe_Interfaces.header1, token)
     data1 = Recipe_Interfaces.data12
     data1_1 = json.dumps(data1)
     Fun.post_url(url=url1, data=data1_1, headers=head1)
Beispiel #12
0
 def test_1_IPLocationInterface(self):
     print("IP Location Interface Test")
     token = self.token
     self.url1 = BasicSupport_Element.IPLocation_url
     head1_1 = Fun.merge_Two_Dicts(BasicSupport_Element.header1, token)
     Fun.post_url(self.url1, data={}, headers=head1_1)