Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
674 changes: 0 additions & 674 deletions LICENSE

This file was deleted.

11 changes: 11 additions & 0 deletions LICENSES/BSD-3-Clause.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Copyright (C) 2026 Qt Group.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8 changes: 8 additions & 0 deletions LICENSES/LicenseRef-Qt-Commercial.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Licensees holding valid commercial Qt licenses may use this software in
accordance with the terms contained in a written agreement between
you and The Qt Company. Alternatively, the terms and conditions that were
accepted by the licensee when buying and/or downloading the
software do apply.

For the latest licensing terms and conditions, see https://www.qt.io/terms-conditions.
For further information use the contact form at https://www.qt.io/contact-us.
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,25 @@ suite_bdd_section7: Example to undestand how BDD tests are set up and executed i

suite_bdd_section8: Example to show execution and debugging of BDD test with the Squish IDE. Tested with "Squish for Qt 7.2.0" package that supports Qt 6.5 applications built with MinGW 64-bit.


## Resouces
## Resources

If you need additional help, the following resources may be helpful:

- Qt Documentation: https://doc.qt.io
- Qt Forum: https://forum.qt.io
- Qt Academy: https://qt.io/academy

## Licensing Information

```
Copyright (C) 2026 Qt Group.
SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
```

This code repository contains code samples and other materials designed to help you learn and practice Squish GUI testing. The materials provided are intended for educational purposes to help test the skills you've gained from completing the Behavior-Driven-Development course.

### Terms and Conditions

If you, your employer, or the legal entity you act on behalf of hold commercial license(s) with a Qt Group entity, this software package constitutes Pre-Release Code under the Qt License/Frame Agreement governing those licenses, and that agreement's terms and conditions govern your access and use of this software package.

This software package may provide links or access to third party libraries or code (collectively "Third-Party Software") to implement various functions. Use or distribution of Third-Party Software is discretionary and in all respects subject to applicable license terms of applicable third-party right holders.
3 changes: 3 additions & 0 deletions suite_bdd_section2/shared/scripts/bdd_hooks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# -*- coding: utf-8 -*-

# This file contains hook functions to run as the .feature file is executed.
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section2/shared/scripts/names.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# encoding: UTF-8

from objectmaphelper import *
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section2/shared/steps/steps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# -*- coding: utf-8 -*-

# A quick introduction to implementing scripts for BDD tests:
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section2/tst_bdd_case_creation/test.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

Feature: Filling of quickaddressbook
As a user I want to fill the Address Book with entries

Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section2/tst_bdd_case_creation/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

source(findFile('scripts', 'python/bdd.py'))

setupHooks('../shared/scripts/bdd_hooks.py')
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section3/shared/scripts/bdd_hooks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# -*- coding: utf-8 -*-

# This file contains hook functions to run as the .feature file is executed.
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section3/shared/scripts/names.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# encoding: UTF-8

from objectmaphelper import *
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section3/shared/steps/steps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# -*- coding: utf-8 -*-

# A quick introduction to implementing scripts for BDD tests:
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section3/tst_with_parameters/test.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

Feature: Filling of quickaddressbook
As a user I want to fill the Address Book with entries

Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section3/tst_with_parameters/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

source(findFile('scripts', 'python/bdd.py'))

setupHooks('../shared/scripts/bdd_hooks.py')
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section4/shared/scripts/bdd_hooks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# -*- coding: utf-8 -*-

# This file contains hook functions to run as the .feature file is executed.
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section4/shared/scripts/names.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# encoding: UTF-8

from objectmaphelper import *
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section4/shared/steps/steps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# -*- coding: utf-8 -*-

# A quick introduction to implementing scripts for BDD tests:
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section4/tst_with_table/test.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

Feature: Filling of quickaddressbook
As a user I want to fill the Address book with entries

Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section4/tst_with_table/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

source(findFile('scripts', 'python/bdd.py'))

setupHooks('../shared/scripts/bdd_hooks.py')
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section5/shared/scripts/bdd_hooks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# -*- coding: utf-8 -*-

# This file contains hook functions to run as the .feature file is executed.
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section5/shared/scripts/names.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# encoding: UTF-8

from objectmaphelper import *
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section5/shared/steps/steps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# -*- coding: utf-8 -*-

# A quick introduction to implementing scripts for BDD tests:
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section5/tst_data_sharing/test.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

Feature: Filling of quickaddressbook
As a user I want to fill the Address Book with entries

Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section5/tst_data_sharing/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

source(findFile('scripts', 'python/bdd.py'))

setupHooks('../shared/scripts/bdd_hooks.py')
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section6/shared/scripts/bdd_hooks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# -*- coding: utf-8 -*-

# This file contains hook functions to run as the .feature file is executed.
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section6/shared/scripts/names.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# encoding: UTF-8

from objectmaphelper import *
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section6/shared/steps/steps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# -*- coding: utf-8 -*-

# A quick introduction to implementing scripts for BDD tests:
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section6/tst_test_outline/test.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

Feature: Filling of addressbook
As a user I want to fill the Address Book with entries

Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section6/tst_test_outline/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

source(findFile('scripts', 'python/bdd.py'))

setupHooks('../shared/scripts/bdd_hooks.py')
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section7/shared/scripts/bdd_hooks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# -*- coding: utf-8 -*-

# This file contains hook functions to run as the .feature file is executed.
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section7/shared/scripts/names.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# encoding: UTF-8

from objectmaphelper import *
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section7/shared/steps/steps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# -*- coding: utf-8 -*-

# A quick introduction to implementing scripts for BDD tests:
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section7/tst_structure_of_bdd/test.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

Feature: Filling of quickaddressbook
As a user I want to fill the Address Book with entries

Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section7/tst_structure_of_bdd/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# Find file containing Squish API for BDD
source(findFile('scripts', 'python/bdd.py'))

Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section8/shared/scripts/bdd_hooks.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# -*- coding: utf-8 -*-

# This file contains hook functions to run as the .feature file is executed.
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section8/shared/scripts/names.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# encoding: UTF-8

from objectmaphelper import *
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section8/shared/steps/steps.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

# -*- coding: utf-8 -*-

# A quick introduction to implementing scripts for BDD tests:
Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section8/tst_case_BDD/test.feature
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

Feature: Filling of quickaddressbook
As a user I want to fill the Address Book with entries

Expand Down
3 changes: 3 additions & 0 deletions suite_bdd_section8/tst_case_BDD/test.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2026 Qt Group.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause

source(findFile('scripts', 'python/bdd.py'))

setupHooks('../shared/scripts/bdd_hooks.py')
Expand Down