Closed Bug 1031295 Opened 10 years ago Closed 10 years ago

[b2gperf] Timeout when testing localized app

Categories

(Testing :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: davehunt, Assigned: davehunt)

References

Details

Attachments

(1 file, 1 obsolete file)

Originally filed at: https://github.com/mozilla/b2gperf/issues/10 Testing an app in a non-english locale throws an error: Traceback (most recent call last): File "b2gperf.py", line 193, in test_startup result = self.marionette.execute_async_script('launch_app("%s")' % app_name) File "/Users/zbraniecki/.local/env/b2perf/lib/python2.7/site-packages/marionette_client-0.5.27-py2.7.egg/marionette/marionette.py", line 618, in execute_async_script scriptTimeout=script_timeout) File "/Users/zbraniecki/.local/env/b2perf/lib/python2.7/site-packages/marionette_client-0.5.27-py2.7.egg/marionette/marionette.py", line 344, in _send_message self._handle_error(response) File "/Users/zbraniecki/.local/env/b2perf/lib/python2.7/site-packages/marionette_client-0.5.27-py2.7.egg/marionette/marionette.py", line 393, in _handle_error raise ScriptTimeoutException(message=message, status=status, stacktrace=stacktrace) ScriptTimeoutException: timed out Steps to reproduce: 1. install pvt build 2. go to settings, switch locale to Polish 3. run python b2gperf.py --delay=5 --iterations=30 Settings
Now that bug 921939 is fixed, a new gaiatest release will allow us to fix this in b2gperf.
Depends on: 921939
Depends on: 1031297
Zac: Mind reviewing this patch for b2gperf? If you want to test it just use the in-tree gaiatest, as we'll need another release before we can land this.
Assignee: nobody → dave.hunt
Status: NEW → ASSIGNED
Attachment #8447157 - Flags: review?(zcampbell)
Comment on attachment 8447157 [details] [diff] [review] Support localised app names. v1.0 I can't get this to run, I keep hitting numerous different barriers. Is there someone better prepared who has environments set up and knows the nuances, to review it? Aside from one errant console.log the code looks fine.
Attachment #8447157 - Flags: review?(zcampbell)
Thanks Zac, I've removed the console.log and added the dependency on gaiatest 0.25, which is yet to be released. I'm concerned that you were having issues testing this though, as it's worked fine for me. What you will need to do is create a clean virtual environment, and then install gaiatest from master, with the patch from bug 1031297 applied. You should then be able to run |python setup.py install| from b2gperf. Note that if you run |python setup.py develop| then the numpy installation may fail, so you would need to do a |pip install numpy==1.7.1| first. Then you should be able to run b2gperf using: $ b2gperf --iterations=2 --settle-time=0 --reset Phone $ b2gperf --iterations=2 --settle-time=0 --reset Téléphone
Attachment #8447157 - Attachment is obsolete: true
Attachment #8448582 - Flags: review?(jgriffin)
Attachment #8448582 - Flags: feedback?(zcampbell)
That's basically exactly what I did aside from the bug 1031297. I'll try again soon.
Comment on attachment 8448582 [details] Link to Github pull-request: https://github.com/mozilla/b2gperf/pull/54/files It works for me now, using Dave's two test cases. r+
Attachment #8448582 - Flags: review?(jgriffin)
Attachment #8448582 - Flags: review+
Attachment #8448582 - Flags: feedback?(zcampbell)
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: