• @Omgpwnies
    link
    English
    510 months ago

    Python is the language of choice for most test automation

    • @SpaceNoodle
      link
      510 months ago

      If I can’t do it as a Bash one-liner, I’m using Python

      • @Omgpwnies
        link
        English
        3
        edit-2
        10 months ago

        subprocess.Popen(["bash one-liner"], stdout=PIPE, stderr-PIPE, text=True)

      • @fluxion
        link
        English
        110 months ago

        I use perl, but everyone hates me and would rather rewrite my little scripts in python than bother changing a single line

        • @SpaceNoodle
          link
          110 months ago

          You’re right, everyone hates you.

            • @SpaceNoodle
              link
              110 months ago

              The good news is that you can stop using Perl at any time.

              • @fluxion
                link
                English
                110 months ago

                For quick data parsing you’ll have to pry it from my cold dead hands im afraid

                • @SpaceNoodle
                  link
                  110 months ago

                  That could be arranged. I could bash you over the head with a python.

                  • @fluxion
                    link
                    English
                    210 months ago

                    It’s a kind offer, but my head is far too hard

    • @[email protected]
      link
      fedilink
      English
      010 months ago

      Depends entirely what tests you’re automating. Java codebase? Probably Java tests too. Anything web? Tests will be JS too, etc.

      • @Omgpwnies
        link
        English
        110 months ago

        Web testing is also done in python. Selenium has support in all major Python test frameworks. I’ve done SE-only tests in Robot, hybrid SE/Python using BDD with Behave, etc.

        Unless I’m testing a language-specific API, I’m probably going to use Python…

        • @[email protected]
          link
          fedilink
          English
          110 months ago

          I’m guessing that’s because you’re a python developer though. If you’re a frontend developer who knows JS then why wouldn’t you use that for your tests? (Apart from the fact that JS is horrible, but you’ve already accepted that suffering by becoming a web dev)

          • @Omgpwnies
            link
            English
            310 months ago

            I’m a test automation developer, I’m not necessarily bound by the platform that the application is written in unless I’m writing white-box tests.