Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    slowmonkey
    @slowmonkey
    @RoyceTheBiker_gitlab are you able to explain the difference in approach with what you've provided vs what @mendhak posted? I'm a little confused.
    RoyceTheBiker
    @RoyceTheBiker_gitlab
    @mendhak has a separate container for the testserver and another for firefox. The problem I was having was with Chrome. My QA team uses Chrome mostly so I really wanted a solution that could do Chrome. @mendhak's solution uses prebuilt node and firefox, so there is a lot less downloading of packages. They could be smaller in size as they are optimized for the specific task. I chose Debian because I plan to expand on the tool and give it a management frontend so that QA staff can use the tool without needing to be experts on comand line.
    RoyceTheBiker
    @RoyceTheBiker_gitlab
    @slowmonkey the docker setup that @mendhak provided is a different approach. I thought about splitting my setup into multiple containers, there are some reasons to do that. I could revisit that later.
    mendhak
    @mendhak

    @RoyceTheBiker_gitlab Selenium provides a selenium/standalone-chrome:latest image as well, I use that for Chrome tests.

    I think the difference is, my approach is focused on CI/CD running and running headless locally.
    Your container seems focused on providing a managed tool to QA people so they don't have to worry about what docker is. I wouldn't use that on a CI server though, as you said before, it's doing too much.

    RoyceTheBiker
    @RoyceTheBiker_gitlab
    @mendhak the selenium-chrome image would be cool. I think it would solve the memory issue with Chrome, but also introduce a problem of not being able to run Chrome and Firefox tests from the same smash set, maybe. Someone with more selenium experience then myself would know.
    RoyceTheBiker
    @RoyceTheBiker_gitlab
    I think the next thing I want to do is connect to the Docker using Jenkins.
    mendhak
    @mendhak
    Yeah to do browsers together you essentially need a Selenium Hub. I've been looking at running Selenium Grid in ECS: https://code.mendhak.com/selenium-grid-ecs/
    Snoopiisz
    @Snoopiisz_twitter
    Hi guys, i heve a question, i need to import test in other file test with special path like this :
    image.png
    have you some solution for import test in other test with out use smashtest + path command ?
    Peter Tesler
    @vptes1
    @Snoopiisz_twitter I would advise going into /Tests and running smashtest --recursive
    In smashtest there is no importing. You just have to include the files you want to run in the smashtest command.
    Snoopiisz
    @Snoopiisz_twitter
    ok thanks :) i found a solution, for running 1,2,3 or more test i juste make a script python for regroupe all .smash in the temporary .smash and run it, with this methode i can choose test i want run with a big recursive project
    snoopiisz
    @snoopiisz
    why choose python? because it is much simpler and faster just to read the files in recursive mode.
    File management is also done much faster, especially on fairly large volumes.
    I also find it much easier & faster to integrate python into a CI / CD routine than nodeJS.
    Craig Waite
    @craigvl

    I think that you have mentioned this before but I am unable to find in the doco.

    I have a test that sets a username and password and don't want these values to show in the report?

    Peter Tesler
    @vptes1
    @craigvl You can use the +? modifier to hide the whole step from the report, or make it a step with a code block and set the password from the code block
    Craig Waite
    @craigvl
    Thanks
    simonhorner
    @simonhorner
    Hi, can anyone tell me how I can set the class(Name) on an element?
    Marton Sari
    @sarimarton
    You can use webdriver code (though I wonder why you want to do that)
    simonhorner
    @simonhorner
    Thanks, I'm trying to implement a test for file upload. I've tried to interact with the file browser but couldn't find a way. I want to add a class to make the file path input textbox visible so I can enter the filename in it.
    Morgan Leroux
    @MrGlox
    Hi guys ! First of all, Thanks for your amazing testing solution ! I just have some struggle with the tab key press gestion, you have already [enter] but I can't found something reladted with others keys
    Peter Tesler
    @vptes1
    @MrGlox There's a link in the documentation to https://www.selenium.dev/selenium/docs/api/javascript/module/selenium-webdriver/lib/input_exports_Key.html [tab] should work as well
    Morgan Leroux
    @MrGlox
    Alright, didn't know about that ! I tried something alike by reflex, maybe I was wrong somewhere but I now I can be sure it will works. Thanks !
    snoopiisz
    @snoopiisz
    I guys, i think the color of reporting is no readable for CI/CD darkgrey on black not good, we can change this color ? why no white color ?
    Peter Tesler
    @vptes1
    @snoopiisz you can always submit a pull request for allowing users to customize the background color of the report. The majority of devs/testers prefer a dark theme which is why we went with that.
    shibupanda
    @shibupanda
    Can I get doc for config.json setup for smashtest
    shibupanda
    @shibupanda
    Is there any plan to support Appium keywords?
    How can I override default timeout for steps? Where to add that.
    Peter Tesler
    @vptes1
    @shibupanda
    1. The first section of https://smashtest.io/running-tests/command-line-options has info on the config file, smashtest.json
    2. In the future, yes. Feel free to kickstart this by submitting a pull request of your own! :)
    3. See setStepTimeout() at the bottom of https://smashtest.io/language/code-reference
      e.g.,
      Do initializations {
       setStepTimeout(100);
      }
       Open Chrome   // this step and anything after it will timeout after 100 secs
    shibupanda
    @shibupanda
    Thanks @vptes1
    Definitely I love to contribute
    Morgan Leroux
    @MrGlox
    Hi ! How can I test a file download in smashtest ? The interaction is just a click but is there a way to listen to a download process ?
    Morgan Leroux
    @MrGlox
    Also, is there a way to trigger non parallel tests in only one step ? After a login for example I want many tests started
    Peter Tesler
    @vptes1
    I don't think webdriver can track a download like that @MrGlox
    And not sure what you mean by your second ques sorry
    Morgan Leroux
    @MrGlox

    Alright for first.

    For the second :

    - Global start !!
    
        Init session
            Change language
            Auth tests
            Access register
            Register
    
        Init session
            Load env
                Login
    I want to execute only the first init and have all others in parallel then the second part executed in parallel after login. But actually with the good configuration, the tests are only playing one by one in any cases.
    Peter Tesler
    @vptes1
    Sorry I don't think I understand. Can you list the steps from the example above in the order you'd like them to execute?
    Morgan Leroux
    @MrGlox
    I want to test, Change language, Auth tests, Access register, Register in parrallel and before the login. And then execute login branch with all the back office tests in parrallel too. But, !! put all branches inline. The app is here if you want to see https://bit.ly/39aWSJe
    Peter Tesler
    @vptes1
    Then remove the !! and the branches will run in parallel
    Morgan Leroux
    @MrGlox
    Yeah I know, but I want to play the main tests one by one, and then all inner branches in parrallel.
    Morgan Leroux
    @MrGlox
    I have to test all authentications features before connect and then execute all authenticated functions
    slowmonkey
    @slowmonkey

    Hi,

    I'm trying to run a test where I need to hit a site that's got a self-signed or untrusted cert.

    I'm trying the following:

    Open Chrome
    
        Set custom capabilities {
            g('browser capabilities', {
                // This is the Capabilities object. Capabilities go here.
                // See withCapabilities()
                'acceptInsecureCerts': true
            });
        }
    
            Navigate to 'https://self-signed.badssl.com/'
    
                Verify '#content > h1:nth-child(1)' is visible
    
            Navigate to 'https://google.com'
    
                Type 'hello world[enter]' into 'textbox'

    But that's not really working. The google.com branch passes but the bad self-signed branch fails.
    Are you able to help? Am I setting the capabilities correct?

    slowmonkey
    @slowmonkey

    @MrGlox

    Hi ! How can I test a file download in smashtest ? The interaction is just a click but is there a way to listen to a download process ?

    Seeing that smashtest is a wrapper of selenium testing file downloads is not a recommended practice.

    Here is the link for what they have to say about this.

    https://www.selenium.dev/documentation/en/worst_practices/file_downloads/

    Good luck.

    Craig Waite
    @craigvl
    Is there anyway to be able to ignore if a step or function fails? Checked the doco and unable to find anything on this?
    Peter Tesler
    @vptes1
    I don't believe so. You can implement a step to be able to continue, that is, if it fails the branch continues executing (but will still be marked as failed in the end).
    vanhai493
    @vanhai493
    Hi team!

    I'm newbie learn smashtest. I want take screenshot, but show error `` Error: The functionTake screenshot` cannot be found.

    Trace:
    Open Chrome helloworld.smash:2 --> browser.smash:19
    Use browser browser.smash:22 --> browser.smash:58
    Navigate to 'http://10.124.57.80:8080/' helloworld.smash:4 --> browser.smash:121
    Take screenshot helloworld.smash:7
    ```

    vanhai493
    @vanhai493
    https://prnt.sc/sn50sp this's code for me
    Peter Tesler
    @vptes1
    Hi @vanhai493 there is no such thing as a built-in "Take screenshot" step. You may want to turn on screenshots via a flag (run smashtest --help).