﻿<?xml version='1.0' encoding='utf-8' standalone='yes'?>
<AxeAssessmentManifest xmlns="http://www.microsoft.com/axe/assessment/manifest">

    <VersionedId>
        <Guid>{8c428764-711f-4572-9b89-9e554623d10f}</Guid>
        <Version>
            <Major>1</Major>
            <Minor>0</Minor>
            <Build>0</Build>
            <Revision>1</Revision>
        </Version>
    </VersionedId>
    
    <MinimumAxeVersionRequired>
        <Version>
            <Major>6</Major>
            <Minor>2</Minor>
            <Build>0</Build>
            <Revision>0</Revision>
        </Version>
    </MinimumAxeVersionRequired>
    
    <Description>
        <ProgrammaticName>SurfWorkload</ProgrammaticName>
        <DisplayName>ADK Samples - Internet Browsing</DisplayName>
        <ToolTip>This workload simulates browsing the Internet on the computer while measuring energy efficiency of a system.</ToolTip>
    </Description>

    <Properties>
        <Author>Microsoft Corporation</Author>
        <Copyright>© 2013 Microsoft Corporation. All rights reserved.</Copyright>
        <Url>http://go.microsoft.com/fwlink/?LinkID=232339&amp;clcid=0x409</Url>
        <AuthorUrl>http://go.microsoft.com/fwlink/?LinkID=232354&amp;clcid=0x409</AuthorUrl>
        <UpdateUrl>http://go.microsoft.com/fwlink/?LinkID=232356&amp;clcid=0x409</UpdateUrl>
        <ExitValueMeaning><ZeroIsSuccess /></ExitValueMeaning>
        <JobKind><BatteryLife /></JobKind><!--This is what makes this an Energy workload instead of an assessment.-->
        <ShouldRunSilent />
        <RequiresDisplay /><!--Prevents the screen saver from kicking on while we are running to truly simulate a browsing workload.-->
        <OnlyForProcessor>
            <X86 />
            <X64 />
        </OnlyForProcessor>
    </Properties>

    <ParameterDefinitions>

        <ParameterDefinition>
            <Description>
                <ProgrammaticName>URLs</ProgrammaticName>
                <DisplayName>URLs</DisplayName>
                <ToolTip>List of URLs to open in the web browser (one at a time) separated by spaces.</ToolTip>
                <Categories>
                    <Category>Configuration</Category>
                </Categories>
            </Description>
            <Type><String /></Type>
            <Inclusion><Required /></Inclusion>
            <DefaultValue>http://www.msn.com http://www.microsoft.com http://www.bing.com/news</DefaultValue>
            <CommandLineFormat>-Url '{0}'</CommandLineFormat>
            <Ordinal>0</Ordinal>
        </ParameterDefinition>
        
        <ParameterDefinition>
            <Description>
                <ProgrammaticName>Seconds</ProgrammaticName>
                <DisplayName>Display seconds</DisplayName>
                <ToolTip>Number of seconds each URL is displayed before closing the web browser window.</ToolTip>
                <Categories>
                    <Category>Configuration</Category>
                </Categories>
            </Description>
            <Type><Int32 /></Type>
            <Inclusion><Required /></Inclusion>
            <DefaultValue>60</DefaultValue>
            <Constraints>
                <MinimumConstraint>10</MinimumConstraint>
                <MaximumConstraint>86400</MaximumConstraint>
            </Constraints>
            <CommandLineFormat>-Time {0}</CommandLineFormat>
            <Ordinal>1</Ordinal>
        </ParameterDefinition>
        
        <ParameterDefinition>
            <Description>
                <ProgrammaticName>Iterations</ProgrammaticName>
                <DisplayName>Iterations</DisplayName>
                <ToolTip>Number of times to loop through the list of URLs specified.</ToolTip>
                <Categories>
                    <Category>Configuration</Category>
                </Categories>
            </Description>
            <Type><Int32 /></Type>
            <DefaultValue>1</DefaultValue>
            <Constraints>
                <MinimumConstraint>1</MinimumConstraint>
                <MaximumConstraint>1000</MaximumConstraint>
            </Constraints>
            <CommandLineFormat>-Iterations {0}</CommandLineFormat>
            <Ordinal>2</Ordinal>
        </ParameterDefinition>
        
    </ParameterDefinitions>
    
    <Execution>
        <CreateProcess>
            <ApplicationName>powershell.exe -ExecutionPolicy bypass -Command .\SurfWork.ps1 -FullScreen -AxeCoreNet '%AssessmentAxeBinPath%\Microsoft.Assessments.Core.dll'</ApplicationName>
            <CreateNoWindow />
        </CreateProcess>
    </Execution>
    
</AxeAssessmentManifest>