Git Product home page Git Product logo

trs's Introduction

TRS Manager

It is an automatic test running application. It lets you to run a set of test's applications. You can easy configure running process with .xml project file. Working on OS Windows.

Reporting

All information about your test(s) after running is saved in .txt and .html formatt and you can check if some tests failed and why. If you run your test(s) immediately, you can see that information on screen in console mode.

How to use

  1. Create directory “TestSuite”.
  2. Copy trs.exe and TRSLibrary.dll into “TestSuite”.
  3. Create Suite.xml file there as in the example.xml

Add test execution file in “TestSuite” directory and set execution tag with name of your execution file into Suite.xml file Set return value of your test into Suite.xml file in result tag. Open command line in “TestSuite” directory
Execute “trs.exe run -p .”

Console commands

  1. Run - run tests.
  2. List - write list of tests in current folder.
  3. Validate - write information about current folder (if everithing is Ok with .xml and .exe files).
  4. Pause - pause tests running.
  5. Stop - stop tests running.

Console additional parameters

  1. -p D:\TestStructure - set path to your test's folder
  2. -n Test1 - set name of test(s) which you want to run
  3. -t Release - set tag of test(s) which you want to run
  4. -j 17 - set amount of threads for test(s) running
  5. -log D:\TestStructure - set path for .txt reporter
  6. -hlog D:\TestStructure - set path for .html reporter

Additional information

There is more comfortable way to use it if you don't like to work with console! Just run TRSui.exe file and you will be able to manipulate functionality in the other way. You will see application window where you will be able to add you folder(s), to set all parameters, to watch information about each test just by clicking on right mouse button on it in tree view. If you will run test(s) by clicking Run button, you will see the result of each test's running in the same window. If you don't want to run test(s) immediately, you can even set time for application to do this automatically (once or more).

trs's People

Contributors

netmisha avatar olexandr-semeniuk avatar olehonyshchak avatar

Watchers

James Cloos avatar  avatar  avatar  avatar  avatar

trs's Issues

Waitfor meshanism

Possible enhancement for the program may be possibility to indicate list of dependent tests separated by spaces or some characters rather than the single test

Verification

When exe file is situated at trs folder and xml lays in folder without any .exe file and has path to the .exe in trs folder - verification is failed.

MaxTime parsing

When we writes "1s1s1s100ms" this time is calculated as "1000 + 1000 + 1000 + 100". And I do not know whether to treat it like a bug or like a feature :)

Result checking

When we write in "result" line everything which is not pure decimal number (e.g. "hello", "as123", "_1" ) it is treated like a 0 and therefore can return "passed" result. Also it treat each string which starts with decimal numbers just like this subsequence with decimal nubmbers (e.g. "123^2" = "123" , "123e2113" = "123" ). As for me it must be handled by verify function

Timeout presice

Under different circumstances out program treat execution which ended on 0-500 ms earlier then max_time as the timeout

fails when name of test is written, put path is absent

xml file was near trs.exe file! So, i don't need to put path to than file for Console application(because it's current folder). Next command caused failing:
trs.exe run -n "Test 1"
if you put "trs.exe list -n "Test 1"", list works great

Amount of parameters

If write only command it returns an error "Incorect amount of parameres" when must execute Run in current directory

Concurrent program exucution fails

Program failed with an logger error. Possibly, it is due to trying to write to the logs file by second program instance while firs one is still in progress.

Parameters' duplication

If write the same parameter several times and if the total amount of written parameters will not overhead the possible boundaries of parameters, program will execute as if user input only last of duplicated parameter. In case of duplication path parameter - the memory leak will occur

Bad processing exe path

When there is .exe path like "../TestData" and .exe name is "test.exe"getCommandLine return "../TestDatatest.exe" rather than "../TestData/test.exe"

incorrect amount of tests

Windows
Console Application

command line arguments: list ../TestData

list command returned 18 tests
run command returned 25 tests

(when tests are running,run command sets in "amount of tests" amount of tests that were run (so if one test needs to be run more than once, run command writes it as two (or more) tests)

Incorrect tree view

Tree shows each test for each suite, but not shows tree of folders of suits

Verify function don't show anything to user

If you put verify command, all you'll see on screen will be "Press any key to continue", so user won't know if his folders tree with files is correct, or not, if his xml-files are correct or not, if there are no dead locks between tests etc.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.