2018 up to now | 2017 | 2016 | 2015 | 2014 | 2013 | 2012

Mailing List - Entries from 2018 up to now


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [QF-Test] Maven build passing multiple suites


  • Subject: Re: [QF-Test] Maven build passing multiple suites
  • From: "Daniel Rieth, QFS Support" <support@?.de>
  • Date: Tue, 10 Sep 2019 13:31:51 +0200
  • Delivered-to: qftest-list@?.net

Hello Mr. Jayaramappa,

I tried to recreate your error but I was not successful doing so - both options work for me, naming only the Suites aswell as specifying the test-cases.

Here are some things that could help:
You use "qf.suite" as a path to your suitesfile - it's probably better to use it as a path to the directory where your suites & suitesfile.txt are located.
Try:
<qf.suite>C:\dev\workspace\tool\tests\ui\autogui</qf.suite>
and later:
<arg value="-suitesfile" />
<arg value="${qf.suite}\suites.txt" />

As a workaround, you can also try to create one "Mainsuite.qft" that calls other suites via a "Test call" node. The "Name for separate run-log" attribute can be used to create separate run-logs, see https://www.qfs.de/en/qf-test-manual/lc/manual-en-sequences.html#step_TestCall.

But to really understand and resolve your problem I need further information:
- Are there any error-messages appearing when you try to build with the suitesfile-command?
- Do you ensure that the preconditions for your tests are fulfilled? Maybe there's no proper cleanup between the different test-suites, whereas there might be one when only running specific test-cases.
- If you have any run-logs I'd be interested to see them, please attach them to your answer.

Best Regards,
Daniel Rieth

--


Get the most out of QF-Test - Support directly from the authors
* Training & consulting: https://www.qfs.de/en/qf-test-support/training-consulting.html
* Phone & email support: https://www.qfs.de/en/qf-test-support.html


Daniel Rieth
Support

E: support@?.de
T: +49 8171 38648-20
F: +49 8171 38648-16

Quality First Software GmbH | www.qfs.de
Tulpenstr. 41 | 82538 Geretsried | Germany
GF Gregor Schmid, Dr. Martina Schmid, Karlheinz Kellerer
HRB München 140833

On 4 Sep 2019, at 8:27, Jayaramappa, Venu wrote:

Hello All,

 

We are using QFT for UI test cases and trying to run the test cases from maven build system.

I followed the below link and it is able to run single test suite.

https://www.qfs.de/en/qf-test-manual/lc/manual-en-user_maven.html

 

I could like to run more than one suite in pom.xml file.

I try to use suitesfile option has mentioned in below link.

https://www.qfs.de/qf-test-handbuch/lc/manual-en-tech_execution.html#arg_suitesfile

 

Entries in file

Description

path/suite1.qft

path/suite2.qft

Both test-suites will be executed.

path/suite1.qft

-test tc1

-test tc2

Test-cases tc1 and tc2 of suite1.qft will be executed.

 

 

 

 

 

 

 

 

 

 

 

 

 

                            

Just mentioning suites names in text file it is not working, but if mention suite and test case it is working.

I could like to use first option could you please someone help me on this.

 

<qf.suite>C:\dev\workspace\tool\tests\ui\autogui\suites.txt</qf.suite>

 

                            

<plugin>

                              <groupId>org.apache.maven.plugins</groupId>

                              <artifactId>maven-antrun-plugin</artifactId>

                              <executions>

                                      <execution>

                                             <phase>test</phase>

                                             <configuration>

                                                     <tasks>

                                                            <exec executable="${qf.exe}">

                                                                    <arg value="-batch" />

                                                                    <arg value="-run" />

                                                                    <arg value="-license" />

                                                                    <arg value="${qf.license}" />

                                                                    <arg value="-systemcfg" />

                                                                    <arg value="${qf.systemcfg}" />

                                                                    <arg value="-report" />

                                                                    <arg value="${qf.reportfolder}" />

                                                                    <arg value="-runlog" />

                                                                    <arg value="${qf.log}" />

                                                                    <arg value="-suitesfile" />

                                                                    <arg value="${qf.suite}" />

                                                            </exec>

                                                     </tasks>

                                             </configuration>

                                             <goals>

                                                     <goal>run</goal>

                                             </goals>

                                      </execution>

                              </executions>

                       </plugin>

 

C:\dev\workspace\tool\tests\ui\autogui\ at this location I have suites.txt and qft test suites.

Suite.txt looks as below

Suite1.qft

Suite2.qft

SuiteN.qft

 

Regards

Venu J

 

 

 

 

_______________________________________________
qftest-list mailing list
qftest-list@?.de
https://movement.qfs.de/mailman/listinfo/qftest-list


Entries in file

Description

path/suite1.qft

path/suite2.qft

Both test-suites will be executed.

path/suite1.qft

-test tc1

-test tc2

Test-cases tc1 and tc2 of suite1.qft will be executed.