apache / incubator-weex

Apache Weex (Incubating)
https://weex.apache.org
Apache License 2.0
13.75k stars 1.82k forks source link

Weex automated testing problem #2505

Open yejunrong opened 5 years ago

yejunrong commented 5 years ago

https://weex.apache.org/zh/blog/weex-auto-test-locating.html According to the official website tips, I found that there are more problems. 1, ”new collectIdTask().execute()“ run ”collectId(WXComponent comp, Map<String, String> map) “? 2,"collectIDMap()" When was it executed? 3,"R.id.container_test_id" what is it? 4,"mIDMap" When was this defined? What is the main use?

Can you provide a demo that can run?

thank you!

Kingatnuaa0528 commented 5 years ago

class collectIdTask extends AsyncTask<Integer, Integer, String> { @Override protected void onPreExecute() { super.onPreExecute(); } @Override protected String doInBackground(Integer... params) { try { collectIDMap(); Thread.sleep(1000); }catch (Exception e) {} return "执行完毕"; } @Override protected void onProgressUpdate(Integer... progress) { super.onProgressUpdate(progress); } @Override protected void onPostExecute(String result) { mWXHandler.sendEmptyMessage(1); //Log.d("main", "== sendMessage =="); super.onPostExecute(result); } }