예제 #1
0
        public string AddScreencast(string screencastPath)
        {
            if (this.IsPathRelative(screencastPath))
            {
                screencastPath = ScreencastHtml.GetSource(screencastPath).Replace("file:///", "");
            }
            else
            {
                screencastPath = ScreencastHtml.GetSource(screencastPath);
            }
            Screencast screencast = new Screencast();

            screencast.Source   = screencastPath;
            screencast.TestName = this.test.Name;
            this.test.Screencast.Add(screencast);
            return(screencastPath);
        }
예제 #2
0
        /// <summary>
        /// Adds a screen cast to the log event details
        ///
        /// Note: this method does not attach the screen-cast to the report, it only
        /// links to the path
        /// </summary>
        ///
        /// <param name="ScreencastPath">Path of the screencast</param>
        /// <returns>A formed HTML video tag with the supplied path</returns>
        public string AddScreencast(string ScreencastPath)
        {
            if (IsPathRelative(ScreencastPath))
            {
                ScreencastPath = ScreencastHtml.GetSource(ScreencastPath).Replace("file:///", "");
            }
            else
            {
                ScreencastPath = ScreencastHtml.GetSource(ScreencastPath);
            }

            var sc = new Screencast();

            sc.Source   = ScreencastPath;
            sc.TestName = _test.Name;
            sc.TestID   = _test.ID;

            _test.Screencast.Add(sc);

            return(ScreencastPath);
        }