SPONSORS:






User Tag List

Thanks Thanks:  0
Likes Likes:  0
Dislikes Dislikes:  0
Results 1 to 3 of 3
  1. #1
    Apprentice
    Join Date
    Jan 2015
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0

    Question Python Framework for Testing

    I am new to python..

    1) Which is best unit test framework in Python for windows command line application? nose, unittest etc...?
    2) How to execute python scripts from one host machine to different machines?
    For e.g. we have test steps which require to run on different machines, step1 on windows1 machine, step2 in windows2 machine etc. now I want to start execution from one host machines (executor) but actual test should run on different machines (step1 on one and step2 on machine two). And final result file should be generate on host machine (executor)

    Please answer this, as I need to start ASAP..

  2. #2
    SQA Knight
    Join Date
    May 2006
    Location
    Playa Del Rey, California, United States
    Posts
    2,647
    Post Thanks / Like
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)
    Total Downloaded
    0
    Quote Originally Posted by drajpura1 View Post
    I am new to python..

    1) Which is best unit test framework in Python for windows command line application? nose, unittest etc...?
    2) How to execute python scripts from one host machine to different machines?
    For e.g. we have test steps which require to run on different machines, step1 on windows1 machine, step2 in windows2 machine etc. now I want to start execution from one host machines (executor) but actual test should run on different machines (step1 on one and step2 on machine two). And final result file should be generate on host machine (executor)

    Please answer this, as I need to start ASAP..
    I think NoseTest2 is a good base. For configurability, I've created WTF to run on top of nose to make web test configuration easy. https://github.com/wiredrive/wtframework you don't have to use the selenium piece.

    For multi machine execution, you might want to use a actor/messaging framework such as Code Connected - zeromq


    You may also want to consider commercial tools that support multi agent UI testing, I believe Squish has some python bindings, coupled with a messaging framework, you can do distributed UI testing.

    But my professional opinion is the maintainability of distributed tests are a pain. It's usually more maintain able to fake out the interactions of the 2nd actor on a request level. This makes the coordination easier, the code easier to maintain, and the ability to parallelize multiple tests much easier.
    David Lai
    SDET / Consultant
    LinkedIn profile

  3. #3
    New Member
    Join Date
    Sep 2016
    Location
    mumbai
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Total Downloaded
    0
    Nose example

    For completeness in following the styles of previous framework introductions, here is the full basic test.
    This only differs from above that I’ve added another test function.



    from unnecessary_math import multiply

    def test_numbers_3_4():
    assert multiply(3,4) == 12

    def test_strings_a_3():
    assert multiply('a',3) == 'aaa'

    1
    2
    3
    4
    5
    6
    7
    8
    9

    from unnecessary_math import multiply

    def test_numbers_3_4():
    assert multiply(3,4) == 12

    def test_strings_a_3():
    assert multiply('a',3) == 'aaa'

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Search Engine Optimisation provided by DragonByte SEO v2.0.40 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 10.71%
vBulletin Optimisation provided by vB Optimise v2.7.1 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
vBNominate (Lite) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 11:23 AM.

Copyright BetaSoft Inc.