jagdeepjain / sfapi

Automatically exported from code.google.com/p/sfapi
0 stars 0 forks source link

It is not very stable for using sfapi lib in locating flex elements. it works but not all the times? #44

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. build flex web app with the sfapi lib as required.

2. run automation scripts based on the selben example's codes to automate the 
flex web app

3. watching the execution and see it sometimes fails to locate the elements 
although these elements are found in the previous executions.

What is the expected output? What do you see instead?
- if the element is visible to the execution of automation script in the last 
execution, it should be visible the next time.

What version of the product are you using? On what operating system?
sfapi 0.2.6.  selenium server 1.0.3, tomcat server 6.0.14, flex 3.0
win xp sp3, firefox 3.6.16, junit 3.0

Please provide any additional information below.
there are some pop-up dialog boxes in the application.
the element is visible at this time, but next time it is not visible at all.  I 
would like to know if any hint on how to apply the patches from others' posts 
or how to make changes and rebuild the sfapi lib locally.

here is the traces:
java.lang.AssertionError: Timed out after 10000ms: The visibility of widget 
automationName=RsrSensitiveItemEditorStatusBtnAutoName was not true
    at org.junit.Assert.fail(Assert.java:71)
    at main.java.seleniumflexapi.call.FlashCallTimer.waitForCall(FlashCallTimer.java:55)
    at main.java.seleniumflexapi.AbstractPageDriver.ensureWidgetVisibility(AbstractPageDriver.java:417)
    at main.java.seleniumflexapi.AbstractPageDriver.ensureWidgetVisibility(AbstractPageDriver.java:411)
    at main.java.seleniumflexapi.AbstractPageDriver.clickButton(AbstractPageDriver.java:79)
    at main.java.seleniumflexapi.simulation.OfflineFlexPageDriver.clickBtn(OfflineFlexPageDriver.java:67)
    at main.java.seleniumflexapi.simulation.OfflineFlexRsrTestCase.processSensitiveEditorFrm(OfflineFlexRsrTestCase.java:357)
    at main.java.seleniumflexapi.simulation.OfflineFlexRsrTestCase.simulateRSRTabNagvigator(OfflineFlexRsrTestCase.java:233)
    at main.java.seleniumflexapi.simulation.OfflineFlexRsrTestCase.processAutomationTest(OfflineFlexRsrTestCase.java:85)
    at main.java.seleniumflexapi.simulation.OfflineFlexAcceptanceTestSuite.automateRsr(OfflineFlexAcceptanceTestSuite.java:113)
    at main.java.seleniumflexapi.simulation.OfflineFlexAcceptanceTestSuite.simulateOfflineFlex(OfflineFlexAcceptanceTestSuite.java:85)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.junit.internal.runners.TestMethodRunner.executeMethodBody(TestMethodRunner.java:99)
    at org.junit.internal.runners.TestMethodRunner.runUnprotected(TestMethodRunner.java:81)
    at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at org.junit.internal.runners.TestMethodRunner.runMethod(TestMethodRunner.java:75)
    at org.junit.internal.runners.TestMethodRunner.run(TestMethodRunner.java:45)
    at org.junit.internal.runners.TestClassMethodsRunner.invokeTestMethod(TestClassMethodsRunner.java:66)
    at org.junit.internal.runners.TestClassMethodsRunner.run(TestClassMethodsRunner.java:35)
    at org.junit.internal.runners.TestClassRunner$1.runUnprotected(TestClassRunner.java:42)
    at org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:34)
    at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
    at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:49)
    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)

Original issue reported on code.google.com by charliet...@hotmail.com on 28 Apr 2011 at 6:54

GoogleCodeExporter commented 8 years ago
I think i have solved this.  may be i have versions conflicted for .js.  i 
added the flexomnkey .js to the firefox along with sfapi .2.6 .js.  it is 
working now.

Original comment by charliet...@hotmail.com on 26 May 2011 at 4:46