Skip to content
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

incompréhension sur robot framework #1929

Open
Cedclaud237 opened this issue Feb 7, 2025 · 2 comments
Open

incompréhension sur robot framework #1929

Cedclaud237 opened this issue Feb 7, 2025 · 2 comments

Comments

@Cedclaud237
Copy link

Cedclaud237 commented Feb 7, 2025

bonjour je suis nouveau dans le dev surtout celui de l'automatisation j'ai essyé ce script comme dans les docs que jai eu à lire mais il ne passe pas , quelqu'un pourrait m'aider à comprendre mon erreur ?
*** Settings ***
Library seleniumlibrary

*** Variables ***
${URL} https://www.google.com/
${BROWSER} firefox

*** Test Cases ***

Menu behavior
open browser https://www.google.com/

*** Keywords ***
open browser
open browser ${URL} ${BROWSER}
maximize browser windown
sleep 4s
[Teardown] browser

@emanlove
Copy link
Member

emanlove commented Feb 7, 2025

@Cedclaud237 It may be that your custom keyword is using the same name as the library keyword for "Open Browser". Try something like instead ..

Il se peut que votre mot-clé personnalisé utilise le même nom que le mot-clé de la bibliothèque pour "Open Browser". Essayez plutôt quelque chose comme ..

*** Settings ***
Library    SeleniumLibrary

*** Variables ***
${URL}    https://www.google.com/
${BROWSER}    firefox

*** Test Cases ***
Menu behavior
    My Custom Open Browser

*** Keywords ***
My Custom Open Browser
    [Teardown] Close All Browsers
    open browser ${URL} ${BROWSER} 
    maximize browser window
    sleep 4s

[note I have not tried out this code .. Remarque : je n'ai pas essayé ce code]

@emanlove
Copy link
Member

emanlove commented Feb 7, 2025

Also be careful with spaces and capitalization as Robot Framework can take this into consideration in many places. Like the name of the library you import. It needs to be "SeleniumLibrary" and not "seleniumlibrary".

Faites également attention aux espaces et aux majuscules, car Robot Framework peut en tenir compte à de nombreux endroits. Comme le nom de la bibliothèque que vous importez. Il doit s'agir de "SeleniumLibrary" et non de "seleniumlibrary".

Here is a good introductory course by Paul Merrill that covers some of the syntax and concepts if helpful. Sorry it is in English only.

Voici un bon cours d'introduction de Paul Merrill qui couvre une partie de la syntaxe et des concepts si cela peut être utile. Désolé, il n'est disponible qu'en anglais.

https://testautomationu.applitools.com/robot-framework-refresh/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants