class AppBasedOnOgl(RenderAppTestBase):
    @classmethod
    def setUpClass(self):
        """
        install apk
        """
        super(AppBasedOnOgl, self).setUpClass()
        self.config = TestConfig()
        cfg_file = 'tests.tablet.artifactory.conf'
        self.case_cfg = 'tests.tablet.gits.conf'
        GitsImpl.setup_enviroment(self.config.read(cfg_file, "content_gits"))

    def setUp(self):
        super(AppBasedOnOgl, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self.gits = GitsImpl()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(AppBasedOnOgl, self).tearDown()
        self.gits.remove_file()

    def test_3DGame_RealSteelHD(self):
        """
        refer TC test_3DGame_RealSteelHD
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'RealSteelHD')
class DeleteOneImage(UIATestBase):
    @classmethod
    def setUpClass(self):
        """
        install apk
        """
        super(DeleteOneImage, self).setUpClass()
        self.config = TestConfig()
        cfg_file = 'tests.tablet.artifactory.conf'
        self.case_cfg = 'tests.tablet.gits.conf'
        GitsImpl.setup_enviroment(self.config.read(cfg_file, "content_gits"))

    def setUp(self):
        super(DeleteOneImage, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self.gits = GitsImpl()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(DeleteOneImage, self).tearDown()
        self.gits.remove_file()

    def test_imagedelete_press_menu_select_photo_delete(self):
        """
        refer TC test_ImageEdit_AddSaturationEffect
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(
            self.case_cfg, 'test_imagedelete_press_menu_select_photo_delete')
class GitsTest(UIATestBase):
    @classmethod
    def setUpClass(self):
        """
        install apk
        """
        super(GitsTest, self).setUpClass()
        config = TestConfig()
        cfg_file = 'tests.tablet.artifactory.conf'
        GitsImpl.setup_enviroment(config.read(cfg_file, "content_gits"))
        case_cfg = 'tests.tablet.imageview.test_rotate_img.conf'
        self.gits = GitsImpl(config.read(case_cfg, "test_rotate"))
        self.gits.remove_file()
        self.gits.setup_stream()

    @classmethod
    def tearDownClass(self):
        """
        uninstall apk
        """
        super(GitsTest, self).tearDownClass()
        self.gits.remove_file()
        self.gits = None

    def setUp(self):
        super(GitsTest, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(GitsTest, self).tearDown()

    def testRotaeImg(self):
        '''
        @summary: test_rotate_img
        '''
        print "[RunTest]: %s" % self.__str__()
        self.gits.replay_stream(self.gits.cfg.get("count"))
        assert self.gits.diff(
            self.gits.basic_screenshot,
            os.path.join(os.path.expanduser("~"),
                         self.gits.cfg.get("screenshot_folder")))
        self.gits.remove_screenshot_in_logdir()
class LiveWallpaper(UIATestBase):
    @classmethod
    def setUpClass(self):
        super(LiveWallpaper, self).setUpClass()
        self.config = TestConfig()
        cfg_file = 'tests.tablet.artifactory.conf'
        self.case_cfg = 'tests.tablet.gits.conf'
        GitsImpl.setup_enviroment(self.config.read(cfg_file, "content_gits"))

    def setUp(self):
        super(LiveWallpaper, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self.gits = GitsImpl()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(LiveWallpaper, self).tearDown()
        self.gits.remove_file()


    def test_LiveWallpaper_BlackHole(self):
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'blackhole')

    def test_LiveWallpaper_Bubble(self):
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'bubble')

    def test_LiveWallpaper_HoloSpiral(self):
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'holospiral')

    def test_LiveWallpaper_PhaseBeam(self):
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'phasebeam')
Exemple #5
0
class Render(RenderAppTestBase):
    @classmethod
    def setUpClass(self):
        """
        init enviroment
        """
        super(Render, self).setUpClass()
        self.config = TestConfig()
        cfg_file = 'tests.tablet.artifactory.conf'
        self.case_cfg = 'tests.tablet.gits.conf'
        GitsImpl.setup_enviroment(self.config.read(cfg_file, "content_gits"))

    def setUp(self):
        super(Render, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self.gits = GitsImpl()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(Render, self).tearDown()
        self.gits.remove_file()

    def test_imageprocessing_anyvalues(self):
        """
        refer TC test_ImageProcessing_AnyValues
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'AnyValues')

    def test_basicrenderscript(self):
        """
        refer TC test_BasicRenderScript
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'BRS')
Exemple #6
0
class Webgl(RenderAppTestBase):
    @classmethod
    def setUpClass(self):
        """
        install apk
        """
        super(Webgl, self).setUpClass()
        self.config = TestConfig()
        cfg_file = 'tests.tablet.artifactory.conf'
        self.case_cfg = 'tests.tablet.webgl.conf'
        GitsImpl.setup_enviroment(self.config.read(cfg_file, "content_gits"))

    def setUp(self):
        super(Webgl, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self.gits = GitsImpl()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(Webgl, self).tearDown()
        self.gits.remove_file()

    def test_WebGL_Performance_ToonShading(self):
        """
        refer TC test_WebGL_Performance_ToonShading
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'webgl_toon_shading')

    def test_webgl_performance_imagesphere(self):
        """
        refer TC test_webgl_performance_imagesphere
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'webgl_imagesphere')

    def test_WebGL_Performance_MultipleViews(self):
        """
        refer TC test_WebGL_Performance_MultipleViews
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'webgl_multiple_views')

    def test_WebGL_Performance_Matrix(self):
        """
        refer TC test_WebGL_Performance_Matrix
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'webgl_performance_matrix')

    def test_webgl_Iceberg(self):
        """
        refer TC test_webgl_Iceberg
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'webgl_iceberg')

    def test_webgl_performance_blob(self):
        """
        refer TC test_webgl_performance_blob
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'webgl_blob')

    def test_WebGL_Performance_Spacerocks(self):
        """
        refer TC test_WebGL_Performance_Spacerocks
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'webgl_performance_spacerocks')

    def test_webgl_performance_fishtank(self):
        """
        refer TC test_webgl_performance_fishtank
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'webgl_fishtank')

    def test_webgl_performance_aquarium(self):
        """
        refer TC test_webgl_performance_aquarium
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'webgl_aquarium')

    def test_webgl_performance_field(self):
        """
        refer TC test_webgl_performance_field
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'webgl_field')

    def test_webgl_performance_dynamiccubemap(self):
        """
        refer TC test_webgl_performance_dynamiccubemap
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'webgl_dynamic_cubemap')

    def test_WebGL_html5code_gallery(self):
        """
        refer TC test_WebGL_html5code_gallery
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'webgl_html5code_gallery')
class Html5(UIATestBase):
    @classmethod
    def setUpClass(self):
        """
        setup enviroment
        """
        super(Html5, self).setUpClass()
        self.config = TestConfig()
        cfg_file = 'tests.tablet.artifactory.conf'
        self.case_cfg = 'tests.tablet.html5.conf'
        GitsImpl.setup_enviroment(self.config.read(cfg_file, "content_gits"))

    def setUp(self):
        super(Html5, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self.gits = GitsImpl()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(Html5, self).tearDown()
        self.gits.remove_file()

    def test_html5demos_canvas(self):
        """
        refer TC test_html5demos_canvas
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'demos_canvas')

    def test_html5performance_html5test(self):
        """
        refer TC test_html5performance_html5test
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'performance_html5test')

    def test_html5_css3_selectors(self):
        """
        refer TC test_html5_css3_selectors
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'css3_selectors')

    def test_html5canvassupport_html5test(self):
        """
        refer TC test_html5canvassupport_html5test
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'canvassupport_html5test')

    def test_html5performance_flyingimages(self):
        """
        refer TC test_html5performance_flyingimages
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'performance_flyingimages')

    def test_html5elements_html5test(self):
        """
        refer TC test_html5elements_html5test
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'elements_html5test')

    def test_asteroidshtml5canvas_2drendering_javascriptbenchmark(self):
        """
        refer TC test_asteroidshtml5canvas_2drendering_javascriptbenchmark
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'javascriptbenchmark')
Exemple #8
0
class GFXBenchGLTest(RenderAppTestBase):
    @classmethod
    def setUpClass(self):
        """
        install apk
        """
        super(GFXBenchGLTest, self).setUpClass()
        self.config = TestConfig()
        cfg_file = 'tests.tablet.artifactory.conf'
        self.case_cfg = 'tests.tablet.gits.conf'
        GitsImpl.setup_enviroment(self.config.read(cfg_file, "content_gits"))

    def setUp(self):
        super(GFXBenchGLTest, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self.gits = GitsImpl()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(GFXBenchGLTest, self).tearDown()
        self.gits.remove_file()

    def test_GFXBenchGL_LowLevelTest_AlphaBlending_Offscreen(self):
        """
        refer TC test_GFXBenchGL_LowLevelTest_AlphaBlending_Offscreen
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'AlphaBlendingOffscreen')

    def test_GFXBenchGL_LowLevelTest_AlphaBlending_Onscreen(self):
        """
        refer TC test_GFXBenchGL_LowLevelTest_AlphaBlending_Onscreen
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'AlphaBlendingOnscreen')

    def test_GFXBenchGL_HighLevelTest_Manhattan_Onscreen(self):
        """
        refer TC test_GFXBenchGL_HighLevelTest_Manhattan_Onscreen
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'ManhattanOnScreen')

    def test_GFXBenchGL_HighLevelTest_Manhattan_Offscreen(self):
        """
        refer TC test_GFXBenchGL_HighLevelTest_Manhattan_Offscreen
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'ManhattanOffScreen')

    def test_GFXBenchGL_HighLevelTest_TRex_Onscreen(self):
        """
        refer TC test_GFXBenchGL_HighLevelTest_TRex_Onscreen
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'TRexOnscreen')

    def test_GFXBenchGL_HighLevelTest_TRex_Offscreen(self):
        """
        refer TC test_GFXBenchGL_HighLevelTest_TRex_Offscreen
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'TRexOffscreen')

    def test_GFXBenchGL_LowLevelTest_ALU_ONscreen(self):
        """
        refer TC test_GFXBenchGL_LowLevelTest_ALU_ONscreen
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'ALUONscreen')

    def test_GFXBenchGL_LowLevelTest_ALU_Offscreen(self):
        """
        refer TC test_GFXBenchGL_LowLevelTest_ALU_Offscreen
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'ALUOffscreen')

    def test_GFXBenchGL_LowLevelTest_DriverOverhead_Offscreen(self):
        """
        refer TC test_GFXBenchGL_LowLevelTest_DriverOverhead_Offscreen
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'DriverOverheadOffscreen')

    def test_GFXBenchGL_LowLevelTest_DriverOverhead_Onscreen(self):
        """
        refer TC test_GFXBenchGL_LowLevelTest_DriverOverhead_Onscreen
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'DriverOverheadOnscreen')

    def test_GFXBenchGL_LowLevelTest_Fill_Offscreen(self):
        """
        refer TC test_GFXBenchGL_LowLevelTest_Fill_Offscreen
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'FillOffscreen')

    def test_GFXBenchGL_LowLevelTest_Fill_Onscreen(self):
        """
        refer TC test_GFXBenchGL_LowLevelTest_Fill_Onscreen
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'FillOnscreen')

    def test_GFXBenchGL_SpecialTests_RenderQuality(self):
        """
        refer TC test_GFXBenchGL_SpecialTests_RenderQuality
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'RenderQuality')

    def test_GFXBenchGL_SpecialTests_RenderQuality_HighPrecision(self):
        """
        refer TC test_GFXBenchGL_SpecialTests_RenderQuality_HighPrecision
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'RenderQualityHighPrecision')
class ImageViewer(UIATestBase):
    @classmethod
    def setUpClass(self):
        """
        install apk
        """
        super(ImageViewer, self).setUpClass()
        self.config = TestConfig()
        cfg_file = 'tests.tablet.artifactory.conf'
        self.case_cfg = 'tests.tablet.gits.conf'
        GitsImpl.setup_enviroment(self.config.read(cfg_file, "content_gits"))

    def setUp(self):
        super(ImageViewer, self).setUp()
        self._test_name = __name__
        print "[Setup]: %s" % self._test_name
        self.gits = GitsImpl()

    def tearDown(self):
        print "[Teardown]: %s" % self._test_name
        super(ImageViewer, self).tearDown()
        self.gits.remove_file()

    def test_ImageEdit_AddSharpnessEffect(self):
        """
        refer TC test_ImageEdit_AddSharpnessEffect_ImageSize5MB
                   test_ImageEdit_AddSharpnessEffect_SaveImage
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'sharpness_effect')

    def test_ImageEdit_GIF_CancelEdit(self):
        """
        refer TC test_ImageEdit_EditGIFImage_CancelEdit
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'GIF_Cancel_Edit')

    def test_ImageEdit_GIF_Crop(self):
        """
        refer TC test_ImageEdit_GIF_Crop
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'GIF_Crop')

    def test_ImageEdit_GIF_SaveEdit(self):
        """
        refer TC test_ImageEdit_EditGIFImage_SaveImage
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'GIF_Save_Edit')

    def test_ImageEdit_JPG_PersonFaceEdit(self):
        """
        refer TC test_ImageEdit_JPEGImageOfPersonFace_MoreEffects
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'JPG_Face')

    def test_ImageEdit_GIF_Rotate(self):
        """
        refer TC test_ImageView_GIF_Rotate
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'GIF_Rotate')

    def test_ImageEdit_PNG_1K_Check(self):
        """
        refer TC test_ImageView_PNG_ImageSize1k
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'PNG_1K')

    def test_ImageEdit_PNG_2M_Check(self):
        """
        refer TC test_ImageView_PNG_ImageSize2M
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'PNG_2M')

    def test_ImageEdit_PNG_SemiTransParent_Check(self):
        """
        refer TC test_ImageView_PNG_Semitransparent
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'PNG_STP')

    def test_ImageEdit_Crop_ThumbnailMode(self):
        """
        refer TC test_ImageEdit_Crop_ThumbnailMode
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'Crop_ThumbnailMode')

    def test_ImageEdit_AddSharpnessEffect_ImageSize5MB(self):
        """
        refer TC test_ImageEdit_AddSharpnessEffect_ImageSize5MB
        """
        print "[RunTest]: %s" % self.__str__()
        self.gits.handle_test(self.case_cfg, 'SharpnessEffect_5MB')