[webapi] Change the promise cases to auto tests

Impacted tests(approved): new 0, update 0, delete 0
Unit test platform: [Android]
Unit test result summary: pass 4, fail 0, block 0