|
id: "elemo_order_food_easy" |
|
name: "Ele.me Order Food Task" |
|
description: "A task to order food from a restaurant on Ele.me app. Includes selecting a restaurant, choosing food items, checking out, and submitting the order." |
|
setup_steps: { |
|
adb_call: { |
|
rotate: { |
|
orientation: PORTRAIT_0 |
|
} |
|
} |
|
} |
|
|
|
reset_steps: { |
|
adb_call: { |
|
force_stop: { |
|
package_name: "me.ele" |
|
} |
|
} |
|
} |
|
|
|
reset_steps: { |
|
success_condition: { |
|
num_retries: 3 |
|
wait_for_app_screen: { |
|
app_screen: { |
|
activity: "me.ele/me.ele.Launcher" |
|
} |
|
timeout_sec: 10.0 |
|
} |
|
} |
|
adb_call: { |
|
start_activity: { |
|
full_activity: "me.ele/me.ele.Launcher" |
|
} |
|
} |
|
} |
|
|
|
expected_app_screen: { |
|
|
|
} |
|
|
|
max_num_steps: 5000 |
|
|
|
event_sources: { |
|
id: 1 |
|
view_hierarchy_event: { |
|
selector: '#"me.ele:id/home_bottom_tab_message_text"' |
|
properties: { |
|
property_name: "text" |
|
pattern: "消息" |
|
} |
|
} |
|
} |
|
event_sources: { |
|
id: 2 |
|
view_hierarchy_event: { |
|
selector: '#"me.ele:id/home_bottom_tab_3_text"' |
|
properties: { |
|
property_name: "text" |
|
pattern: "购物车" |
|
} |
|
} |
|
} |
|
event_sources: { |
|
id: 3 |
|
view_hierarchy_event: { |
|
selector: '#"me.ele:id/home_bottom_tab_4_text"' |
|
properties: { |
|
property_name: "text" |
|
pattern: "我的" |
|
} |
|
} |
|
} |
|
event_sources: { |
|
id: 4 |
|
text_detect: { |
|
expect: "消息" |
|
rect: { |
|
x0: 0.4 |
|
y0: 0.9099 |
|
x1: 0.6 |
|
y1: 0.9344 |
|
} |
|
} |
|
} |
|
event_sources: { |
|
id: 5 |
|
text_detect: { |
|
expect: "购物车" |
|
rect: { |
|
x0: 0.6 |
|
y0: 0.9099 |
|
x1: 0.8 |
|
y1: 0.9344 |
|
} |
|
} |
|
} |
|
event_sources: { |
|
id: 6 |
|
text_detect: { |
|
expect: "我的" |
|
rect: { |
|
x0: 0.8 |
|
y0: 0.9099 |
|
x1: 1.0 |
|
y1: 0.9344 |
|
} |
|
} |
|
} |
|
event_sources: { |
|
id: 7 |
|
view_hierarchy_event: { |
|
selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(1) > .android.widget.TextView' |
|
properties: { |
|
property_name: "text" |
|
pattern: "点餐" |
|
} |
|
} |
|
} |
|
event_sources: { |
|
id: 10 |
|
text_recognize: { |
|
expect: "点餐" |
|
rect: { |
|
x0: 0.0306 |
|
y0: 0.1203 |
|
x1: 0.0981 |
|
y1: 0.1490 |
|
} |
|
} |
|
} |
|
|
|
event_sources: { |
|
id: 8 |
|
view_hierarchy_event: { |
|
selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(2) > .android.widget.TextView' |
|
properties: { |
|
property_name: "text" |
|
pattern: "评价" |
|
} |
|
} |
|
} |
|
event_sources: { |
|
id: 11 |
|
text_recognize: { |
|
expect: "评价" |
|
rect: { |
|
x0: 0.2101 |
|
y0: 0.1203 |
|
x1: 0.2833 |
|
y1: 0.1490 |
|
} |
|
} |
|
} |
|
|
|
event_sources: { |
|
id: 9 |
|
view_hierarchy_event: { |
|
selector: '#"me.ele:id/id_magex_mistview" > .android.view.ViewGroup:nth-child(3) > .android.widget.TextView' |
|
properties: { |
|
property_name: "text" |
|
pattern: "品牌" |
|
} |
|
} |
|
} |
|
event_sources: { |
|
id: 12 |
|
text_recognize: { |
|
expect: "品牌" |
|
rect: { |
|
x0: 0.3907 |
|
y0: 0.1203 |
|
x1: 0.4639 |
|
y1: 0.1490 |
|
} |
|
} |
|
} |
|
|
|
event_sources: { |
|
id: 13 |
|
view_hierarchy_event: { |
|
selector: '#"me.ele:id/cart_food_count_view"' |
|
properties: { |
|
property_name: "content-desc" |
|
pattern: "购物车,[0-9]+,件" |
|
} |
|
} |
|
} |
|
event_sources: { |
|
id: 14 |
|
text_recognize: { |
|
expect: "提交" |
|
rect: { |
|
x0: 0 |
|
y0: 0.9255 |
|
x1: 0.9909 |
|
y1: 1.0 |
|
} |
|
} |
|
} |
|
event_sources: { |
|
id: 26 |
|
view_hierarchy_event: { |
|
selector: '#"me.ele:id/title_make_order"' |
|
properties: { |
|
property_name: "text" |
|
pattern: "确认订单" |
|
} |
|
} |
|
} |
|
|
|
event_sources: { |
|
id: 27 |
|
text_recognize: { |
|
expect: "确认订单" |
|
rect: { |
|
x0: 0.412 |
|
y0: 0.059 |
|
x1: 0.587 |
|
y1: 0.093 |
|
} |
|
} |
|
} |
|
|
|
event_sources: { |
|
id: 28 |
|
view_hierarchy_event: { |
|
selector: '#"me.ele:id/title_make_order"' |
|
properties: { |
|
property_name: "text" |
|
pattern: "外卖配送" |
|
} |
|
} |
|
} |
|
|
|
event_sources: { |
|
id: 29 |
|
text_recognize: { |
|
expect: "外卖配送" |
|
rect: { |
|
x0: 0.412 |
|
y0: 0.059 |
|
x1: 0.587 |
|
y1: 0.093 |
|
} |
|
} |
|
} |
|
|
|
|
|
event_sources: { |
|
id: 15 |
|
text_recognize: { |
|
expect: "已优惠" |
|
rect: { |
|
x0: 0 |
|
y0: 0.9255 |
|
x1: 0.9909 |
|
y1: 1.0 |
|
} |
|
} |
|
} |
|
|
|
event_slots: { |
|
reward_listener: { |
|
type: OR |
|
events: { |
|
event: { |
|
type: OR |
|
events: { |
|
event: { |
|
type: AND |
|
events: [ |
|
{ id: 1 }, |
|
{ id: 2 }, |
|
{ id: 3 } |
|
] |
|
transformation: "y = 1" |
|
id: 100 |
|
} |
|
} |
|
events: { |
|
event: { |
|
type: AND |
|
events: [ |
|
{ id: 4 }, |
|
{ id: 5 }, |
|
{ id: 6 } |
|
] |
|
transformation: "y = 1" |
|
id: 101 |
|
} |
|
} |
|
} |
|
} |
|
events: { |
|
event: { |
|
type: OR |
|
events: { |
|
event: { |
|
type: AND |
|
events: [ |
|
{ id: 7 }, |
|
{ id: 8 }, |
|
{ id: 9 } |
|
] |
|
transformation: "y = 1" |
|
id: 102 |
|
} |
|
} |
|
events: { |
|
event: { |
|
type: OR |
|
events: [ |
|
{ id: 10 }, |
|
{ id: 11 }, |
|
{ id: 12 } |
|
] |
|
transformation: "y = 1" |
|
id: 103 |
|
} |
|
} |
|
} |
|
} |
|
events: { |
|
event: { |
|
type: SINGLE |
|
events: [ |
|
{ id: 13 } |
|
] |
|
transformation: "y = 1" |
|
id: 104 |
|
} |
|
} |
|
} |
|
instruction_listener: { |
|
type: OR |
|
events: { |
|
event: { |
|
type: OR |
|
id: 300 |
|
events: [ |
|
{ id: 100 }, |
|
{ id: 101 } |
|
] |
|
transformation: "y = 'Select one store.'" |
|
} |
|
} |
|
events: { |
|
event: { |
|
type: OR |
|
id: 301 |
|
events: [ |
|
{ id: 102 }, |
|
{ id: 103 } |
|
] |
|
transformation: "y = 'Select some food.'" |
|
} |
|
} |
|
} |
|
episode_end_listener: { |
|
type: OR |
|
events: { |
|
id: 104 |
|
} |
|
events: { |
|
id: 26 |
|
} |
|
events: { |
|
id: 28 |
|
} |
|
events: { |
|
id: 29 |
|
} |
|
transformation: "y = True" |
|
} |
|
} |
|
|
|
|
|
|
|
|
|
command: "Help me order takeout.If the app's start page asks you to select an address, please choose Shanghai Jiao Tong University; otherwise, no selection is needed." |
|
|
|
vocabulary: ["start", "navigate", "menu", "select", "items", "cart", "submit", "order"] |
|
|