Help me using robot framework

483 views
Skip to first unread message

Divya R

unread,
Mar 25, 2014, 2:01:16 PM3/25/14
to robotframe...@googlegroups.com
Hello,

I tried to use both the things . for running robot framework.

for java - i added 2 jars & wrote a simple script in txt file as shown below: but here only ff browser getting opened & not navigating to site itself. let me know is it mistake of lower version of jar file or higher version of ff browser or why its showing open browser key word itself not found. Also let me know how to run scripts using eclipse ide. as i need framework in java


2 jars-robotframework-selenium2library-java-1.2.0.13-jar-with-dependencies.jar & robotframework-2.8.1

& script is 

***Setting***
Test Teardown    Close All Browsers
Library    Selenium2Library

*** Test Cases ***
Get Current Browser Test
  Open Browser  https://duckduckgo.com


error for java is 
Full Name: Testcase.Get Current Browser Test
Start / End / Elapsed: 20140325 23:26:19.301 / 20140325 23:27:17.706 / 00:00:58.405
Status: FAIL (critical)
Message: Selenium2LibraryFatalException: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: *** LOG addons.manager: Application has been upgraded *** LOG addons.xpi: startup *** LOG addons.xpi: Skipping unavailable install location app-system-local *** LOG addons.xpi: Skipping unavailable install location app-system-share *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\DivyaR\AppData\Local\Temp\anonymous7480322529690749292webdriver-profile\extensions\webdriver-staging *** LOG addons.xpi: checkForChanges *** LOG addons.xpi-utils: Opening XPI database C:\Users\DivyaR\AppData\Local\Temp\anonymous7480322529690749292webdriver-profile\extensions.json *** LOG addons.xpi: New add-on fxdr...@googlecode.com installed in app-profile *** Blocklist::_loadBlocklistFromFile: blocklist is disabled *** LOG addons.xpi-utils: Make addon app-profile:fxdr...@googlecode.com visible *** LOG DeferredSave/extensions.json: Save changes *** LOG DeferredSave/extensions.json: Save changes [ Message content over the limit has been removed. ] *** LOG addons.manager: shutdown *** LOG addons.xpi: shutdown *** LOG addons.xpi-utils: shutdown *** LOG addons.xpi: Notifying XPI shutdown observers *** LOG addons.manager: Async provider shutdown done *** LOG addons.xpi: startup *** LOG addons.xpi: Skipping unavailable install location app-system-local *** LOG addons.xpi: Skipping unavailable install location app-system-share *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\DivyaR\AppData\Local\Temp\anonymous7480322529690749292webdriver-profile\extensions\webdriver-staging *** LOG addons.xpi: checkForChanges *** LOG addons.xpi: No changes found JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl is undefined Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51' Driver info: driver.version: FirefoxDriver
Expand All KEYWORD: Selenium2Library.Open Browser https://duckduckgo.com
Start / End / Elapsed: 20140325 23:26:19.310 / 20140325 23:27:17.678 / 00:00:58.368
Expand All KEYWORD: Selenium2Library.Capture Page Screenshot
23:26:19.335 INFO browserName: firefox
23:26:19.339 INFO Opening browser 'firefox' to base url 'https://duckduckgo.com'
23:27:17.467 WARN Opening browser 'firefox' to base url 'https://duckduckgo.com' failed
23:27:17.558 INFO org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: *** LOG addons.manager: Application has been upgraded *** LOG addons.xpi: startup *** LOG addons.xpi: Skipping unavailable install location app-system-local *** LOG addons.xpi: Skipping unavailable install location app-system-share *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\DivyaR\AppData\Local\Temp\anonymous7480322529690749292webdriver-profile\extensions\webdriver-staging *** LOG addons.xpi: checkForChanges *** LOG addons.xpi-utils: Opening XPI database C:\Users\DivyaR\AppData\Local\Temp\anonymous7480322529690749292webdriver-profile\extensions.json *** LOG addons.xpi: New add-on fxdr...@googlecode.com installed in app-profile *** Blocklist::_loadBlocklistFromFile: blocklist is disabled *** LOG addons.xpi-utils: Make addon app-profile:fxdr...@googlecode.com visible *** LOG DeferredSave/extensions.json: Save changes *** LOG DeferredSave/extensions.json: Save changes *** LOG addons.xpi: New add-on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} installed in app-global *** LOG addons.xpi-utils: Make addon app-global:{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} visible *** LOG DeferredSave/extensions.json: Save changes *** LOG DeferredSave/extensions.json: Save changes *** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global *** LOG addons.xpi-utils: Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible *** LOG DeferredSave/extensions.json: Save changes *** LOG DeferredSave/extensions.json: Save changes *** LOG addons.xpi: Updating database with changes to installed add-ons *** LOG addons.xpi-utils: Updating add-on states *** LOG addons.xpi-utils: Writing add-ons list *** LOG DeferredSave/extensions.json: Starting timer *** LOG DeferredSave/extensions.json: Starting write *** LOG DeferredSave/extensions.json: Write succeeded *** LOG addons.xpi-utils: XPI Database saved, setting schema version preference to 15 *** LOG addons.manager: shutdown *** LOG addons.xpi: shutdown *** LOG addons.xpi-utils: shutdown *** LOG addons.xpi: Notifying XPI shutdown observers *** LOG addons.manager: Async provider shutdown done *** LOG addons.xpi: startup *** LOG addons.xpi: Skipping unavailable install location app-system-local *** LOG addons.xpi: Skipping unavailable install location app-system-share *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\DivyaR\AppData\Local\Temp\anonymous7480322529690749292webdriver-profile\extensions\webdriver-staging *** LOG addons.xpi: checkForChanges *** LOG addons.xpi: No changes found JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl is undefined 


for python - its showing following error if i run same script . 

Testcase
==============================================================================
[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No brows
er is open
Get Current Browser Test                                              | FAIL |
WindowsError: [Error 2] The system cannot find the file specified
------------------------------------------------------------------------------
Testcase                                                              | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output:  C:\Users\DivyaR\Desktop\robotfw\output.xml
Log:     C:\Users\DivyaR\Desktop\robotfw\log.html
Report:  C:\Users\DivyaR\Desktop\robotfw\report.html


Kindly let me know what im missing out?

Thanks ,
Divya

Markus Bernhardt

unread,
Mar 25, 2014, 2:09:25 PM3/25/14
to divyac...@gmail.com, robotframe...@googlegroups.com
What version of firefox do you have?

robotframework-selenium2library-java-1.2.0.13 uses as default selenium-2.33.0, which is only compatible to FireFox 10esr, 17esr, 19 and 20.

Cheers,
Markus

Am 25.03.2014 um 19:01 schrieb Divya R <divyac...@gmail.com>:

Hello,

I tried to use both the things . for running robot framework.

for java - i added 2 jars & wrote a simple script in txt file as shown below: but here only ff browser getting opened & not navigating to site itself. let me know is it mistake of lower version of jar file or higher version of ff browser or why its showing open browser key word itself not found. Also let me know how to run scripts using eclipse ide. as i need framework in java


2 jars-robotframework-selenium2library-java-1.2.0.13-jar-with-dependencies.jar & robotframework-2.8.1

& script is 

***Setting***
Test Teardown    Close All Browsers
Library    Selenium2Library

*** Test Cases ***
Get Current Browser Test
  Open Browser  https://duckduckgo.com


error for java is 
Full Name: Testcase.Get Current Browser Test
Start / End / Elapsed: 20140325 23:26:19.301 / 20140325 23:27:17.706 / 00:00:58.405
Status: FAIL (critical)
Message: Selenium2LibraryFatalException: org.openqa.selenium.WebDriverException: Failed to connect to binary FirefoxBinary(C:\Program Files (x86)\Mozilla Firefox\firefox.exe) on port 7055; process output follows: *** LOG addons.manager: Application has been upgraded *** LOG addons.xpi: startup *** LOG addons.xpi: Skipping unavailable install location app-system-local *** LOG addons.xpi: Skipping unavailable install location app-system-share *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\DivyaR\AppData\Local\Temp\anonymous7480322529690749292webdriver-profile\extensions\webdriver-staging *** LOG addons.xpi: checkForChanges *** LOG addons.xpi-utils: Opening XPI database C:\Users\DivyaR\AppData\Local\Temp\anonymous7480322529690749292webdriver-profile\extensions.json *** LOG addons.xpi: New add-on fxdr...@googlecode.com installed in app-profile *** Blocklist::_loadBlocklistFromFile: blocklist is disabled *** LOG addons.xpi-utils: Make addon app-profile:fxdriver@googlecode.com visible *** LOG DeferredSave/extensions.json: Save changes *** LOG DeferredSave/extensions.json: Save changes [ Message content over the limit has been removed. ] *** LOG addons.manager: shutdown *** LOG addons.xpi: shutdown *** LOG addons.xpi-utils: shutdown *** LOG addons.xpi: Notifying XPI shutdown observers *** LOG addons.manager: Async provider shutdown done *** LOG addons.xpi: startup *** LOG addons.xpi: Skipping unavailable install location app-system-local *** LOG addons.xpi: Skipping unavailable install location app-system-share *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\DivyaR\AppData\Local\Temp\anonymous7480322529690749292webdriver-profile\extensions\webdriver-staging *** LOG addons.xpi: checkForChanges *** LOG addons.xpi: No changes found JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl is undefined Build info: version: 'unknown', revision: 'unknown', time: 'unknown' System info: os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.7.0_51' Driver info: driver.version: FirefoxDriver
Expand All KEYWORD: Selenium2Library.Open Browser https://duckduckgo.com
Start / End / Elapsed: 20140325 23:26:19.310 / 20140325 23:27:17.678 / 00:00:58.368
Expand All KEYWORD: Selenium2Library.Capture Page Screenshot
23:26:19.335 INFO browserName: firefox
23:26:19.339 INFO Opening browser 'firefox' to base url 'https://duckduckgo.com'
23:27:17.467 WARN Opening browser 'firefox' to base url 'https://duckduckgo.com' failed
23:27:17.558 INFO org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host 127.0.0.1 on port 7055 after 45000 ms. Firefox console output: *** LOG addons.manager: Application has been upgraded *** LOG addons.xpi: startup *** LOG addons.xpi: Skipping unavailable install location app-system-local *** LOG addons.xpi: Skipping unavailable install location app-system-share *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\DivyaR\AppData\Local\Temp\anonymous7480322529690749292webdriver-profile\extensions\webdriver-staging *** LOG addons.xpi: checkForChanges *** LOG addons.xpi-utils: Opening XPI database C:\Users\DivyaR\AppData\Local\Temp\anonymous7480322529690749292webdriver-profile\extensions.json *** LOG addons.xpi: New add-on fxdr...@googlecode.com installed in app-profile *** Blocklist::_loadBlocklistFromFile: blocklist is disabled *** LOG addons.xpi-utils: Make addon app-profile:fxdriver@googlecode.com visible *** LOG DeferredSave/extensions.json: Save changes *** LOG DeferredSave/extensions.json: Save changes *** LOG addons.xpi: New add-on {82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} installed in app-global *** LOG addons.xpi-utils: Make addon app-global:{82AF8DCA-6DE9-405D-BD5E-43525BDAD38A} visible *** LOG DeferredSave/extensions.json: Save changes *** LOG DeferredSave/extensions.json: Save changes *** LOG addons.xpi: New add-on {972ce4c6-7e08-4474-a285-3208198ce6fd} installed in app-global *** LOG addons.xpi-utils: Make addon app-global:{972ce4c6-7e08-4474-a285-3208198ce6fd} visible *** LOG DeferredSave/extensions.json: Save changes *** LOG DeferredSave/extensions.json: Save changes *** LOG addons.xpi: Updating database with changes to installed add-ons *** LOG addons.xpi-utils: Updating add-on states *** LOG addons.xpi-utils: Writing add-ons list *** LOG DeferredSave/extensions.json: Starting timer *** LOG DeferredSave/extensions.json: Starting write *** LOG DeferredSave/extensions.json: Write succeeded *** LOG addons.xpi-utils: XPI Database saved, setting schema version preference to 15 *** LOG addons.manager: shutdown *** LOG addons.xpi: shutdown *** LOG addons.xpi-utils: shutdown *** LOG addons.xpi: Notifying XPI shutdown observers *** LOG addons.manager: Async provider shutdown done *** LOG addons.xpi: startup *** LOG addons.xpi: Skipping unavailable install location app-system-local *** LOG addons.xpi: Skipping unavailable install location app-system-share *** LOG addons.xpi: Ignoring file entry whose name is not a valid add-on ID: C:\Users\DivyaR\AppData\Local\Temp\anonymous7480322529690749292webdriver-profile\extensions\webdriver-staging *** LOG addons.xpi: checkForChanges *** LOG addons.xpi: No changes found JavaScript error: chrome://browser/content/urlbarBindings.xml, line 654: aUrl is undefined 


for python - its showing following error if i run same script . 

Testcase
==============================================================================
[ WARN ] Keyword 'Capture Page Screenshot' could not be run on failure: No brows
er is open
Get Current Browser Test                                              | FAIL |
WindowsError: [Error 2] The system cannot find the file specified
------------------------------------------------------------------------------
Testcase                                                              | FAIL |
1 critical test, 0 passed, 1 failed
1 test total, 0 passed, 1 failed
==============================================================================
Output:  C:\Users\DivyaR\Desktop\robotfw\output.xml
Log:     C:\Users\DivyaR\Desktop\robotfw\log.html
Report:  C:\Users\DivyaR\Desktop\robotfw\report.html


Kindly let me know what im missing out?

Thanks ,
Divya

--
You received this message because you are subscribed to the Google Groups "robotframework-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robotframework-u...@googlegroups.com.
To post to this group, send email to robotframe...@googlegroups.com.
Visit this group at http://groups.google.com/group/robotframework-users.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages