| id:"get_top250_4th_movie" | |
| name :"Douban Search Task - 4th movie in the Douban Top250 movie list" | |
| description :"Search the 4th movie's name in the Douban Top250 movie list" | |
| reset_steps: { | |
| adb_call: { | |
| force_stop: { | |
| package_name: "com.douban.frodo" | |
| } | |
| } | |
| } | |
| reset_steps: { | |
| success_condition: { | |
| num_retries: 10 | |
| wait_for_app_screen: { | |
| app_screen: { | |
| activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" | |
| } | |
| timeout_sec: 10.0 | |
| } | |
| } | |
| adb_call: { | |
| start_activity: { | |
| full_activity: "com.douban.frodo/com.douban.frodo.activity.SplashActivity" | |
| } | |
| } | |
| } | |
| expected_app_screen: { | |
| } | |
| max_num_steps: 5000 | |
| event_sources: { | |
| text_detect: { | |
| expect: "同城" | |
| rect: { | |
| x0: 0 | |
| y0: 0.10 | |
| x1: 1 | |
| y1: 0.15 | |
| } | |
| } | |
| id: 1 | |
| } | |
| event_sources: { | |
| text_detect: { | |
| expect: "年度电影榜单" | |
| rect: { | |
| x0: 0 | |
| y0: 0.48 | |
| x1: 0.33 | |
| y1: 0.54 | |
| } | |
| } | |
| id: 2 | |
| } | |
| event_sources: { | |
| view_hierarchy_event: { | |
| selector: '."android.view.View"' | |
| properties: { | |
| property_name: "left" | |
| sign:EQ | |
| integer:278 | |
| } | |
| properties: { | |
| property_name: "text" | |
| pattern:"豆瓣电影 Top250" | |
| } | |
| } | |
| id: 3 | |
| } | |
| event_sources: { | |
| text_detect: { | |
| expect: "肖申克的救赎" | |
| rect: { | |
| x0: 0.075 | |
| y0: 0.70 | |
| x1: 0.37 | |
| y1: 0.75 | |
| } | |
| } | |
| id: 4 | |
| } | |
| event_sources:{ | |
| response_event: { | |
| mode: REGEX | |
| pattern: '\\b泰坦尼克号\\b' | |
| } | |
| id: 7 | |
| } | |
| event_slots:{ | |
| reward_listener:{ | |
| type:OR | |
| events:{ | |
| event:{ | |
| type:OR | |
| id:8 | |
| events:{ | |
| id:1 | |
| } | |
| events:{ | |
| id:1 | |
| } | |
| transformation:"y=1" | |
| } | |
| } | |
| events:{ | |
| event:{ | |
| type:OR | |
| id:9 | |
| events:{ | |
| id:2 | |
| } | |
| transformation:"y=1" | |
| } | |
| } | |
| events:{ | |
| event:{ | |
| type:OR | |
| id:10 | |
| events:{ | |
| id:3 | |
| } | |
| events:{ | |
| id:4 | |
| } | |
| transformation:"y=1" | |
| } | |
| } | |
| } | |
| episode_end_listener: { | |
| events: { | |
| id: 7 | |
| } | |
| transformation: "y = True" | |
| } | |
| instruction_listener: { | |
| type: OR | |
| events: { | |
| event: { | |
| events: { | |
| id: 8 | |
| } | |
| transformation: "y=[\'Then you should find the 榜单\']" | |
| } | |
| } | |
| events: { | |
| event: { | |
| events: { | |
| id: 10 | |
| } | |
| transformation: "y=[\'Well done! Explore this page by scrolling and return the name of the 4th movie \']" | |
| } | |
| } | |
| events: { | |
| event: { | |
| events: { | |
| id: 9 | |
| } | |
| transformation: "y=[\'Good job, in this page, find the top250电影榜 and get in\']" | |
| } | |
| } | |
| } | |
| } | |
| command: "Tell me the 4th movie in the 豆瓣Top250 movies list. Hint: You should click the 书影音 first" | |
| vocabulary: [] | |