test

Posted 燕平

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了test相关的知识,希望对你有一定的参考价值。

Import Product#1 可配置产品

POST:
https://www.catchupdeals.com/...

form:

product_name: Cotton Casual Dresses
product_id: e9f37e28-ddb8-4324-a1e8-73715310eff1
product_url: www.favorgirl.com/products/cotton-casual-dresses_vypx?variant=97e3cbc4-e989-46db-b533-a54d9c55b26a
price: 27.99
meta_title: cotton-casual-dresses_vypx
meta_description:
meta_keyword: DRESSES,002,niceu
description: <p>SPU:3UD16DR3Q352C</p><p>Sleeve Type:Sleeveless</p><p>Material:Cotton-blend,Denim</p><p>Neckline:Round Neck</p><p>Style:Casual</p><p>Theme:Summer</p><p>Color:Blue</p><p>Size:S,M,L,XL,XXL,3XL</p><p><strong>Size Chart</strong></p><figure class="table"><table><tbody><tr><td rowspan="2">Size</td><td colspan="2">Outside Shoulder&nbsp;</td><td colspan="2">Inside Shoulder&nbsp;</td><td colspan="2">Outside Length&nbsp;</td><td colspan="2">Inside Length&nbsp;</td><td colspan="2">Outside Bust&nbsp;</td><td colspan="2">Inside Bust&nbsp;</td><td colspan="2">Shoulder&nbsp;</td><td colspan="2">Length&nbsp;</td><td colspan="2">Waist&nbsp;</td><td colspan="2">Bust&nbsp;</td></tr><tr><td>cm</td><td>inch</td><td>cm</td><td>inch</td><td>cm</td><td>inch</td><td>cm</td><td>inch</td><td>cm</td><td>inch</td><td>cm</td><td>inch</td><td>cm</td><td>inch</td><td>cm</td><td>inch</td><td>cm</td><td>inch</td><td>cm</td><td>inch</td></tr><tr><td>S</td><td>33.2</td><td>13.1</td><td>32.2</td><td>12.7</td><td>98</td><td>38.6</td><td>103</td><td>40.6</td><td>94</td><td>37</td><td>90</td><td>35.4</td><td>48.7</td><td>19.2</td><td>103</td><td>40.6</td><td>103</td><td>40.6</td><td>103</td><td>40.6</td></tr><tr><td>M</td><td>34.5</td><td>13.6</td><td>33.5</td><td>13.2</td><td>100</td><td>39.4</td><td>105</td><td>41.3</td><td>99</td><td>39</td><td>95</td><td>37.4</td><td>50</td><td>19.7</td><td>105</td><td>41.3</td><td>108</td><td>42.5</td><td>108</td><td>42.5</td></tr><tr><td>L</td><td>35.8</td><td>14.1</td><td>34.8</td><td>13.7</td><td>102</td><td>40.2</td><td>107</td><td>42.1</td><td>104</td><td>40.9</td><td>100</td><td>39.4</td><td>51.3</td><td>20.2</td><td>107</td><td>42.1</td><td>113</td><td>44.5</td><td>113</td><td>44.5</td></tr><tr><td>XL</td><td>37.1</td><td>14.6</td><td>36.1</td><td>14.2</td><td>104</td><td>40.9</td><td>109</td><td>42.9</td><td>109</td><td>42.9</td><td>105</td><td>41.3</td><td>52.6</td><td>20.7</td><td>109</td><td>42.9</td><td>118</td><td>46.5</td><td>118</td><td>46.5</td></tr><tr><td>XXL</td><td>38.4</td><td>15.1</td><td>37.4</td><td>14.7</td><td>106</td><td>41.7</td><td>111</td><td>43.7</td><td>114</td><td>44.9</td><td>110</td><td>43.3</td><td>53.9</td><td>21.2</td><td>111</td><td>43.7</td><td>123</td><td>48.4</td><td>123</td><td>48.4</td></tr><tr><td>3XL</td><td>39.7</td><td>15.6</td><td>38.7</td><td>15.2</td><td>108</td><td>42.5</td><td>113</td><td>44.5</td><td>119</td><td>46.9</td><td>115</td><td>45.3</td><td>55.2</td><td>21.7</td><td>113</td><td>44.5</td><td>128</td><td>50.4</td><td>128</td><td>50.4</td></tr></tbody></table></figure>
currency: USD
imageThumbArr[]: https://img.staticdj.com/98c23791639a4970f01b00292ba2a0ff.jpeg
imageThumbArr[]: https://img.staticdj.com/325172f6f48acf84c6a3c933476fc89c.jpeg
imageThumbArr[]: https://img.staticdj.com/382a95e3eb2d21fc43df1dead23577ba.jpeg
description_url:
superAttr[0][attr_id]: 9ef6d4f6-caa6-42e4-9db3-7d6d7b1908be
superAttr[0][title]: color:
superAttr[0][value][0][name]: Blue
superAttr[0][value][0][optionid]: Blue
superAttr[0][value][0][img]:
superAttr[1][attr_id]: e2ed5330-5283-4f7e-be8d-1b5f10053e28
superAttr[1][title]: size:
superAttr[1][value][0][name]: S
superAttr[1][value][0][optionid]: S
superAttr[1][value][0][img]:
superAttr[1][value][1][name]: M
superAttr[1][value][1][optionid]: M
superAttr[1][value][1][img]:
superAttr[1][value][2][name]: L
superAttr[1][value][2][optionid]: L
superAttr[1][value][2][img]:
superAttr[1][value][3][name]: XL
superAttr[1][value][3][optionid]: XL
superAttr[1][value][3][img]:
superAttr[1][value][4][name]: XXL
superAttr[1][value][4][optionid]: XXL
superAttr[1][value][4][img]:
superAttr[1][value][5][name]: 3XL
superAttr[1][value][5][optionid]: 3XL
superAttr[1][value][5][img]:

返回 product_id=4775

Import Variation 其中之一

GET:
https://www.catchupdeals.com/...

query:

product_id: 4775
customOption[comb]: Blue_S_97e3cbc4-e989-46db-b533-a54d9c55b26a
customOption[price]: 27.99
customOption[text]: Blue_S
customOption[img]: https://img.staticdj.com/98c23791639a4970f01b00292ba2a0ff.jpeg

Assign Associated Product

GET:
https://www.catchupdeals.com/...

query:

product_id: 4775
super_attr[0][attr_id]: 9ef6d4f6-caa6-42e4-9db3-7d6d7b1908be
super_attr[0][title]: color:
super_attr[0][value][0][name]: Blue
super_attr[0][value][0][optionid]: Blue
super_attr[0][value][0][img]:
super_attr[1][attr_id]: e2ed5330-5283-4f7e-be8d-1b5f10053e28
super_attr[1][title]: size:
super_attr[1][value][0][name]: S
super_attr[1][value][0][optionid]: S
super_attr[1][value][0][img]:
super_attr[1][value][1][name]: M
super_attr[1][value][1][optionid]: M
super_attr[1][value][1][img]:
super_attr[1][value][2][name]: L
super_attr[1][value][2][optionid]: L
super_attr[1][value][2][img]:
super_attr[1][value][3][name]: XL
super_attr[1][value][3][optionid]: XL
super_attr[1][value][3][img]:
super_attr[1][value][4][name]: XXL
super_attr[1][value][4][optionid]: XXL
super_attr[1][value][4][img]:
super_attr[1][value][5][name]: 3XL
super_attr[1][value][5][optionid]: 3XL
super_attr[1][value][5][img]:

Import Product#1 简单产品

POST:
https://www.catchupdeals.com/...

form:

product_name: 2Pcs MK7 MK8 Extruder Gear 26 Tooth Brass Drive Gear For 3D Printer Motor Stepper
product_id: 6549512454332
product_url: thejgmaker.com/products/2pcs-mk7-mk8-extruder-gear-26-tooth-brass-drive-gear-for-3d-printer-motor-stepper
price: 9.99
meta_title: 2pcs-mk7-mk8-extruder-gear-26-tooth-brass-drive-gear-for-3d-printer-motor-stepper
meta_description:
meta_keyword: Accessory, Extruder & Nozzles
description: <p>2Pcs MK7 MK8 Extruder Gear 26 Tooth Brass Drive Gear For 3D Printer Motor Stepper</p><figure class="image"><img src="https://ueeshop.ly200-cdn.com/u_file/UPAN/UPAN463/2008/photo/066c8af561.jpg"></figure>
currency: USD
imageThumbArr[]: https://cdn.shopifycdn.net/s/files/1/0549/9787/6924/products/3de60cce98.jpg.640x640.jpg
description_url:
superAttr[0][attr_id]: 8420428677308
superAttr[0][title]: Title:
superAttr[0][value][0][name]: Default Title
superAttr[0][value][0][optionid]: Default Title
superAttr[0][value][0][img]:

返回 product_id=4793

Import Variation 应该没有这个

GET:
https://www.catchupdeals.com/...

query:

product_id: 4793
customOption[comb]: Default Title_39294326931644
customOption[price]: 9.99
customOption[text]: Default Title
customOption[img]:

以上是关于test的主要内容,如果未能解决你的问题,请参考以下文章

webstorm代码片段的创建

json [test snippet]这是一个测试片段#test

java代码在片段活动中不起作用

csharp c#test片段

这两个代码片段之间有区别吗?如果有,那又如何? [复制]

片段中ListView的setOnItemClickListener