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

以文本方式查看主題

-  曙海教育集團論壇  (http://m.rfoamep.cn/bbs/index.asp)
--  Wince技術討論區  (http://m.rfoamep.cn/bbs/list.asp?boardid=9)
----  測試微軟Wince的拷屏代碼Code :)  (http://m.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欧美一区二区三区
国产精品视频yy9299一区| 日韩一区二区三区四区| 好吊色欧美一区二区三区四区| 成人av电影在线播放| 成人精品国产福利| 成人午夜电影小说| 99re6在线| 蜜桃视频成人| 亚洲永久激情精品| 欧美色综合天天久久综合精品| 欧美理论电影在线| 欧美刺激午夜性久久久久久久| 久久免费偷拍视频| 成人免费在线观看入口| 亚洲无人区一区| 日本美女一区二区三区| 国产精品一卡二| 97超级碰碰| 欧美日韩免费观看一区| 欧美少妇性性性| 欧美变态口味重另类| 国产精品无码永久免费888| 亚洲综合色丁香婷婷六月图片| 免费不卡在线视频| 99久精品国产| 欧洲久久久久久| 欧美性xxxxxxxx| 国产欧美日韩另类视频免费观看| 亚洲激情第一区| 国产精品一区三区| 国产日韩精品推荐| 亚洲激情一区二区| 欧美一级夜夜爽| 一区二区视频在线看| 精品一区二区三区视频| 91亚洲资源网| 日韩一区二区三区高清| 777奇米成人网| 亚洲欧洲精品天堂一级| 麻豆一区二区三| 好吊色欧美一区二区三区| 欧美亚洲尤物久久| 国产精品护士白丝一区av| 免费av成人在线| 国产伦精品一区二区三区高清版| 在线一区二区视频| 国产精品国产精品国产专区不蜜| 久久66热偷产精品| 国内一区在线| 91精品国产高清一区二区三区| 亚洲视频免费看| 国产精品一二二区| 欧美日韩一区在线播放| 日韩欧美高清一区| 午夜精品久久久久久不卡8050| 99久久精品费精品国产一区二区| 中文字幕日韩精品一区二区| 国产亚洲精品aa午夜观看| 免费日韩伦理电影| 久中文字幕一区| 精品免费视频一区二区| 五月婷婷激情综合网| 成人综合电影| 日韩一区二区麻豆国产| 婷婷激情综合网| 精品乱色一区二区中文字幕| 91精品国产综合久久精品性色| 亚洲精品欧美综合四区| 97久久人人超碰| 欧美日韩激情一区二区| 亚洲va欧美va人人爽| 丁香婷婷久久久综合精品国产| 欧美日韩日日夜夜| 亚洲午夜一区二区三区| 国产一区免费在线| 精品国产乱码久久久久久浪潮 | 国产中文一区二区三区| 久久草.com| 国产日韩成人精品| 成人av影视在线观看| 欧美日韩夫妻久久| 日本人妖一区二区| 亚洲成人自拍视频| 综合亚洲深深色噜噜狠狠网站| 99精品国产高清在线观看| 精品国产乱码久久久久久牛牛| 国产一区二区毛片| 欧美色图一区二区三区| 日韩成人av影视| 在线精品亚洲一区二区| 午夜精品福利一区二区三区蜜桃| 欧洲亚洲一区二区| 亚洲视频一区二区在线观看| 精品伦理一区二区三区| 亚洲欧洲日韩一区二区三区| 99超碰麻豆| 国产精品天美传媒| 福利精品视频| 国产精品色在线| 国产在线资源一区| 亚洲国产精品v| 好吊妞www.84com只有这里才有精品| 国产午夜亚洲精品不卡 | 亚洲精品国产系列| 亚洲国产精品久久久久婷婷884| 欧美亚洲国产免费| 亚洲一区中文在线| 在线综合视频网站| 美女视频网站久久| 制服丝袜亚洲网站| 99re视频这里只有精品| 国产人成一区二区三区影院| 成人欧美一区二区三区黑人免费| 国产精品视频线看| 久久人人爽爽人人爽人人片av| 亚洲柠檬福利资源导航| 亚洲v国产v| 寂寞少妇一区二区三区| 欧美一二三区在线| 97久久精品人人做人人爽 | 国产一区二区久久| 精品久久久久久最新网址| 91视频一区二区三区| 国产精品久久久久久久久晋中| 欧美久久久久久久| 日本特黄久久久高潮| 欧美日韩美女一区二区| www.av精品| 亚洲精品免费看| 日本精品一区二区三区高清| 国产精品亚洲第一区在线暖暖韩国| 日韩欧美亚洲另类制服综合在线| 99久久无色码| 亚洲一区二区综合| 欧美精品色一区二区三区| www.av亚洲| 一区二区三区久久久| 欧美日韩在线亚洲一区蜜芽| 99在线精品一区二区三区| 中文字幕制服丝袜一区二区三区| 亚洲a∨一区二区三区| 国产一区二区免费在线| 国产日产欧美一区二区视频| 日韩精品第一页| 成人一区二区三区视频在线观看| 中文字幕一区二区三区色视频 | 欧美国产一区视频在线观看| 日韩美女一区| 国产99久久精品| 中文字幕一区二区三区视频| 欧洲av在线精品| 国产99在线免费| 免费日本视频一区| 欧美激情综合五月色丁香| 一区二区三区四区在线视频| www.亚洲精品| 日韩成人免费电影| 国产欧美日韩在线视频| 在线免费精品视频| 国产精品一区二区免费看| 久久99热99| 一区二区三区日韩欧美精品| 777精品伊人久久久久大香线蕉| 国产在线精品一区二区三区| 久久se这里有精品| 亚洲视频免费看| 日韩欧美高清一区| 色综合久久六月婷婷中文字幕| 高清视频在线观看一区| 国产美女精品一区二区三区| 亚洲无人区一区| 中国av一区二区三区| 6080午夜不卡| 亚洲图片都市激情| 国产精品久久久久久久小唯西川| 国产乱码字幕精品高清av | 国产视频911| 欧美日韩亚洲不卡| 深夜福利成人| 成人h在线播放| 国产精品主播直播| 午夜精品福利久久久| 中文字幕av一区 二区| 555www色欧美视频| 色综合一个色综合亚洲| 久久综合九色欧美狠狠| 97视频中文字幕| 成人午夜免费视频| 蜜桃久久久久久| 亚洲国产精品久久艾草纯爱 | 国产一区二区三区黄视频| 亚洲成av人片一区二区三区| 欧美极品xxx| 337p粉嫩大胆色噜噜噜噜亚洲| 欧美日韩三级一区| 欧美在线你懂的| 色综合中文字幕国产 | 亚洲7777| 欧美极品色图| 久久久婷婷一区二区三区不卡|