Kuhtich / flex-ui-selenium

Automatically exported from code.google.com/p/flex-ui-selenium
0 stars 0 forks source link

ERROR: Threw an exception: Cannot call method 'doFlexType' of undefined. #34

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi, 
I'm getting an error as in subj with trying to pass flex selenium sample test 
from http://code.google.com/p/flex-ui-selenium/.

What steps will reproduce the problem?

1. Runing JUnit FlexUISeleniumTest
2. Test code is:
package Flash;

import static org.junit.Assert.*;

import org.junit.*;

import com.thoughtworks.selenium.DefaultSelenium;
import com.thoughtworks.selenium.FlexUISelenium;
import com.thoughtworks.selenium.Selenium;

public class FlexUISeleniumTest {
        private final static String BASE_URL = "http://web.archive.org/web/20090615202045/http://www.geocities.com/";
        private final static String PAGE = "paulocaroli/flash/sum.html";
        private Selenium selenium;
        private FlexUISelenium flexUITester;

        @Before
        public void setUp() throws Exception {
                selenium = new DefaultSelenium("localhost", 4444, "*googlechrome",BASE_URL);
                selenium.start();
                selenium.open(PAGE);
                flexUITester = new FlexUISelenium(selenium, "compareSumFlexObjId");
        }

        @After
        public void tearDown() throws Exception {
                selenium.stop();
        }

        @Test
        public void verifyFlexAppSumIsCorrect() {
                flexUITester.type("2").at("arg1");
                flexUITester.type("3").at("arg2");
                flexUITester.click("submit");
                assertEquals("5", flexUITester.readFrom("result"));             
        }

}

What is the expected output? What do you see instead?
Test should be passed is expected.

An error appears instead - 

com.thoughtworks.selenium.SeleniumException: ERROR: Threw an exception: Cannot 
call method 'doFlexType' of undefined
    at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
    at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
    at com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
    at com.thoughtworks.selenium.DefaultSelenium.getEval(DefaultSelenium.java:443)
    at com.thoughtworks.selenium.FlashSelenium.call(FlashSelenium.java:55)
    at com.thoughtworks.selenium.FlexUISelenium.at(FlexUISelenium.java:62)
    at Flash.FlexUISeleniumTest.verifyFlexAppSumIsCorrect(FlexUISeleniumTest.java:33)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
    at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
    at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
    at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
    at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
    at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
    at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
    at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
    at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
    at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
    at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
    at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
    at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

What version of the product are you using? On what operating system?

OS Windows 7, browser chrome, Eclips Indigo with selenium RC
I've configured FlexUISeleniumTest using 
http://code.google.com/p/flex-ui-selenium/. All required java files - 
flash-selenium.jar, flashselenium-java-client-extension-1.0.jar, 
flex-ui-selenium-0.1.1.jar and etc are added in the build path. Selenium 
version 2.25

Please provide any additional information below.

Thanks in advance for any help.

Original issue reported on code.google.com by Roman.Al...@gmail.com on 7 Nov 2012 at 5:28