<commit_before># bbutton-tests
BButton project Tests repository 


## How to launch the tests

### Requirements

To the tests need python 2.7 and the required libs listed in the requirements file

```
pip install -r requirements.txt
```  

### Config your environment 

In the instances.json file set your ips of the instances under test
Set your ports and config in the properties.json file (if needed)
 
### Launch the tests: 
The tests are tagged to be launched.


Smoke tests are under the tag "ft-smoke" 
 It validate the access and up&running enviroment

``` 
 behave tests/ --tags=ft-smoke
```

Happy path tests are under the tag "ft-happypath" 
 It validate the basic happy path flows that includes the services, subservices, buttons provision and four kinds of flows interaction with the platform

```
 behave tests/ --tags=ft-happypath
```

Once the buttons are created if you want to relaunch just the flows (with the same values or not)
```
 behave tests/ --tags=hp-button-flow
```
or just a type os sync flow

```
 behave tests/ --tags=hp-async-flow
```
```
 behave tests/ --tags=hp-sync-flow
```<commit_msg>improved readme<commit_after># bbutton-tests
BButton project Tests repository 


## How to launch the tests

### Requirements

To launch the tests need python 2.7 and the required libs listed in the requirements file


```
git clone https://github.com/telefonicaid/bbutton-tests.git
cd bbutton-tests/
(optional) git checkout develop
pip install -r requirements.txt
``` 


### Config your environment 

In the instances.json file set your ips of the instances under test
Set your ports and config in the properties.json file (if needed)
 
```
vi tests/properties.json 
vi tests/instances.json
```
 
 
 
### Launch the tests: 
The tests are tagged to be launched.


Smoke tests are under the tag "ft-smoke" 
 It validate the access and up&running enviroment

``` 
 behave tests/ --tags=ft-smoke
```

Happy path tests are under the tag "ft-happypath" 
 It validate the basic happy path flows that includes the services, subservices, buttons provision and four kinds of flows interaction with the platform

```
 behave tests/ --tags=ft-happypath
```

Once the buttons are created if you want to relaunch just the flows (with the same values or not)
```
 behave tests/ --tags=hp-button-flow
```
or just a type os sync flow

```
 behave tests/ --tags=hp-async-flow
```
```
 behave tests/ --tags=hp-sync-flow
```
{'fraction_non_alphanumeric': 0.09150865622423743, 'fraction_numerical': 0.0016488046166529267, 'mean_word_length': 3.844311377245509, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2779981', 'n_tokens_mistral': 741, 'n_tokens_neox': 672, 'n_words': 321}