Navigation

    SOFTWARE TESTING

    • Register
    • Login
    • Search
    • Job Openings
    • Freelance Jobs
    • Services
    • Conferences
    • Courses
    1. Home
    2. Anderson
    A
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups

    Anderson

    @Anderson

    1
    Reputation
    4
    Posts
    2
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online

    Anderson Follow

    Best posts made by Anderson

    • RE: How to get logs with failed tests from the server (pytest)?

      The documentation suggests doing this using hooks. Sample code (should be in conftest.py file):

      import pytest
      import os.path
      
      @ pytest.hookimpl (tryfirst = True, hookwrapper = True)
      def pytest_runtest_makereport (item, call):
           # execute all other hooks to obtain the report object
           outcome = yield
           rep = outcome.get_result ()
      
           # we only look at actual failing test calls, not setup / teardown
           if rep.when == "call" and rep.failed:
               mode = "a" if os.path.exists ("failures") else "w"
               with open ("failures", mode) as f:
                   # let's also access a fixture for the fun of it
                   if "tmpdir" in item.fixturenames:
                       extra = "(% s)"% item.funcargs ["tmpdir"]
                   else:
                       extra = ""
      
                   f.write (rep.nodeid + extra + "\ n")
      

      https://docs.pytest.org/en/latest/example/simple.html#post-process-test-reports-failures

      posted in Automated Testing
      A
      Anderson

    Latest posts made by Anderson

    • Create a block size in jmeter with csv config? Each thread should pickup specific set of values

      How can we create a block size in JMeter with CSV config?

      I have 5 multiple users and one Bulkuser.csv file with 4 columns,

      The file has around 2000 values. I wish to create a block of 400 values for my 5threads[users]. 1st USER WILL USE 1st – 400 VALUES (Values in ROW 1-400)

      2nd USER WILL USE NEXT 5 VALUES (Values in ROW 401-800) and so on..

      How can we implement this? is there a beanshell pre-processor script for each data read and decide to read the specific file as per thread number?

      posted in Performance
      A
      Anderson
    • Do you think Manual testing is dying or it is evolving?

      Can all the manual testers be fired and replaced with automation? It looks like Manual testing is dying because it's not evolving, but I can be wrong.
      What do you think about it?

      posted in General Discussion
      A
      Anderson
    • RE: How to get logs with failed tests from the server (pytest)?

      The documentation suggests doing this using hooks. Sample code (should be in conftest.py file):

      import pytest
      import os.path
      
      @ pytest.hookimpl (tryfirst = True, hookwrapper = True)
      def pytest_runtest_makereport (item, call):
           # execute all other hooks to obtain the report object
           outcome = yield
           rep = outcome.get_result ()
      
           # we only look at actual failing test calls, not setup / teardown
           if rep.when == "call" and rep.failed:
               mode = "a" if os.path.exists ("failures") else "w"
               with open ("failures", mode) as f:
                   # let's also access a fixture for the fun of it
                   if "tmpdir" in item.fixturenames:
                       extra = "(% s)"% item.funcargs ["tmpdir"]
                   else:
                       extra = ""
      
                   f.write (rep.nodeid + extra + "\ n")
      

      https://docs.pytest.org/en/latest/example/simple.html#post-process-test-reports-failures

      posted in Automated Testing
      A
      Anderson
    • Can you give an advice on what tool to use for emulating different resolutions of smartphones?

      I need to test a web application on different popular mobile resolution. So I need a good simulation tool, because of lack of mobile devices
      It's better if you can share a free tool, that you used previously and works correct, displaying web sites in different resolutions

      posted in Mobile Testing
      A
      Anderson