You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-08-15 20:13:31 +02:00
Преобразование OPI -> OInt (workflow)
This commit is contained in:
committed by
Vitaly the Alpaca (bot)
parent
f516acf287
commit
91b935c2c3
@@ -500,7 +500,7 @@ Procedure VKAPI_CreateAdCampaign() Export
|
|||||||
|
|
||||||
Parameters = GetVKParameters();
|
Parameters = GetVKParameters();
|
||||||
CabinetID = OPI_TestDataRetrieval.GetParameter("VK_AdsCabinetID");
|
CabinetID = OPI_TestDataRetrieval.GetParameter("VK_AdsCabinetID");
|
||||||
Name = "Testоinая реtoлама";
|
Name = "";
|
||||||
TypeMatch = Type("Map");
|
TypeMatch = Type("Map");
|
||||||
TypeNumber = Type("Number");
|
TypeNumber = Type("Number");
|
||||||
Response_ = "response";
|
Response_ = "response";
|
||||||
@@ -709,16 +709,16 @@ Procedure VKAPI_CreateProductWithProperties() Export
|
|||||||
TypeNumber = Type("Number");
|
TypeNumber = Type("Number");
|
||||||
MII_ = "market_item_id";
|
MII_ = "market_item_id";
|
||||||
Response_ = "response";
|
Response_ = "response";
|
||||||
Yellow_ = "Yellow";
|
= "Yellow";
|
||||||
Red_ = "Red";
|
= "Red";
|
||||||
Image = OPI_TestDataRetrieval.GetBinary("Picture");
|
Image = OPI_TestDataRetrieval.GetBinary("Picture");
|
||||||
AndVF = GetTempFileName("png");
|
AndVF = GetTempFileName("png");
|
||||||
Image.Write(AndVF);
|
Image.Write(AndVF);
|
||||||
|
|
||||||
OptionArray = New Array;
|
OptionArray = New Array;
|
||||||
OptionArray.Add(Yellow_);
|
OptionArray.Add();
|
||||||
OptionArray.Add("Blue");
|
OptionArray.Add("Blue");
|
||||||
OptionArray.Add(Red_);
|
OptionArray.Add();
|
||||||
|
|
||||||
Result = OPI_VK.CreateProductProperty("Color", Parameters);
|
Result = OPI_VK.CreateProductProperty("Color", Parameters);
|
||||||
|
|
||||||
@@ -772,7 +772,7 @@ Procedure VKAPI_CreateProductWithProperties() Export
|
|||||||
ImageArray.Add(Image);
|
ImageArray.Add(Image);
|
||||||
|
|
||||||
Product = New Map();
|
Product = New Map();
|
||||||
Product.Insert("Name" , "TestProduct (" + Yellow_ + ")");
|
Product.Insert("Name" , "TestProduct (" + + ")");
|
||||||
Product.Insert("Description" , "Product description");
|
Product.Insert("Description" , "Product description");
|
||||||
Product.Insert("Category" , "20173");
|
Product.Insert("Category" , "20173");
|
||||||
Product.Insert("Price" , 1);
|
Product.Insert("Price" , 1);
|
||||||
@@ -788,7 +788,7 @@ Procedure VKAPI_CreateProductWithProperties() Export
|
|||||||
Product.Insert("Weight" , 100);
|
Product.Insert("Weight" , 100);
|
||||||
Product.Insert("SKU" , 12345);
|
Product.Insert("SKU" , 12345);
|
||||||
Product.Insert("AvailableBalance" , "10");
|
Product.Insert("AvailableBalance" , "10");
|
||||||
Product.Insert("PropertyValues" , PropertyMatch[Yellow_]);
|
Product.Insert("PropertyValues" , PropertyMatch[]);
|
||||||
|
|
||||||
Result = OPI_VK.AddProduct(Product, , Parameters); // Adding product
|
Result = OPI_VK.AddProduct(Product, , Parameters); // Adding product
|
||||||
|
|
||||||
@@ -801,8 +801,8 @@ Procedure VKAPI_CreateProductWithProperties() Export
|
|||||||
OPI_TestDataRetrieval.ExpectsThat(Result).ИмеетТип(TypeMatch);
|
OPI_TestDataRetrieval.ExpectsThat(Result).ИмеетТип(TypeMatch);
|
||||||
OPI_TestDataRetrieval.ExpectsThat(Result[Response_][MII_]).ИмеетТип(TypeNumber).Заполнено();
|
OPI_TestDataRetrieval.ExpectsThat(Result[Response_][MII_]).ИмеетТип(TypeNumber).Заполнено();
|
||||||
|
|
||||||
Product.Insert("Name" , "TestProduct (" + Red_ + ")");
|
Product.Insert("Name" , "TestProduct (" + + ")");
|
||||||
Product.Insert("PropertyValues", PropertyMatch[Red_]);
|
Product.Insert("PropertyValues", PropertyMatch[]);
|
||||||
|
|
||||||
Result = OPI_VK.AddProduct(Product, , Parameters); // Adding product
|
Result = OPI_VK.AddProduct(Product, , Parameters); // Adding product
|
||||||
|
|
||||||
@@ -1955,7 +1955,7 @@ Procedure GT_CreateTable() Export
|
|||||||
OPI_TestDataRetrieval.WriteParameter("GS_Spreadsheet", Book);
|
OPI_TestDataRetrieval.WriteParameter("GS_Spreadsheet", Book);
|
||||||
OPI_TestDataRetrieval.WriteParameter("GS_Sheet" , Sheet);
|
OPI_TestDataRetrieval.WriteParameter("GS_Sheet" , Sheet);
|
||||||
|
|
||||||
Name = "TestTable (add.)";
|
Name = ".)";
|
||||||
Result = OPI_GoogleSheets.CreateBook(Token, Name, SheetArray);
|
Result = OPI_GoogleSheets.CreateBook(Token, Name, SheetArray);
|
||||||
|
|
||||||
OPI_TestDataRetrieval.WriteLog(Result, "CopySheet (add.)");
|
OPI_TestDataRetrieval.WriteLog(Result, "CopySheet (add.)");
|
||||||
|
@@ -53,7 +53,7 @@ EndFunction
|
|||||||
Function Hash(BinaryData, Type) Export
|
Function Hash(BinaryData, Type) Export
|
||||||
|
|
||||||
Hashing = New DataHashing(Type);
|
Hashing = New DataHashing(Type);
|
||||||
Hashing.Add(BinaryData);
|
Hashing.Append(BinaryData);
|
||||||
|
|
||||||
Return Hashing.HashSum;
|
Return Hashing.HashSum;
|
||||||
|
|
||||||
|
@@ -53,7 +53,7 @@ EndFunction
|
|||||||
Function Hash(BinaryData, Type) Export
|
Function Hash(BinaryData, Type) Export
|
||||||
|
|
||||||
Hashing = New DataHashing(Type);
|
Hashing = New DataHashing(Type);
|
||||||
Hashing.Add(BinaryData);
|
Hashing.Append(BinaryData);
|
||||||
|
|
||||||
Return Hashing.HashSum;
|
Return Hashing.HashSum;
|
||||||
|
|
||||||
|
@@ -500,7 +500,7 @@ Procedure VKAPI_CreateAdCampaign() Export
|
|||||||
|
|
||||||
Parameters = GetVKParameters();
|
Parameters = GetVKParameters();
|
||||||
CabinetID = OPI_TestDataRetrieval.GetParameter("VK_AdsCabinetID");
|
CabinetID = OPI_TestDataRetrieval.GetParameter("VK_AdsCabinetID");
|
||||||
Name = "Testоinая реtoлама";
|
Name = "";
|
||||||
TypeMatch = Type("Map");
|
TypeMatch = Type("Map");
|
||||||
TypeNumber = Type("Number");
|
TypeNumber = Type("Number");
|
||||||
Response_ = "response";
|
Response_ = "response";
|
||||||
@@ -709,16 +709,16 @@ Procedure VKAPI_CreateProductWithProperties() Export
|
|||||||
TypeNumber = Type("Number");
|
TypeNumber = Type("Number");
|
||||||
MII_ = "market_item_id";
|
MII_ = "market_item_id";
|
||||||
Response_ = "response";
|
Response_ = "response";
|
||||||
Yellow_ = "Yellow";
|
= "Yellow";
|
||||||
Red_ = "Red";
|
= "Red";
|
||||||
Image = OPI_TestDataRetrieval.GetBinary("Picture");
|
Image = OPI_TestDataRetrieval.GetBinary("Picture");
|
||||||
AndVF = GetTempFileName("png");
|
AndVF = GetTempFileName("png");
|
||||||
Image.Write(AndVF);
|
Image.Write(AndVF);
|
||||||
|
|
||||||
OptionArray = New Array;
|
OptionArray = New Array;
|
||||||
OptionArray.Add(Yellow_);
|
OptionArray.Add();
|
||||||
OptionArray.Add("Blue");
|
OptionArray.Add("Blue");
|
||||||
OptionArray.Add(Red_);
|
OptionArray.Add();
|
||||||
|
|
||||||
Result = OPI_VK.CreateProductProperty("Color", Parameters);
|
Result = OPI_VK.CreateProductProperty("Color", Parameters);
|
||||||
|
|
||||||
@@ -772,7 +772,7 @@ Procedure VKAPI_CreateProductWithProperties() Export
|
|||||||
ImageArray.Add(Image);
|
ImageArray.Add(Image);
|
||||||
|
|
||||||
Product = New Map();
|
Product = New Map();
|
||||||
Product.Insert("Name" , "TestProduct (" + Yellow_ + ")");
|
Product.Insert("Name" , "TestProduct (" + + ")");
|
||||||
Product.Insert("Description" , "Product description");
|
Product.Insert("Description" , "Product description");
|
||||||
Product.Insert("Category" , "20173");
|
Product.Insert("Category" , "20173");
|
||||||
Product.Insert("Price" , 1);
|
Product.Insert("Price" , 1);
|
||||||
@@ -788,7 +788,7 @@ Procedure VKAPI_CreateProductWithProperties() Export
|
|||||||
Product.Insert("Weight" , 100);
|
Product.Insert("Weight" , 100);
|
||||||
Product.Insert("SKU" , 12345);
|
Product.Insert("SKU" , 12345);
|
||||||
Product.Insert("AvailableBalance" , "10");
|
Product.Insert("AvailableBalance" , "10");
|
||||||
Product.Insert("PropertyValues" , PropertyMatch[Yellow_]);
|
Product.Insert("PropertyValues" , PropertyMatch[]);
|
||||||
|
|
||||||
Result = OPI_VK.AddProduct(Product, , Parameters); // Adding product
|
Result = OPI_VK.AddProduct(Product, , Parameters); // Adding product
|
||||||
|
|
||||||
@@ -801,8 +801,8 @@ Procedure VKAPI_CreateProductWithProperties() Export
|
|||||||
OPI_TestDataRetrieval.ExpectsThat(Result).ИмеетТип(TypeMatch);
|
OPI_TestDataRetrieval.ExpectsThat(Result).ИмеетТип(TypeMatch);
|
||||||
OPI_TestDataRetrieval.ExpectsThat(Result[Response_][MII_]).ИмеетТип(TypeNumber).Заполнено();
|
OPI_TestDataRetrieval.ExpectsThat(Result[Response_][MII_]).ИмеетТип(TypeNumber).Заполнено();
|
||||||
|
|
||||||
Product.Insert("Name" , "TestProduct (" + Red_ + ")");
|
Product.Insert("Name" , "TestProduct (" + + ")");
|
||||||
Product.Insert("PropertyValues", PropertyMatch[Red_]);
|
Product.Insert("PropertyValues", PropertyMatch[]);
|
||||||
|
|
||||||
Result = OPI_VK.AddProduct(Product, , Parameters); // Adding product
|
Result = OPI_VK.AddProduct(Product, , Parameters); // Adding product
|
||||||
|
|
||||||
@@ -1173,7 +1173,7 @@ Procedure YDisk_MoveObject() Export
|
|||||||
|
|
||||||
Result = OPI_YandexDisk.UploadFileByURL(Token, OriginalPath, URL);
|
Result = OPI_YandexDisk.UploadFileByURL(Token, OriginalPath, URL);
|
||||||
|
|
||||||
// !OInt OPI_TestDataRetrieval.WriteLog(Result, "UploadFileToURL");
|
// ");
|
||||||
|
|
||||||
OPI_Tools.Pause(15);
|
OPI_Tools.Pause(15);
|
||||||
|
|
||||||
@@ -1955,10 +1955,10 @@ Procedure GT_CreateTable() Export
|
|||||||
OPI_TestDataRetrieval.WriteParameter("GS_Spreadsheet", Book);
|
OPI_TestDataRetrieval.WriteParameter("GS_Spreadsheet", Book);
|
||||||
OPI_TestDataRetrieval.WriteParameter("GS_Sheet" , Sheet);
|
OPI_TestDataRetrieval.WriteParameter("GS_Sheet" , Sheet);
|
||||||
|
|
||||||
Name = "TestTable (add.)";
|
Name = ".)";
|
||||||
Result = OPI_GoogleSheets.CreateBook(Token, Name, SheetArray);
|
Result = OPI_GoogleSheets.CreateBook(Token, Name, SheetArray);
|
||||||
|
|
||||||
// !OInt OPI_TestDataRetrieval.WriteLog(Result, "CopySheet (add.)");
|
// .)");
|
||||||
|
|
||||||
Book2 = Result["spreadsheetId"];
|
Book2 = Result["spreadsheetId"];
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user