欧美自拍小视频_国产片在线免费观看_中文字幕啪啪_成人av高清在线_欧美一区二区视频免费观看_亚洲国产激情

以文本方式查看主題

-  曙海教育集團論壇  (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);
       

主站蜘蛛池模板: 丰满人妻在公车被猛烈进入电影 | 国内少妇偷人精品视频免费 | 亚洲av成人午夜福利在线观看 | 亚洲欧美精品一区天堂久久 | 美女视频免费看视频网站 | 最新的神马午夜 | 99热欧美| 亚洲精品视频在线免费 | 国产午夜福利精品一区二区三区 | 免费a网 | 亚洲国产精品一区二区美利坚 | 在线播放成人毛片免费视 | 亚洲在线视频网站 | 九九视频在线播放 | 日本伊人色综合网站 | 91精品国产免费久久久久久 | 99久久人人爽亚洲精品美女 | 精品国产一区二区 | 日韩 欧美 综合 | 一本一本久久a久久精品综合 | 精品无码国产一区二区三区51安 | 国产欧美精品三区 | 欧美一区二区三 | 2021成人国产精品 | 日本人六九视频69jzz免费 | 久久调教视频 | 人成精品视频三区二区一区 | 成年网站免费视频拍拍拍 | 四虎国产精品成人 | 亚洲精品成人区在线观看 | 青青草99热久久 | 久久久久精彩视频 | 色在线视频观看 | 国产九九热 | 亚洲精品手机在线 | 日本黄色三级网站 | 91 在线观看 | 深夜福利视频在线观看www | 日韩熟女精品一区二区三区 | 国产乱弄免费视频观看 | 一级做a爱过程免费观看 |