Metadata-Version: 2.5
Name: stpythons
Version: 0.1.0
Summary: Software Testing practical slips: slip-wise Selenium code, guides and Maven projects
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# stpythons

Software Testing practical slips (1 to 21), Selenium part: all code slip-wise with folder structure and file paths, guides with run steps, explanations and viva questions, plus the Maven project of each slip.

The code is Java (Selenium WebDriver and TestNG). Python is only used to view and copy it. Slip 13 has a `pom.xml` but no Java file.

## Install

```powershell
python -m pip install stpythons
```

## Use

```powershell
stpythons              # all code, slip by slip (Enter = next, a = all, q = quit)
stpythons code 8       # code of slip 8 only
stpythons code --all   # all code without pausing
stpythons txt          # save ALL_SLIPS_CODE.txt in the current folder
stpythons menu         # interactive menu
stpythons list         # all slips
stpythons start        # basics: how to write a Selenium slip
stpythons show 8       # guide for slip 8
stpythons get 8        # copy slip 8 project into .\SeleniumSlip8
stpythons export       # copy everything into .\practical-slips
stpythons viva         # viva questions
```

If PowerShell says `stpythons` is not recognized, use `python -m stpythons` instead, for example `python -m stpythons list`.

## Use from Python

```python
import stpythons

print(stpythons.list_slips())
print(stpythons.get_code(1))
print(stpythons.get_guide(1))
stpythons.export_slip(1, "my_folder")
```

## Running a copied project

You need JDK 17 or newer, Eclipse with Maven (and the TestNG plugin) and Chrome. Slip 7 also needs Firefox.
In Eclipse use File > Import > Maven > Existing Maven Projects and select the copied folder.

## Rebuild after changing the slips

```powershell
python sync.py
python -m build
```
