Code Monkey home page Code Monkey logo

googlevoicetest's Introduction

GoogleVoiceTest

This is sample voice test written using Selenium with VoiceAutomationClient and VoiceAutomationServer

This demo will open chrome browser and perform voice search with given search text

Pre-requisite

For successfully executing this demo, you must have maven and java(>=1.8) installed on your machine

Also you need to have VoiceAutomationServer up and running on the machine where your test would be executed For that please refer to VoiceAutomationClient

Steps

  1. Clone the repository
  2. Go to cloned folder GoogleVoiceTest from command-line
  3. type mvn test -DVoiceAutomationServerEndpoint="" -DVoiceRssKey="<API_Key_FromVoiceRSS>" and hit enter

googlevoicetest's People

Contributors

g-tiwari avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

googlevoicetest's Issues

Unable to speak the Given Data, after clicking on Microphone icon

Hi gaurav,
The scripts is unable to speak after clicking on microphone icon even i did all the pre requisite that you metioned.
i am getting below issue............

INFO: Detected dialect: W3C
in.co.gauravtiwari.voice.clientresources.ClientOperationException: Please specify url of the voice automation server by passing JVM argument 'VoiceAutomationServerEndpoint'.
at in.co.gauravtiwari.voice.client.VoiceAutomationClient.(VoiceAutomationClient.java:50)
at com.se2automate.util.VoiceUtil.speak(VoiceUtil.java:22)
at com.se2automate.google.test.GoogleVoiceTest.googleVoiceSearchTest(GoogleVoiceTest.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:714)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:901)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1231)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
at org.testng.TestRunner.privateRun(TestRunner.java:767)
at org.testng.TestRunner.run(TestRunner.java:617)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:329)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:291)
at org.testng.SuiteRunner.run(SuiteRunner.java:240)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:86)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1198)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1123)
at org.testng.TestNG.run(TestNG.java:1031)
at org.testng.remote.AbstractRemoteTestNG.run(AbstractRemoteTestNG.java:114)
at org.testng.remote.RemoteTestNG.initAndRun(RemoteTestNG.java:251)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:77)
FAILED: googleVoiceSearchTest("football world cup live", ENGLISH_INDIA)
java.lang.AssertionError: expected [] but found [football world cup live]
at org.testng.Assert.fail(Assert.java:94)
at org.testng.Assert.failNotEquals(Assert.java:494)
at org.testng.Assert.assertEquals(Assert.java:123)

please help me Gaurav,,, i am working on this from 2 weeks
please mail me on::: [email protected]

Throws error while executing on windows

INFO [Grizzly(7)] (VoiceAutomationServerAPI.java:55) - exception loading file INFO [Grizzly(9)] (VoiceAutomationServerAPI.java:45) - entered load controller INFO [Grizzly(9)] (VoiceAutomationServerAPI.java:48) - file
INFO [Grizzly(9)] (VoiceAutomationServerAPI.java:45) - entered load controller INFO [Grizzly(9)] (VoiceAutomationServerAPI.java:48) - file

Need some info about this project

Thanks a a lot for sharing the code.
Few queries:

-->I have downloaded this project plus VoiceAutomationServer-1.0.0.jar , starting server by
java -jar VoiceAutomationServer-1.0.1.jar

and then from Google Voice Test opening cmd and running
mvn test -DVoiceAutomationServerEndpoint="" -DVoiceRssKey="<API_Key_FromVoiceRSS>"

Can you explain what does it mean?

--> It is throwing an error in gsri_ok0. which is this id? use-fake-ui-for-media-stream=1, it means it will allow microphone right? It is stuck in after above locator. Can you help me?
Thank you,
Trupti

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.