<?xml version="1.0" encoding="utf-8"?>
<TestSpecification xmlns="TestSpecification.xsd">
<TestCases>
<TestCase>
<TestCaseName>Example Web Test Case</TestCaseName>
<MediaType>Chat</MediaType>
<FolderPath />
<Description />
<Notes />
<AlertMsg />
<AlertFrequency>Once</AlertFrequency>
<MinorThresholdCriticalCount>3</MinorThresholdCriticalCount>
<MajorThresholdCriticalCount>1</MajorThresholdCriticalCount>
<Url>https://localhost/</Url>
<ProxyAddress />
<ProxyUserName />
<ProxyPassword />
<MessageResolver>
<Name>Genesys Bot</Name>
<Expect><![CDATA[
Contains("div.filament-ai-chat-widget-messageList > div:last-child div.filament-ai-chat-widget-leftMessage","{Value}");]]></Expect>
<Reply><![CDATA[SetValue("textarea.filament-ai-chat-widget-messageInput","{Value}");
PressEnter("textarea.filament-ai-chat-widget-messageInput");]]></Reply>
</MessageResolver>
<CustomFunctions>
<Function>
<Name>ClickChoice</Name>
<Body><![CDATA[FireEvent("div.filament-ai-chat-widget-messageList > div:last-child div.filament-ai-chat-widget-messageButtons button:nth-child({0})","click");]]></Body>
<Sample>ClickChoice("1")</Sample>
<ParameterCount>1</ParameterCount>
</Function>
</CustomFunctions>
<DataInputs />
<Steps>
<RingingStep>
<MinPauseTime>0</MinPauseTime>
<MaxPauseTime>0</MaxPauseTime>
<MinorThresholdTime>5</MinorThresholdTime>
<MajorThresholdTime>10</MajorThresholdTime>
<ExpectTimeOut>30</ExpectTimeOut>
</RingingStep>
<CallSteps>
<Step>
<StepNo>1</StepNo>
<Description>Cookies</Description>
<ExpectedText />
<ExpectedExchangeType>Function</ExpectedExchangeType>
<ReplyText>FireEvent("#onetrust-accept-btn-handler","click")</ReplyText>
<ReplyExchangeType>Function</ReplyExchangeType>
<MinorThresholdTime>3</MinorThresholdTime>
<MajorThresholdTime>5</MajorThresholdTime>
<MinPauseTime>1</MinPauseTime>
<MaxPauseTime>2</MaxPauseTime>
<IsOptional>false</IsOptional>
<ExpectTimeOut>10</ExpectTimeOut>
<ReplyTimeOut>10</ReplyTimeOut>
<BlockPath />
</Step>
<Step>
<StepNo>2</StepNo>
<Description>Check Page Load</Description>
<ExpectedText>Contains("#header","Call")</ExpectedText>
<ExpectedExchangeType>Function</ExpectedExchangeType>
<ReplyText>FireEvent("#header a[title='Sign in']","click")</ReplyText>
<ReplyExchangeType>Function</ReplyExchangeType>
<MinorThresholdTime>3</MinorThresholdTime>
<MajorThresholdTime>5</MajorThresholdTime>
<MinPauseTime>1</MinPauseTime>
<MaxPauseTime>2</MaxPauseTime>
<IsOptional>false</IsOptional>
<ExpectTimeOut>10</ExpectTimeOut>
<ReplyTimeOut>10</ReplyTimeOut>
<BlockPath />
</Step>
<Step>
<StepNo>3</StepNo>
<Description>Login Page</Description>
<ExpectedText>Contains("h1","SIGN IN")</ExpectedText>
<ExpectedExchangeType>Function</ExpectedExchangeType>
<ReplyText>SetValue("#Username","User name");
SetValue("#Password","Password");
FireEvent("#signin-button","click")</ReplyText>
<ReplyExchangeType>Function</ReplyExchangeType>
<MinorThresholdTime>3</MinorThresholdTime>
<MajorThresholdTime>5</MajorThresholdTime>
<MinPauseTime>1</MinPauseTime>
<MaxPauseTime>2</MaxPauseTime>
<IsOptional>false</IsOptional>
<ExpectTimeOut>10</ExpectTimeOut>
<ReplyTimeOut>10</ReplyTimeOut>
<BlockPath />
</Step>
<Step>
<StepNo>4</StepNo>
<Description>Chat With Bot</Description>
<ExpectedText />
<ExpectedExchangeType>Function</ExpectedExchangeType>
<ReplyText>FireEvent("button.filament-ai-chat-widget-button","click")</ReplyText>
<ReplyExchangeType>Function</ReplyExchangeType>
<MinorThresholdTime>3</MinorThresholdTime>
<MajorThresholdTime>5</MajorThresholdTime>
<MinPauseTime>1</MinPauseTime>
<MaxPauseTime>2</MaxPauseTime>
<IsOptional>false</IsOptional>
<ExpectTimeOut>10</ExpectTimeOut>
<ReplyTimeOut>10</ReplyTimeOut>
<BlockPath />
</Step>
<Step>
<StepNo>5</StepNo>
<Description>Bot Introduction</Description>
<ExpectedText>Hi there, how can I help you today?</ExpectedText>
<ExpectedExchangeType>Message</ExpectedExchangeType>
<ReplyText>Need help with my account</ReplyText>
<ReplyExchangeType>Message</ReplyExchangeType>
<MinorThresholdTime>3</MinorThresholdTime>
<MajorThresholdTime>5</MajorThresholdTime>
<MinPauseTime>1</MinPauseTime>
<MaxPauseTime>2</MaxPauseTime>
<IsOptional>false</IsOptional>
<ExpectTimeOut>10</ExpectTimeOut>
<ReplyTimeOut>10</ReplyTimeOut>
<BlockPath />
</Step>
<Step>
<StepNo>6</StepNo>
<Description>Bot Choices</Description>
<ExpectedText>Press 1 for home, 2 for car or 3 to speak with an Agent.</ExpectedText>
<ExpectedExchangeType>Message</ExpectedExchangeType>
<ReplyText>ClickChoice("1")</ReplyText>
<ReplyExchangeType>Function</ReplyExchangeType>
<MinorThresholdTime>3</MinorThresholdTime>
<MajorThresholdTime>5</MajorThresholdTime>
<MinPauseTime>1</MinPauseTime>
<MaxPauseTime>2</MaxPauseTime>
<IsOptional>false</IsOptional>
<ExpectTimeOut>10</ExpectTimeOut>
<ReplyTimeOut>10</ReplyTimeOut>
<BlockPath />
</Step>
</CallSteps>
</Steps>
</TestCase>
</TestCases>
</TestSpecification>
Comments
0 comments
Please sign in to leave a comment.