How to run the test in windows ?

Asked by Varun Jain

I am looking for a framework for my project and found SST to be a good fit.
I tried to execute my test but on the command prompt sst/sst-run command is not recognized

Please let me know how to execute my tests on Windows

A tutorial /documentation will be helpful

Question information

Language:
English Edit question
Status:
Answered
For:
selenium-simple-test Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Corey Goldberg (coreygoldberg) said :
#1

for windows...

- `pip installl sst` or `easy_install sst` from PyPI
- this will create `sst-run` inside C:\Python27\Scripts
- you can invoke a test with like `> C:\Python27\python C:\Python27\Scripts\sst-run my_test`

Revision history for this message
Kate Mueller (kmueller) said :
#2

I've had success putting tests in C:\Python27, then in Windows terminal cding to C:\Python27 and typing:
python sst-run my_test_name

It has not worked without the python at the start, but with python it works great.

Revision history for this message
pratik shah (pratik-shah) said :
#3

Has anyone been able to figure out why it is required to have the test in the same directory as the python executable? Even if I provide the full path to the file a single test case will not execute. The same problem does not exist for directory path when using the -d flag.

The test directory is always '.' when attempting to run the test python script that is NOT in the python executable directory.

This is seriously blocking me from a webUI interface I am trying to build, any help would be much appreciated.

Thank you.

Revision history for this message
Corey Goldberg (coreygoldberg) said :
#4

use the '-d' flag to specify an alternate directory where your tests reside.

Can you help with this problem?

Provide an answer of your own, or ask Varun Jain for more information if necessary.

To post a message you must log in.