profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/mkorpela/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Mikko Korpela mkorpela Reaktor Helsinki, Finland

mkorpela/pabot 346

Parallel executor for Robot Framework test cases.

mkorpela/overrides 156

A decorator to automatically detect mismatch when overriding a method

MarketSquare/robotframework-browser 147

Robot Framework Browser library powered by Playwright.

mkorpela/RoboMachine 95

Model-based testing with Robot Framework

MarketSquare/robotframework-stacktrace 9

A listener for RF >= 4.0 that prints a Stack Trace to console to faster find the code section where the failure appears.

MarketSquare/robotframework-cluster 4

possible successor of Pabot

mkorpela/EventLibrary 4

Event dispatcher Library for Robot Framework

mkorpela/as3-stuff 2

Things that I would like to have in ActionScript 3

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

Good to hear that it works and thank you for reporting the problem.

emakaay

comment created time in 2 hours

push eventMarketSquare/robotframework-browser

Tatu Aalto

commit sha ff4da7fe756c202309bcd3e7a577821f826067b0

Update release note generation template

view details

push time in 3 hours

push eventMarketSquare/robotframework-browser

Tatu Aalto

commit sha c7eae8a3976eba8ac677433e9dfdc9c9d8e0d04c

Remove not used lib import

view details

push time in 3 hours

push eventMarketSquare/robotframework-browser

Tatu Aalto

commit sha f7d2ddfc41240a17f8932f668463c6f07a615cd2

Update New Context docs to say how to view trace file

view details

push time in 4 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

Thanks Tatu, I just installed it. And it fixed the problem. I guess that we had some code difference... Perhaps.

Glad it works now!

On Sat, Jun 19, 2021, 22:50 Tatu Aalto ***@***.***> wrote:

New release, 5.1.1 is in PyPi

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarketSquare/robotframework-browser/issues/1085#issuecomment-864462025, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARLATWJTMCOHH4HVYTYWVVLTTT7HVANCNFSM467BDAKQ .

emakaay

comment created time in 4 hours

push eventMarketSquare/robotframework-browser

aaltat

commit sha 8f4e317834c350b531c446176cf07ffdf2cf927a

Deploying to gh-pages from @ ade0a900295ff5627b8ae68780419e19a0855b62 🚀

view details

push time in 4 hours

release MarketSquare/robotframework-browser

v5.1.1

released time in 4 hours

created tagMarketSquare/robotframework-browser

tagv5.1.1

Robot Framework Browser library powered by Playwright.

created time in 4 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

New release, 5.1.1 is in PyPi

emakaay

comment created time in 4 hours

push eventMarketSquare/robotframework-browser

Tatu Aalto

commit sha e0dd183fc7e4e34509437f4a38cb1abf00e3547f

Updateverstion to: 5.1.1

view details

Tatu Aalto

commit sha ca77fbc367b85c1fcce460fa09fded4eef230be0

Add old docs to repo.

view details

Tatu Aalto

commit sha ade0a900295ff5627b8ae68780419e19a0855b62

Release notes for 5.1.1

view details

push time in 4 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

There definitely was a bug, which is now fixed in master. I do not quite understand why that does not fix the problem in your side. I will push out a new release and if there is still a problem, then we need to take another look.

emakaay

comment created time in 4 hours

push eventMarketSquare/robotframework-browser

Tatu Aalto

commit sha 9a4910c312d47a959f34831d976f09598866788a

test and fix show-trace in Windows OS (#1079) Fixes #1085 (at least on CI side)

view details

push time in 5 hours

PR merged MarketSquare/robotframework-browser

test and fix show-trace in Windows OS

Fixes #1085 (at least on CI side)

+131 -52

0 comment

7 changed files

aaltat

pr closed time in 5 hours

issue closedMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

Describe the bug I created a trace zip file using running a few test in Ride. I checked the trace.zip exists and contains files. That all checks out. When running "rfbrowser show-trace -F <location> of file it keeps telling me that the file does not exists (FileNotFoundError). I'm a 100 procent sure the file does exists. To check this I copied the argument to rfbrowser (the File parameter) and pasted that in TotalCommander. TotalCommander navigated directory to the File. This is a check to see that a given filename exists and can be found.

Any idea how to fix this ? Or how to start the trace by directly accessing the playwright component ?

To Reproduce

  1. run "rfbrowser init" , to ensure all libraries are up-to-date
  2. Run test that has parameter "tracing=trace.zip" on the New Context keyword used
  3. run "rfbrowser show-trace -F <complete path to trace.zip>" in my case the file was: "c:\users<userid>\AppData\Local\Temp\RIDEozn6tf.d\trace.zip" Notice that are NO spaces which could throw off the rfbrowser command.
  4. Get the error FileNotFoundError

Expected behavior trace contained in zipfile is shown

Screenshots

  • na

Desktop (please complete the following information):

  • Windows 8
  • Browser 5.10
  • Ride 1.7.4.2
  • robotframework 4.0.3
  • Node 14
  • Python 3.7.3 (64 bits)

closed time in 5 hours

emakaay

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

Interesting, I can not reproduce the problem. Using the shell=True fixes the problem and passing own enviroment

emakaay

comment created time in 5 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

changed function 'show_trace' from file entry.py to:

def show_trace(file: str): print(f"Opening file: {file}") playwright = INSTALLATION_DIR / "node_modules" / "playwright" local_browsers = playwright / ".local-browsers" # os.environ["PLAYWRIGHT_BROWSERS_PATH"] = str(local_browsers) environment = os.environ.copy() environment['PLAYWRIGHT_BROWSERS_PATH'] = str(local_browsers) trace_arguments = [ "npx", "playwright", "show-trace", file, ] subprocess.run(trace_arguments, env=environment, shell=True)

and run again (rfbrowser show-trace -F c:\ws\trace.zip) and got: c:\Python37\Lib\site-packages\Browser>rfbrowser show-trace -F c:\ws\trace.zip Opening file: c:\ws\trace.zip Traceback (most recent call last): File "C:\Python37\Lib\site-packages\Browser\playwright.py", line 29, in <module> from .base import LibraryComponent ModuleNotFoundError: No module named 'main.base'; 'main' is not a package

Note: also tried without copying the current environment, but then i couldn't find the npx program

From the commandline I get the same error:

c:\Python37\Lib\site-packages\Browser>set PLAYWRIGHT_BROWSERS_PATH=c:\Python37\Lib\site-packages\Browser\wrapper\node_modules\playwright.local-browsers

c:\Python37\Lib\site-packages\Browser>npx playwright show-trace c:\ws\trace.zip Traceback (most recent call last): File "C:\Python37\Lib\site-packages\Browser\playwright.py", line 29, in <module> from .base import LibraryComponent ModuleNotFoundError: No module named 'main.base'; 'main' is not a package

On Sat, Jun 19, 2021, 18:38 Tatu Aalto ***@***.***> wrote:

Most likely using the env argument in the run will resolve issue.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarketSquare/robotframework-browser/issues/1085#issuecomment-864428655, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARLATWNJJKLQYZGT35HSDNLTTTBXNANCNFSM467BDAKQ .

emakaay

comment created time in 7 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

Most likely using the env argument in the run will resolve issue.

emakaay

comment created time in 8 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

Base refers to this folder https://github.com/MarketSquare/robotframework-browser/tree/master/Browser/base

And library manipulates the environment in here https://github.com/MarketSquare/robotframework-browser/blob/master/Browser/entry.py#L91

emakaay

comment created time in 9 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

Maybe. But I can't find the code were the PATH is set explicitly

On Sat, Jun 19, 2021, 17:39 Tatu Aalto ***@***.***> wrote:

Then it could be that we set PATH inside of the command .

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarketSquare/robotframework-browser/issues/1085#issuecomment-864421942, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARLATWNCH7S3WTUBRUJR76DTTS23HANCNFSM467BDAKQ .

emakaay

comment created time in 9 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

Then it could be that we set PATH inside of the command .

emakaay

comment created time in 9 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

That's fine. If I can help in any way .. Just ask. But this import statement is looking strange to me.

I don't understand what .base refers to

On Sat, Jun 19, 2021, 17:25 Tatu Aalto ***@***.***> wrote:

Interesting. I did not see that error in my windows, athough I am using Python 3.9. I need to debug it further at some later point.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarketSquare/robotframework-browser/issues/1085#issuecomment-864420336, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARLATWJVDZIQ7RUNMX3TXWTTTSZFPANCNFSM467BDAKQ .

emakaay

comment created time in 9 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

When running 'rfbrowser --help' I don't get this error.

On Sat, Jun 19, 2021, 17:31 Tatu Aalto ***@***.***> wrote:

Do you see the error if you run rfbrowser --help command?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarketSquare/robotframework-browser/issues/1085#issuecomment-864421047, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARLATWJLJB5XFQ2TKNYMD33TTSZ6HANCNFSM467BDAKQ .

emakaay

comment created time in 9 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

Do you see the error if you run rfbrowser --help command?

emakaay

comment created time in 9 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

Interesting. I did not see that error in my windows, athough I am using Python 3.9. I need to debug it further at some later point.

emakaay

comment created time in 10 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

Hello Tatu,

After adding 'shell=True' I get the following error:

C:\Python37\Lib\site-packages\Browser>rfbrowser show-trace --file c:/ws/trace.zip Opening file: c:/ws/trace.zip Traceback (most recent call last): File "C:\Python37\Lib\site-packages\Browser\playwright.py", line 29, in <module> from .base import LibraryComponent ModuleNotFoundError: No module named 'main.base'; 'main' is not a package

C:\Python37\Lib\site-packages\Browser>rfbrowser show-trace --file c:\ws\trace.zip Opening file: c:\ws\trace.zip Traceback (most recent call last): File "C:\Python37\Lib\site-packages\Browser\playwright.py", line 29, in <module> from .base import LibraryComponent ModuleNotFoundError: No module named 'main.base'; 'main' is not a package

But the zip file isn't a problem anymore 🤣

On Sat, Jun 19, 2021, 16:53 Tatu Aalto ***@***.***> wrote:

I think in Windows OS, command needs a shell. Could you also try it, by changing this line https://github.com/MarketSquare/robotframework-browser/blob/master/Browser/entry.py#L98 to subprocess.run(trace_arguments, shell=True)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/MarketSquare/robotframework-browser/issues/1085#issuecomment-864416563, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARLATWJI4VJPDRVDOQO46RDTTSVNJANCNFSM467BDAKQ .

emakaay

comment created time in 10 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

@aaltat

@emakaay already contributed before to bug

emakaay

comment created time in 10 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

@all-contributors please add @emakaay for bugs

emakaay

comment created time in 10 hours

issue commentMarketSquare/robotframework-browser

rfbrowser show-trace can't find zipfile

I think in Windows OS, command needs a shell. Could you also try it, by changing this line to subprocess.run(trace_arguments, shell=True)

emakaay

comment created time in 10 hours