Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    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).
    Also, you may want to either indent that last step, or use the .. modifier
    vanhai493
    @vanhai493
    thank so much!
    vanhai493
    @vanhai493
    I using smashtest --screenshots=true but code auto take screen shot after each step. but I want take screenshot when I want, So is there any way?
    mdilovar
    @mdilovar
    Set user to type Admin
    Set user to type Read-Only
        Verify user can login
        Verify user can open an article
        // a bunch of other checks

    In the case above, can I limit parallelism so that Set user to type Admin and Set user to type Read-Only are never run in parallel?

    I know I can do:

    Start tests !
        Set user to type Admin
        Set user to type Read-Only
            Verify user can login
            Verify user can open an article
            // a bunch of other checks

    But that would remove all parallelism. I would like to still take advantage of some parallelism by first setting the user to Admin and running all the Verify steps in parallel AND THEN setting the user to Read-Only and running all the Verify steps in parallel again.

    mdilovar
    @mdilovar
    Is there any way I can do something like if(buttonDsiplayed) { do something;}?
    Craig Waite
    @craigvl
    @vanhai493 I think that a github issue has been created for this #51
    id7digital
    @id7digital
    Hi Guys, I'm running multiple parallel branches at a time, currently 4 for a large number of tests, a lot of the tests share the same function however and sometimes I get a timeout error - could it be the case the function is exclusive to one branch at a time and is possibly why this happens?
    Lalita Odang
    @Regenbogenkii
    Hi everyone, any possibility to test authentication via facebook and google. When I manually click on facebook login button on my site it popup authenticated fb window for filling up facebook account then the window close and login to my site. But with running on smashtest nothing happen after tell it to click the button. So anyone know how to make test on this thing.
    1 reply
    Lalita Odang
    @Regenbogenkii
    I have another question. How can I check if the exact element has "active" class or a specific color when active
    Craig Waite
    @craigvl

    @Regenbogenkii I think you would want to define a prop that has an element finder that describes the element with the active class you can then verify this prop after you have made the element active

    * On todomvc page {
            props({
                'updateButton': `.update`,
                'updateButtonActive': `.update.active`
            });
        }
    
    * When Update button is clicked
        Click  'updateButton'
    
    * Then Update button is active
        Verify 'updateButtonActive'

    You can then use the above functions something like:

    Given I am at todomvc
        When Update button is clicked
            Then Update button is active
    Craig Waite
    @craigvl
    So quiet in here? Everyone still using smashtest?
    Marton Sari
    @sarimarton
    I just introduced smashtest at my new company, a relatively big US educational business. We're a small team owning 2 complex UI projects, and I was doing a spike for having a test strategy. I did a smashtest POC and they really liked it, but I ran into that dreaded ECONNERROR issue which was discussed earlier here, and there's a (now closed, due to inactivity) issue for it on github.
    I would hate to use cypress, but this problem is a showstopper currently
    Marton Sari
    @sarimarton
    Disabling parallel running seems like a workaround
    Marton Sari
    @sarimarton
    Option 1 mentioned at https://smashtest.io/getting-started/setup indeed works, but it's misleading that mac users are led to use webdriver-manager instead of selenium-standalone which is mentioned for Windows users. To me, only the "windows" version worked, that is, selenium-standalone.