The etest module currently has all the TestContext implementations SDK, Image, SDKExt, the refactor needs to take into account don't depend on BItbake datastore. A proposal will be to have one module per implementation of TestContext.
Also the refactor need to standardize in some how the command line handling, i mean is a must to execute the TestContext module in command line. For example: $ ./runtime_test_conext.py --help
Series merge at, http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=6cea270c544ceb14cbd44f4e5f4e51c3a3dcb143
oeqa framework used to execute testimage on 2.3 M2rc3 and works correctly https://wiki.yoctoproject.org/wiki/WW06_-_2017-02-03_-_Full_Test_Cycle_2.3_M2_rc3