How to automate a test process using TestComplete?

We are trying to integrate tests into our daily builds using TestComplete, we still have a machine designed for testing, and our build script copies everything that TestComplete requires for its tests (Application, Database, Test script project and source files, etc.).

Basically, we can open the TestComplete project manually and run the tests.

Now we want to automate this process, so how do you do it? Or do you think this is the easiest and best way to do this automation?

In short, we want to automate the process of opening TestComplete after each build, run all the tests, and send an email with the test results.

Can anyone share the experience?

Thanks.

+5
source share
10 answers

Answering my own question:

In the solution, a small C # application was written, which is located on the taskbar and controls the folder.

When a new folder (containing the source code of the test) is added to the controlled folder, TestComplete is invoked using the command line, then the application captures its ExitCode and sends an email with the log file attached to it.

Depending on the ExitCode, I know what happened in the tests, possible ExitCodes:

0 - .
1 - , .
2 - .
3 - -

ExitCodes TestComplete.

+4

, TestComplete, QA Wizard Pro. , , -, TestComplete. QA , , , , , . QA , . , . AutoHotKey , Cygwin Blat , , .

+3

TestExecute. ( ) Automated QA, TestComplete.

TestComplete /.

+2

TestExecute, . ....

C:\PROGRA~1\AUTOMA~1\TESTEX~1\Bin\TestExecute.exe "path\Project.pjs" /r /e
+2
Set wshShell = CreateObject("WScript.Shell")
wshShell.Run("""C:\Program Files\Automated QA\TestComplete 6\Bin\TestComplete.exe"" ""C:\Documents and Settings\My Documents\TestComplete 6 Projects\abc\abc.pjs(your script path)"" /r /p:(Project Name) /u:(Unit Name) /rt:(Method to be executed) /e /SilentMode")

.vbs .
.bat .
.vbs bat TestComplete exe.

bat

C:\WINDOWS\system32\cmd.exe
WScript.Echo ""
Set wshShell = CreateObject("WScript.Shell")
wshShell.Run("""C:\Program Files\Automated QA\TestComplete 6\Bin\TestComplete.exe"" ""C:\Documents and Settings\My Documents\TestComplete 6 Projects\abc\abc.pjs"" /r /p:prj1 /u:Unit1 /rt:Test1 /e") 

txt .bat. CI.

+1

. - Cruise control.NET /.

- Test complete script . . ( Excel/Test Cases) testApp. /. TC.

,

0

- testcomplete .

0

. , ( bash script), Test Complete Test Execute commend . . , , . Jenkins , ( Test Complete ), . , .

0

You can use the TestComplete task for Bamboo to run TestComplete tests using TestComplete or TestExecute and analyze the tests in Bamboo and integrate them into JIRA. https://marketplace.atlassian.com/plugins/com.mdb.plugins.testcompletetask/server/overview

0
source

All Articles