aboutsummaryrefslogtreecommitdiff
path: root/pairwise-tests/references/pict_syntax.md
blob: d25fb57dc64ffdb22508fcc0f6d5adb13f85baba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# PICT Syntax Reference

> **Note**: This is a placeholder file. Complete syntax documentation is coming soon!
> 
> For now, please refer to the official PICT documentation:
> - [Microsoft PICT on GitHub](https://github.com/microsoft/pict)
> - [PICT User Guide](https://github.com/microsoft/pict/blob/main/doc/pict.md)

## Quick Reference

### Basic Model Structure

```
# Parameters
ParameterName: Value1, Value2, Value3
AnotherParameter: ValueA, ValueB, ValueC

# Constraints (optional)
IF [ParameterName] = "Value1" THEN [AnotherParameter] <> "ValueA";
```

### Parameter Definition

```
ParameterName: Value1, Value2, Value3, ...
```

### Constraint Syntax

```
IF <condition> THEN <condition>;
```

### Operators

- `=` - Equal to
- `<>` - Not equal to
- `>` - Greater than
- `<` - Less than
- `>=` - Greater than or equal to
- `<=` - Less than or equal to
- `IN` - Member of set
- `AND` - Logical AND
- `OR` - Logical OR
- `NOT` - Logical NOT

### Example Constraints

```
# Simple constraint
IF [OS] = "MacOS" THEN [Browser] <> "IE";

# Multiple conditions
IF [Environment] = "Production" AND [LogLevel] = "Debug" THEN [Approved] = "False";

# Set membership
IF [UserRole] = "Guest" THEN [Permission] IN {Read, None};
```

## Coming Soon

Detailed documentation will include:
- Complete grammar specification
- Advanced features (sub-models, aliasing, seeding)
- Negative testing patterns
- Weight specifications
- Order specifications
- Examples for each feature

## Contributing

If you'd like to help complete this documentation:
1. Fork the repository
2. Add content to this file
3. Submit a pull request

See [CONTRIBUTING.md](../CONTRIBUTING.md) for guidelines.

## External Resources

- [Official PICT Documentation](https://github.com/microsoft/pict/blob/main/doc/pict.md)
- [pypict Documentation](https://github.com/kmaehashi/pypict)
- [Pairwise Testing Explained](https://www.pairwisetesting.com/)