-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem with Parallelization Options #353
Comments
this is the error 👍
|
since you are using the default ROBOT_THREADS of 1 you will not be actually using pabot or its options env. So you can either use ROBOT_OPTIONS instead of PABOT_OPTIONS (since you dont have any pabot specific things it doesnt matter), or set ROBOT_THREADS to > 1 and keep the same command. |
If I need it because I have three txt files,
the second: firefox_config.txt the third: ie_config.txt I want to run these three configuration files at the same time i.e. parallelization I hope you can understand me |
if I understand correctly le ROBOT_OPTIONS is to tag the test |
something like this should work |
but locally without the use of docker everything is ok but with docker I have problems [ ERROR ] Opening argument file 'chrome_config.txt' failed: [Errno 2] No such file or directory: 'chrome_config.txt' |
well where in the docker container is the file? if its in the /opt/robotframework/tests folder do |
It is the command that i run locally and and it works pabot --argumentfile1 chrome_config.txt --argumentfile2 firefox_config.txt --argumentfi |
thank you the last command line that you sent me helped me and it is working |
👍 glad it worked |
Hello, |
I have two test files, one for the recipe environment and the other for the preproduction environment and I want to run them as desired with parallel browsers but once I run the command I have an error No such file or directory Here is the command line |
The error is Opening argument file '/opt/robotframework/tests/chrome_config.txt' failed: [Errno 2] No such file or directory: '/opt/robotframework/tests/chrome_config.txt' |
Are you sure |
When I do ${PWD} only, It will not be able to make a choice on a test file so it will run all the tests that are in recipe and preprod as well my pipeline is like that
|
The |
I did it but I have the same error |
Can you help me @UltimateDogg and @ppodgorsek |
I think the problem arises when I add the test folder on 'pwd' the volume mount does not take the other folders and files |
The
If the former is good, I'd try checking the latter by making sure:
PS: Next time you comment on a closed ticket, could you reopen it at the same time please? If you can't reopen it, it would probably be best to simply open a new ticket. It makes it much easier to track, otherwise it gets lost. |
Sorry I didn't have the possibility to reopen it |
if I put |
Is |
at the same level |
Well, I guess you have your answer in that case! :) I'd suggest keeping your |
I tried to put it in but when I do it I have other concerns i.e. it does not see the files which are in resources but still I test what you just told me |
I did it but it doesn't see the files that are in resources [ ERROR ] Error in file '/opt/robotframework/tests/Alertes.robot' on line 2: Resource file '../Resources/common.robot' does not exist. |
It's exactly the same problem. You need to remember what Docker has access to. |
I didn't have this problem before |
I'm sorry to say but, with the screenshot you sent, it is simply impossible that you had access to |
OKAY |
@ppodgorsek I fixed the problems with these directories but another one appears as `==============================================================================
|
This issue seems related to your tests. |
Hello,
I'm having trouble with the docker command for the parallelize option.
I configured the browser, the platform and a specific version in ac. by launching the command I passed it -e PABOT_OPTIONS = "- argumentfile chrome_config.txt"
*here is the command to run
docker run --rm -u root --shm-size=1g -v ${PWD}/reports:/opt/robotframework/reports:Z -v ${PWD}:/opt/robotframework/tests:Z -e PABOT_OPTIONS="--argumentfile chrome_config.txt" sonatel_rbfwk:latest
here is the file resource.robot
`** Settings ***
Library SeleniumLibrary
@{_tmp}
... browserName: ${browserName},
... platform: ${platform},
... version: ${version},
... name: ${SUITE_NAME},
... build: Python-Robot-Selenium-VDC
${browser} ${browserName}
${capabilities} ${EMPTY.join(${_tmp})}
${remote_url} https://saucelab
*** Keywords ***
Open login page
Open browser https://www.saucedemo.com/v1/ browser=${browser}
... remote_url=${remote_url}
... desired_capabilities=${capabilities}
Open inventory page
Open browser https://www.saucedemo.com/v1/inventory.html browser=${browserName}
... remote_url=${remote_url}
... desired_capabilities=${capabilities}
Login As Standard User
Login As Invalid User
Add Item To Cart
Remove Item From Cart
Has Items In Cart
End Session
Run Keyword If '${TEST_STATUS}'== 'PASS' Execute Javascript sauce:job-result=passed
... ELSE Execute Javascript sauce:job-result=failed
Close Browser`
*Here is the file txt
--variable browserName:chrome --variable platform:windows 10 --variable version:latest
The text was updated successfully, but these errors were encountered: