//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.239
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

namespace testy
{
    using System;
    using System.Collections.Generic;
    using System.Text;
    using Microsoft.VisualStudio.TestTools.WebTesting;
    using Microsoft.VisualStudio.TestTools.WebTesting.Rules;


    public class WyszukiwarkaWPCoded : WebTest
    {

        public WyszukiwarkaWPCoded()
        {
            this.PreAuthenticate = true;
        }

        public override IEnumerator<WebTestRequest> GetRequestEnumerator()
        {
            // Initialize validation rules that apply to all requests in the WebTest
            if ((this.Context.ValidationLevel >= Microsoft.VisualStudio.TestTools.WebTesting.ValidationLevel.Low))
            {
                ValidateResponseUrl validationRule1 = new ValidateResponseUrl();
                this.ValidateResponse += new EventHandler<ValidationEventArgs>(validationRule1.Validate);
            }
            if ((this.Context.ValidationLevel >= Microsoft.VisualStudio.TestTools.WebTesting.ValidationLevel.Low))
            {
                ValidationRuleResponseTimeGoal validationRule2 = new ValidationRuleResponseTimeGoal();
                validationRule2.Tolerance = 0D;
                this.ValidateResponseOnPageComplete += new EventHandler<ValidationEventArgs>(validationRule2.Validate);
            }

            WebTestRequest request1 = new WebTestRequest("http://www.wp.pl/");
            ExtractHiddenFields extractionRule1 = new ExtractHiddenFields();
            extractionRule1.Required = true;
            extractionRule1.HtmlDecode = true;
            extractionRule1.ContextParameterName = "1";
            request1.ExtractValues += new EventHandler<ExtractionEventArgs>(extractionRule1.Extract);
            yield return request1;
            request1 = null;

            WebTestRequest request2 = new WebTestRequest("http://www.wp.pl/x_profilowany.html");
            request2.QueryStringParameters.Add("wid", "waluty", false, false);
            yield return request2;
            request2 = null;

            WebTestRequest request3 = new WebTestRequest("http://bs.serving-sys.com/BurstingPipe/adServer.bs");
            request3.ThinkTime = 1;
            request3.QueryStringParameters.Add("cn", "rsb", false, false);
            request3.QueryStringParameters.Add("c", "28", false, false);
            request3.QueryStringParameters.Add("pli", "3808578", false, false);
            request3.QueryStringParameters.Add("PluID", "0", false, false);
            request3.QueryStringParameters.Add("w", "750", false, false);
            request3.QueryStringParameters.Add("h", "200", false, false);
            request3.QueryStringParameters.Add("ucm", "true", false, false);
            request3.QueryStringParameters.Add("z", "999999999", false, false);
            request3.QueryStringParameters.Add("ord", "902531.7818698126", false, false);
            yield return request3;
            request3 = null;

            WebTestRequest request4 = new WebTestRequest("http://ds.serving-sys.com/BurstingCachedScripts//Res/Empty_Movie.swf");
            yield return request4;
            request4 = null;

            WebTestRequest request5 = new WebTestRequest("http://ds.serving-sys.com/BurstingRes//Site-22811/Type-2/369d0659-1569-45d3-9c17-" +
                    "72f4bd40eb77.swf");
            request5.QueryStringParameters.Add("ebDomain", "www.wp.pl", false, false);
            request5.QueryStringParameters.Add("ebAdID", "7814455", false, false);
            request5.QueryStringParameters.Add("cp", "http://ds.serving-sys.com/BurstingCachedScripts//Res/ebV54_", false, false);
            request5.QueryStringParameters.Add("ebIntTime", "http://ds.serving-sys.com/BurstingCachedScripts//Res/ebInteractionTimeV62_12.swf", false, false);
            request5.QueryStringParameters.Add("ebDCPipe", "http://bs.serving-sys.com/BurstingPipe/BurstingDataCapturePipe.asp", false, false);
            request5.QueryStringParameters.Add("ebResourcePath", "http://ds.serving-sys.com/BurstingRes//", false, false);
            request5.QueryStringParameters.Add("ebCampaignID", "195554", false, false);
            request5.QueryStringParameters.Add("ebStreamingAppURL", "rtmp%3A//cp16207.edgefcs.net/ondemand", false, false);
            request5.QueryStringParameters.Add("ebStreamVirtualPath", "Res/Site-22811/", false, false);
            request5.QueryStringParameters.Add("ebAdIdentifier", "gEbBanners[0].displayUnit_7814455", false, false);
            request5.QueryStringParameters.Add("ebResPath", "http%3A//ds.serving-sys.com/BurstingRes//", false, false);
            request5.QueryStringParameters.Add("ebLC", "gEbBanners[0].displayUnit_ebBannerFlash_7814455", false, false);
            yield return request5;
            request5 = null;

            WebTestRequest request6 = new WebTestRequest("http://vda.wp.pl/RM/Box/2011-12/_kg/sercezimy/serce_zimy_190x240_final01.swf");
            yield return request6;
            request6 = null;

            WebTestRequest request7 = new WebTestRequest("http://vda.wp.pl/RM/Box/2012-01/_kg/lidl2501/lidl_prasa_420x150_wp.swf");
            yield return request7;
            request7 = null;

            WebTestRequest request8 = new WebTestRequest("http://vda.wp.pl/RM/Box/2012-01/_mb/42777/pasek_420x30.swf");
            yield return request8;
            request8 = null;

            WebTestRequest request9 = new WebTestRequest("http://vda.wp.pl/RM/Box/2011-12/_kg/sercezimy/sercezimy_trailer.swf");
            request9.ThinkTime = 3;
            yield return request9;
            request9 = null;

            WebTestRequest request10 = new WebTestRequest("http://ds.serving-sys.com/BurstingRes//Site-22811/Type-2/20b075bd-b45f-4ffa-b9a5-" +
                    "35e6ba1fd72e.swf");
            request10.ThinkTime = 6;
            request10.QueryStringParameters.Add("ebDomain", "www.wp.pl", false, false);
            request10.QueryStringParameters.Add("ebAdID", "7814455", false, false);
            request10.QueryStringParameters.Add("cp", "http://ds.serving-sys.com/BurstingCachedScripts//Res/ebV54_", false, false);
            request10.QueryStringParameters.Add("ebIntTime", "http://ds.serving-sys.com/BurstingCachedScripts//Res/ebInteractionTimeV62_12.swf", false, false);
            request10.QueryStringParameters.Add("ebDCPipe", "http://bs.serving-sys.com/BurstingPipe/BurstingDataCapturePipe.asp", false, false);
            request10.QueryStringParameters.Add("ebResourcePath", "http://ds.serving-sys.com/BurstingRes//", false, false);
            request10.QueryStringParameters.Add("ebCampaignID", "195554", false, false);
            request10.QueryStringParameters.Add("ebStreamingAppURL", "rtmp%3A//cp16207.edgefcs.net/ondemand", false, false);
            request10.QueryStringParameters.Add("ebStreamVirtualPath", "Res/Site-22811/", false, false);
            request10.QueryStringParameters.Add("ebAdIdentifier", "gEbBanners[0].displayUnit_7814455", false, false);
            request10.QueryStringParameters.Add("ebResPath", "http%3A//ds.serving-sys.com/BurstingRes//", false, false);
            request10.QueryStringParameters.Add("ebLC", "gEbBanners[0].displayUnit_ebPanel_7814455", false, false);
            yield return request10;
            request10 = null;

            WebTestRequest request11 = new WebTestRequest("http://www.wp.pl/tips.html");
            request11.QueryStringParameters.Add("s", "as", false, false);
            yield return request11;
            request11 = null;

            WebTestRequest request12 = new WebTestRequest("http://www.wp.pl/tips.html");
            request12.QueryStringParameters.Add("s", "as", false, false);
            yield return request12;
            request12 = null;

            WebTestRequest request13 = new WebTestRequest("http://www.wp.pl/tips.html");
            request13.QueryStringParameters.Add("s", "asp", false, false);
            yield return request13;
            request13 = null;

            WebTestRequest request14 = new WebTestRequest("http://www.wp.pl/tips.html");
            request14.QueryStringParameters.Add("s", "asp%20", false, false);
            yield return request14;
            request14 = null;

            WebTestRequest request15 = new WebTestRequest("http://www.wp.pl/tips.html");
            request15.QueryStringParameters.Add("s", "asp%20m", false, false);
            yield return request15;
            request15 = null;

            WebTestRequest request16 = new WebTestRequest("http://www.wp.pl/tips.html");
            request16.QueryStringParameters.Add("s", "asp%20mv", false, false);
            yield return request16;
            request16 = null;

            WebTestRequest request17 = new WebTestRequest("http://www.wp.pl/tips.html");
            request17.QueryStringParameters.Add("s", "asp%20mvc", false, false);
            yield return request17;
            request17 = null;

            WebTestRequest request18 = new WebTestRequest("http://www.wp.pl/tips.html");
            request18.QueryStringParameters.Add("s", "asp%20mvc", false, false);
            yield return request18;
            request18 = null;

            WebTestRequest request19 = new WebTestRequest("http://www.wp.pl/tips.html");
            request19.ThinkTime = 4;
            request19.QueryStringParameters.Add("s", "asp%20mvc+3", false, false);
            yield return request19;
            request19 = null;

            WebTestRequest request20 = new WebTestRequest("http://bs.serving-sys.com/BurstingPipe/adServer.bs");
            request20.QueryStringParameters.Add("cn", "int", false, false);
            request20.QueryStringParameters.Add("iv", "2", false, false);
            request20.QueryStringParameters.Add("int", "7814455~~0~~~^ebPanelsViewed~0~0~01020^ebUserInteraction~0~0~01020^Panel1~0~0~011" +
                    "01^ebAboveTheFold~0~0~01020^ebAdDuration~16~0~01020^ebIntDuration~3~0~01020^ebAb" +
                    "oveTheFoldDuration~12~0~01020^Panel1_duration~3~0~01001", false, false);
            request20.QueryStringParameters.Add("OptOut", "0", false, false);
            request20.QueryStringParameters.Add("ebRandom", "0.5975693204992738", false, false);
            request20.QueryStringParameters.Add("flv", "9.0124", false, false);
            request20.QueryStringParameters.Add("wmpv", "12", false, false);
            request20.QueryStringParameters.Add("res", "512", false, false);
            yield return request20;
            request20 = null;

            WebTestRequest request21 = new WebTestRequest("http://www.wp.pl/s/szukaj.html");
            request21.ExpectedResponseUrl = "http://szukaj.wp.pl/szukaj.html?szukaj=asp+mvc+3&ticaid=1dcd6";
            request21.QueryStringParameters.Add("form", this.Context["$HIDDEN1.form"].ToString(), false, false);
            request21.QueryStringParameters.Add("szukaj1", "asp+mvc+3", false, false);
            WebTestRequest request21Dependent1 = new WebTestRequest("http://adv.wp.pl/RM/Box/2011-11/_kj/pkt/pkt_160x150.swf");
            request21.DependentRequests.Add(request21Dependent1);
            yield return request21;
            request21 = null;
        }
    }
}
