#!/usr/bin/env python
# coding=utf-8
"""
文件名称：PlayingSwitchPagePgTestCase.py
作者：ycy
版本：PPTPro
创建时间：2019/2/25 17:15
修改时间：
软件：PyCharm
"""
from script.windows.Operation import *
from script.windows.SystemDialog import SystemDiaglog
from script.windows.PPT3DTestCase.Action import Action
from script.windows.PPT3DSetting.SourcePath import SourcePath
import win32api, win32con

reload(sys)
sys.setdefaultencoding('UTF-8')  # 将脚本编码格式转化未置顶的编码格式


class PlayingSwitchPagePgTestCase(Action, Operation, SystemDiaglog):
    '''放映态切页_PgDown'''

    def test_main(self):
        '''放映态切页_PgDown'''

        self.OperationSetting()
        self.Init3DPPT()
        tag = (self.__class__.__doc__ or u"测试") + "_" + self.__class__.__name__  

        self.OneClick("BtnNewPage")
        self.OneClick("BtnNewPage")
        self.ListClick("PageItem1")
        self.OneClick("BtnPlaying")
        self.startScene(tag)
        self.type_keyboard(34)  # PgDown键位码是34
        s = self.getPathValue("Page")
        path = "3DP Root/File"+self.getPathValue("File")[0]+"/3DP Root/Page%s" % s[1]
        if self.isVisibleV(path):
            pass
        else:
            assert False, "下方向键切页失败"
        time.sleep(1)
        self.type_keyboard(33)  # PgDown键位Up键位码是33
        path = "3DP Root/File"+self.getPathValue("File")[0]+"/3DP Root/Page%s" % s[0]
        if self.isVisibleV(path):
            pass
        else:
            assert False, "上方向键切页失败"

        self.endScene(tag)
        time.sleep(1)
        self.EndTag()
0fd77c0fa3b0a9c162a532c1bd60fc774ba52e49
<mask token>


class PlayingSwitchPagePgTestCase(Action, Operation, SystemDiaglog):
    <mask token>

    def test_main(self):
        """放映态切页_PgDown"""
        self.OperationSetting()
        self.Init3DPPT()
        tag = (self.__class__.__doc__ or u'测试') + '_' + self.__class__.__name__
        self.OneClick('BtnNewPage')
        self.OneClick('BtnNewPage')
        self.ListClick('PageItem1')
        self.OneClick('BtnPlaying')
        self.startScene(tag)
        self.type_keyboard(34)
        s = self.getPathValue('Page')
        path = '3DP Root/File' + self.getPathValue('File')[0
            ] + '/3DP Root/Page%s' % s[1]
        if self.isVisibleV(path):
            pass
        else:
            assert False, '下方向键切页失败'
        time.sleep(1)
        self.type_keyboard(33)
        path = '3DP Root/File' + self.getPathValue('File')[0
            ] + '/3DP Root/Page%s' % s[0]
        if self.isVisibleV(path):
            pass
        else:
            assert False, '上方向键切页失败'
        self.endScene(tag)
        time.sleep(1)
        self.EndTag()

<mask token>


class PlayingSwitchPagePgTestCase(Action, Operation, SystemDiaglog):
    """放映态切页_PgDown"""

    def test_main(self):
        """放映态切页_PgDown"""
        self.OperationSetting()
        self.Init3DPPT()
        tag = (self.__class__.__doc__ or u'测试') + '_' + self.__class__.__name__
        self.OneClick('BtnNewPage')
        self.OneClick('BtnNewPage')
        self.ListClick('PageItem1')
        self.OneClick('BtnPlaying')
        self.startScene(tag)
        self.type_keyboard(34)
        s = self.getPathValue('Page')
        path = '3DP Root/File' + self.getPathValue('File')[0
            ] + '/3DP Root/Page%s' % s[1]
        if self.isVisibleV(path):
            pass
        else:
            assert False, '下方向键切页失败'
        time.sleep(1)
        self.type_keyboard(33)
        path = '3DP Root/File' + self.getPathValue('File')[0
            ] + '/3DP Root/Page%s' % s[0]
        if self.isVisibleV(path):
            pass
        else:
            assert False, '上方向键切页失败'
        self.endScene(tag)
        time.sleep(1)
        self.EndTag()

<mask token>
reload(sys)
sys.setdefaultencoding('UTF-8')


class PlayingSwitchPagePgTestCase(Action, Operation, SystemDiaglog):
    """放映态切页_PgDown"""

    def test_main(self):
        """放映态切页_PgDown"""
        self.OperationSetting()
        self.Init3DPPT()
        tag = (self.__class__.__doc__ or u'测试') + '_' + self.__class__.__name__
        self.OneClick('BtnNewPage')
        self.OneClick('BtnNewPage')
        self.ListClick('PageItem1')
        self.OneClick('BtnPlaying')
        self.startScene(tag)
        self.type_keyboard(34)
        s = self.getPathValue('Page')
        path = '3DP Root/File' + self.getPathValue('File')[0
            ] + '/3DP Root/Page%s' % s[1]
        if self.isVisibleV(path):
            pass
        else:
            assert False, '下方向键切页失败'
        time.sleep(1)
        self.type_keyboard(33)
        path = '3DP Root/File' + self.getPathValue('File')[0
            ] + '/3DP Root/Page%s' % s[0]
        if self.isVisibleV(path):
            pass
        else:
            assert False, '上方向键切页失败'
        self.endScene(tag)
        time.sleep(1)
        self.EndTag()

<mask token>
from script.windows.Operation import *
from script.windows.SystemDialog import SystemDiaglog
from script.windows.PPT3DTestCase.Action import Action
from script.windows.PPT3DSetting.SourcePath import SourcePath
import win32api, win32con
reload(sys)
sys.setdefaultencoding('UTF-8')


class PlayingSwitchPagePgTestCase(Action, Operation, SystemDiaglog):
    """放映态切页_PgDown"""

    def test_main(self):
        """放映态切页_PgDown"""
        self.OperationSetting()
        self.Init3DPPT()
        tag = (self.__class__.__doc__ or u'测试') + '_' + self.__class__.__name__
        self.OneClick('BtnNewPage')
        self.OneClick('BtnNewPage')
        self.ListClick('PageItem1')
        self.OneClick('BtnPlaying')
        self.startScene(tag)
        self.type_keyboard(34)
        s = self.getPathValue('Page')
        path = '3DP Root/File' + self.getPathValue('File')[0
            ] + '/3DP Root/Page%s' % s[1]
        if self.isVisibleV(path):
            pass
        else:
            assert False, '下方向键切页失败'
        time.sleep(1)
        self.type_keyboard(33)
        path = '3DP Root/File' + self.getPathValue('File')[0
            ] + '/3DP Root/Page%s' % s[0]
        if self.isVisibleV(path):
            pass
        else:
            assert False, '上方向键切页失败'
        self.endScene(tag)
        time.sleep(1)
        self.EndTag()

#!/usr/bin/env python
# coding=utf-8
"""
文件名称：PlayingSwitchPagePgTestCase.py
作者：ycy
版本：PPTPro
创建时间：2019/2/25 17:15
修改时间：
软件：PyCharm
"""
from script.windows.Operation import *
from script.windows.SystemDialog import SystemDiaglog
from script.windows.PPT3DTestCase.Action import Action
from script.windows.PPT3DSetting.SourcePath import SourcePath
import win32api, win32con

reload(sys)
sys.setdefaultencoding('UTF-8')  # 将脚本编码格式转化未置顶的编码格式


class PlayingSwitchPagePgTestCase(Action, Operation, SystemDiaglog):
    '''放映态切页_PgDown'''

    def test_main(self):
        '''放映态切页_PgDown'''

        self.OperationSetting()
        self.Init3DPPT()
        tag = (self.__class__.__doc__ or u"测试") + "_" + self.__class__.__name__  

        self.OneClick("BtnNewPage")
        self.OneClick("BtnNewPage")
        self.ListClick("PageItem1")
        self.OneClick("BtnPlaying")
        self.startScene(tag)
        self.type_keyboard(34)  # PgDown键位码是34
        s = self.getPathValue("Page")
        path = "3DP Root/File"+self.getPathValue("File")[0]+"/3DP Root/Page%s" % s[1]
        if self.isVisibleV(path):
            pass
        else:
            assert False, "下方向键切页失败"
        time.sleep(1)
        self.type_keyboard(33)  # PgDown键位Up键位码是33
        path = "3DP Root/File"+self.getPathValue("File")[0]+"/3DP Root/Page%s" % s[0]
        if self.isVisibleV(path):
            pass
        else:
            assert False, "上方向键切页失败"

        self.endScene(tag)
        time.sleep(1)
        self.EndTag()