久久精品在这里_成人99免费视频_国产激情视频一区二区在线观看_国产伦精品一区二区三区免费 _亚洲午夜免费福利视频_色狠狠色狠狠综合_av在线综合网_91毛片在线观看_欧美视频一区二区在线观看_极品美女销魂一区二区三区免费_国产亚洲欧美激情_在线免费观看不卡av_日韩不卡一区二区三区_91精品国产麻豆国产自产在线_亚洲国产精品一区二区久久恐怖片_a4yy欧美一区二区三区

以文本方式查看主題

-  曙海教育集團論壇  (http://www.rfoamep.cn/bbs/index.asp)
--  Wince技術討論區  (http://www.rfoamep.cn/bbs/list.asp?boardid=9)
----  測試微軟Wince的拷屏代碼Code :)  (http://www.rfoamep.cn/bbs/dispbbs.asp?boardid=9&id=1382)

--  作者:wangxinxin
--  發布時間:2010-11-16 11:38:43
--  測試微軟Wince的拷屏代碼Code :)
#region By v-gayang for VisualDiff
        /// <summary>
        /// Alert This folder already contain a folder called folder name
        /// Clew InformationDo: you really want to replace the older folder with the new folder?
        /// </summary>
        /// <returns>LogResult.Pass on success</returns>
        [TestCaseAttribute("Verify the Beam and Send Menu items are enabled when a file is selected", Type = TestType.VisualDiff)]
        [MobileDevicesDescriptor ( Product = Products.SmartPhone) ]    
        public Log.LogResult VerifyFolderAndReplaceFolder()
        {
              Log.LogResult result = Log.LogResult.Pass;        

              Utils.GlobalLogger.AddComment("Go to my documents");
              FEAreaLib.Instance.GoToMyDocuments();

              //Navigate to the root directory
              Utils.GlobalLogger.AddComment("Go to the root directory");    
              FEAreaLib.Instance.GoUpOneDirectory();        

              // Add a new name "abc" folder
              this.GoToFolder(true);
              this.CreateNewFileFolder();

              //Navigate to the \\temp
              Utils.GlobalLogger.AddComment("Go to the root temp directory");    
              FEAreaLib.Instance.GoToMyDocuments();
              FEAreaLib.Instance.GoUpOneDirectory();
              FEAreaLib.Instance.ClickOn(tempPath);
             

              // Add a new name "abc" folder
              this.OpinionRepeatFolder(true);
              this.CreateNewFileFolder();

              // Copy one Folder
              string abc="abc";
              this.CopyFileOrFolder(abc);

              // Paste one Folder
              FEAreaLib.Instance.GoToMyDocuments();
              FEAreaLib.Instance.GoUpOneDirectory();
              this.PasteFileOrFolder();

              //snap for the Alert
              Utils.GlobalLogger.AddComment("snap for Register: Do you really want to replace the older folder with the new folder?");
              this.ssc.Capture("FileExplorer_PasteFolder_already_contain_Alert");
       
              return result;
        }
       
        /// <summary>
        /// Alert A File name "<name>" already exist.
        /// Replace the exiting file "date" and "time" with this one .
        /// </summary>
        /// <returns>LogResult.Pass on success</returns>
        [TestCaseAttribute("Verify Alert A File name \'name\' already exist.", Type = TestType.VisualDiff)]
        [MobileDevicesDescriptor ( Product = Products.SmartPhone) ]    
        public Log.LogResult VerifyFileAndReplaceFile()
        {
              Log.LogResult result = Log.LogResult.Pass;        

              Utils.GlobalLogger.AddComment("Go to my documents");
              FEAreaLib.Instance.GoToMyDocuments();

              //Navigate to the My Picture folder
              Utils.GlobalLogger.AddComment("Go to the My Picture folder");    
              FEAreaLib.Instance.GoToMyPictures();
             
   
              //Highlight the "flower" file
              Utils.GlobalLogger.AddComment("highlight the waterfall");
              FEAreaLib.Instance.KBNavigateTo("flower.jpg");

              // Copy a name "picture" file
              this.GoToFile(true);
              this.CopyFileOrFolder(this.picturePath + @"\\flower.jpg");

              // A layer of catalogues on carriage return
              Utils.GlobalLogger.AddComment("A layer of catalogues on carriage return ");    
              FEAreaLib.Instance.GoUpOneDirectory();
             

              // Paste a File
              Utils.GlobalLogger.AddComment("Paste a file");
              this.PasteFileOrFolder();
             

              //snap for the Alert or the first time
              Utils.GlobalLogger.AddComment("snap for Register: Paste a flower file Replace the exiting file <date> and <time>");    
              this.ssc.Capture("FileExplorer_PasteFile_or_the_first_time_Alert");


              // Paste a File
              Utils.GlobalLogger.AddComment("Paste an existing file ");
              this.PasteFileOrFolder();
             

              //snap for the Alert
              Utils.GlobalLogger.AddComment("snap for Register: Do you really want to replace the older file with the new file?");    
              this.ssc.Capture("FileExplorer_PasteFile_already_contain_date_and_time_Alert");    

              return result;
        }
        #endregion
        #endregion

    #region Private Data
    // Add any private data/vars used by your tests here.
        private VisualDiff.SnapShotCreator ssc=null;
    #endregion

    #region Utility Functions
    private void CleanFolder(string dir)
    {
        if(Directory.Exists(dir))
        {        
          Directory.Delete(dir, true);
        }    
        Directory.CreateDirectory(dir);
    }

    private void GoToTestFolder(bool clean)
    {
        if(clean)
        {
          CleanFolder(this.testPath);
        }
        FEAreaLib.Instance.GoToMyDocuments();
        FEAreaLib.Instance.ClickOn(testDirectory);
    }

        private void GoToFolder(bool clean)
        {
              if(clean)
              {
                  CleanFolder(this.folderPath);
              }
              FEAreaLib.Instance.GoToMyDocuments();
              FEAreaLib.Instance.GoUpOneDirectory();
//               FEAreaLib.Instance.ClickOn(abcDirectory);
        }
        private void OpinionRepeatFolder(bool clean)
        {
              if(clean)
              {
                  CleanFolder(this.tempPath);
              }
        }

        private void GoToFile(bool awardentityfile )
        {
              if(awardentityfile)
              {
                  this.CopyFileOrFolder(this.picturePath + @"\\flower.jpg");
              }
              else
              {
                  FileStream fs = System.IO.File.Create(this.picturePath + @"\\flower.jpg");
                  fs.Close();
                  this.CopyFileOrFolder(this.picturePath + @"\\flower.jpg");
              }
        }
        #region Create NewFile Folder
        /// <summary>
        /// Create NewFile Folder
        /// </summary>
        private void CreateNewFileFolder()
        {
              try
              {
                  //press sk2.menu
                  Utils.GlobalLogger.AddComment("Press SK2 Menu");
                  Mtk.Softkeys.Current.PressSoftKey(Mtk.Softkeys.SoftKey.Right);
             
                  // press 3 for edit
                  Utils.GlobalLogger.AddComment("press 3 for edit");
                  Mtk.Smartphone.KeyPad.Press(3);
                 
                  //press 6 for new folder
                  Utils.GlobalLogger.AddComment("press 6 for new folder");
                  Mtk.Smartphone.KeyPad.Press(6);
                 
                  //Press action button : Create New FileFolder
                  Utils.GlobalLogger.AddComment("Press action button Create New FileFolder");
                  Mtk.Smartphone.KeyPad.Press(Mtk.KeyPad.Key.Action);
       
                  //rename to New Folder
                  Utils.GlobalLogger.AddComment("rename to abc");
                  FEAreaLib.Instance.Rename("abc");
                 
                  //Press Action Button
                  Utils.GlobalLogger.AddComment("Press Action Button");
                  Mtk.Smartphone.KeyPad.Press(Mtk.KeyPad.Key.Action);
              }
              catch
              {
                  Utils.GlobalLogger.AddComment("Fail: Folder Create");
              }
              finally
              {
                  GC.Collect();
                  GC.WaitForPendingFinalizers();
              }
        }
        #endregion
        #region Copy a File or Folder
        /// <summary>
        /// Copy one Folder
        /// </summary>
        private void CopyFileOrFolder(string abc)
        {
              try
              {
                  //press sk2.menu
                  FEAreaLib.Instance.ClickOn(abc);
                  Utils.GlobalLogger.AddComment("Press SK2 Menu");
                  Mtk.Softkeys.Current.PressSoftKey(Mtk.Softkeys.SoftKey.Right);
             
                  // press 3 for edit
                  Utils.GlobalLogger.AddComment("press 3 for edit");
                  Mtk.Smartphone.KeyPad.Press(3);
                 
                  //press 2 for copy folder
                  Utils.GlobalLogger.AddComment("press 2 for new copy ");
                  Mtk.Smartphone.KeyPad.Press(Mtk.KeyPad.Key.D2);
       

久久精品在这里_成人99免费视频_国产激情视频一区二区在线观看_国产伦精品一区二区三区免费 _亚洲午夜免费福利视频_色狠狠色狠狠综合_av在线综合网_91毛片在线观看_欧美视频一区二区在线观看_极品美女销魂一区二区三区免费_国产亚洲欧美激情_在线免费观看不卡av_日韩不卡一区二区三区_91精品国产麻豆国产自产在线_亚洲国产精品一区二区久久恐怖片_a4yy欧美一区二区三区
精品免费日韩av| 91色|porny| 精品国产一区二区三区不卡| 在线视频欧美一区| 亚洲自拍偷拍二区| 亚洲 国产 日韩 综合一区| 精品卡一卡二| 极品日韩久久| 九色91视频| 国产精品一区二| 成人羞羞视频免费| 国产不卡高清在线观看视频| 伦理电影国产精品| 自拍偷在线精品自拍偷无码专区| 官网99热精品| 91视频.com| 999精品视频一区二区三区| 高清不卡一区二区| 成人精品小蝌蚪| jiyouzz国产精品久久| 另类的小说在线视频另类成人小视频在线| 久久精品视频网| 亚洲欧洲日韩女同| 综合欧美亚洲日本| 亚洲综合成人网| 蜜桃久久精品一区二区| 国内精品伊人久久久久av一坑| 国产曰批免费观看久久久| 亚洲资源中文字幕| 亚洲大片精品永久免费| 紧缚捆绑精品一区二区| 成人午夜免费av| 精品国产一区二区三区久久久久久| 蜜桃91精品入口| 神马影院我不卡| 欧美视频在线播放| 久久亚洲免费视频| 国产亚洲欧美一区在线观看| 国产清纯白嫩初高生在线观看91| 快播亚洲色图| 色综合久久久久综合体| 51国偷自产一区二区三区| 一区二区高清在线| 亚洲自拍偷拍综合| 一级精品视频在线观看宜春院| 午夜精品福利一区二区三区蜜桃| 另类人妖一区二区av| 福利视频网站一区二区三区| 成人av在线播放网址| 国产尤物99| 一本色道久久综合狠狠躁的推荐| 欧美一区午夜视频在线观看| 中文字幕亚洲电影| 蜜臀国产一区二区三区在线播放| 成人av一区二区三区| 国产欧美亚洲日本| 欧洲一区二区三区免费视频| 这里只有精品99re| 亚洲精品日日夜夜| 国产高清一区日本| 久久久久久九九| 337p亚洲精品色噜噜狠狠| 《视频一区视频二区| 5566中文字幕一区二区| 亚洲精品视频在线| 久久国产精品72免费观看| 亚洲欧洲精品一区二区三区不卡| 亚洲一区二区三区四区在线 | 国产一区二区三区| 国产一区二区在线网站| 欧美久久一二三四区| 4hu四虎永久在线影院成人| 一区二区三区蜜桃网| 成人av电影免费在线播放| 欧美日本亚洲| 精品毛片乱码1区2区3区| 日韩成人午夜精品| 国产免费一区| 日韩天堂在线观看| 日本女人一区二区三区| 国内一区二区三区在线视频| 91精品国产一区二区三区蜜臀| 一区二区三区欧美亚洲| 97超碰人人看人人| 91精品欧美综合在线观看最新| 亚洲一区二区三区视频在线播放| 99re热视频精品| 91精品国产色综合久久不卡电影| 亚洲高清一区二区三区| 国产98在线|日韩| 在线不卡的av| 日韩不卡手机在线v区| 91精品久久久久久蜜桃| 成人免费福利片| 午夜欧美视频在线观看| 精品不卡一区二区三区| 国产亚洲人成网站| 99久免费精品视频在线观看 | 成人欧美一区二区三区在线观看 | 亚洲人成网站精品片在线观看| 成人福利视频网站| 欧美另类高清zo欧美| 亚洲bt欧美bt精品777| 久久www免费人成精品| 国产欧美一区二区精品忘忧草 | 色婷婷一区二区三区四区| 亚洲青青青在线视频| 成人资源av| 久久久久久久久久久电影| 国产不卡高清在线观看视频| 欧美日韩色一区| 国产精品视频第一区| av资源站久久亚洲| 久久天堂国产精品| 国产欧美日韩另类一区| 99久久er热在这里只有精品66| 日韩一区和二区| 国产在线观看免费一区| 91精品国产综合久久精品性色| 中文字幕中文字幕一区| 精品日韩电影| 亚洲伦理在线精品| 91美女片黄在线观看| 五月天一区二区三区| 欧美日韩国产高清一区二区三区 | 久久久久久久电影| 一本大道av伊人久久综合| 国产精品乱人伦中文| 久久久久久一级片| 欧美精品日韩一区| 色素色在线综合| 日韩成人一区二区三区在线观看| 一区二区久久久| 日韩精品亚洲专区| 开心九九激情九九欧美日韩精美视频电影 | 欧美二区在线观看| 精品1区2区在线观看| 日韩中文字幕91| 色吧亚洲视频| 视频一区中文字幕国产| 久久久水蜜桃| 91精品国产综合久久久久久漫画| 国产精品一品视频| 欧美精品一区二区三区视频| 成人美女视频在线看| 色综合久久中文字幕| 亚洲欧美偷拍另类a∨色屁股| 九九在线精品视频| 欧美一级日韩一级| 国产三级精品在线不卡| 亚洲另类在线一区| 一本一道综合狠狠老| 精品一区二区国语对白| 伊人久久大香线蕉av一区| 裸体在线国模精品偷拍| 亚洲乱码一区二区三区| 久久一区二区精品| 91欧美一区二区| av电影在线不卡| 极品少妇一区二区| 高清av免费一区中文字幕| 91精品国产综合久久久久久| 久久99精品久久久久久| 色综合色狠狠天天综合色| 777亚洲妇女| 日韩一区二区在线播放| 国产免费成人在线视频| 欧美激情一区在线观看| 福利视频网站一区二区三区| 欧美日韩精品高清| 奇米在线7777在线精品| 激情伊人五月天久久综合| 麻豆久久久久久| 成人免费黄色大片| 三区精品视频| 91黄视频在线| 97视频资源在线观看| 国产精品一区二区三区四区五区 | 97久久超碰精品国产| 国内精品自线一区二区三区视频| 一区二区三区四区五区视频在线观看| 亚洲国产一区二区a毛片| 成人综合在线网站| 亚洲黄色一区二区三区| 在线观看91视频| 午夜一区二区三区在线观看| 久久精品国产一区二区三区免费看| 国产麻豆成人传媒免费观看| 日本在线播放一区| 精品国产乱码久久久久久闺蜜| 欧美国产欧美综合| 丝袜亚洲精品中文字幕一区| 亚洲免费高清视频在线| 日本少妇一区二区| 久久电影网电视剧免费观看| 高清不卡在线观看| 五月婷婷综合色| 精品国产乱子伦一区| 日本一二三不卡| 成人动漫视频在线|