Thread

Skip Navigation LinksForums > SpiraTest Forums > SpiraTest Issues & Questi... > SpiraTest and Testcomplet...

SpiraTest and Testcomplete 10 not working RSS Feed

Friday, October 31, 2014

Problem: TestComplete10 runs but doesnt appear to find nor automate the script

Setup:

Have Spiratest and Testcomplete10 running on the same virtual server.

Have loaded appropriate spiratest DLL's for TestComplete10.

Have gone into administrator page and edited the Automation settings for TestComplete10 to enable these.

Have setup the TestHost.

Have created the Test Set and set the automation details to access an existing TestComplete project.

Am using the path settings advised in another forum post C:\Users\SMARTBEAR\Documents\TestComplete 10 Projects\Pulse Project\RegressionTests\PulseRegressionTests.pjs|BaseTests|Script|StartUpApp.scs

File physically exists in the directory.

Adjust the plan date on the test set and test is found by RemoteLaunch and launches TestComplete successfully.

TestComplete attemtps to load script and immediately closes.

Spiratest gives the following error:

Exception:
Unable to open project suite - 'C:\Users\SMARTBEAR\Documents\TestComplete 10 Projects\Pulse Project\RegressionTests\PulseRegressionTests.pjs'

Stack Trace:
at Inflectra.RemoteLaunch.Engines.TestCompleteEngine.TestComplete10.TestCompleteEngine.StartExecution(AutomatedTestRun4 automatedTestRun, Int32 projectId)
at Inflectra.RemoteLaunch.Business.RunTestThread.Execute()

What am I doing wrong?

6 Replies
Adam SAdam S
re: Grant Cause on Friday, October 31, 2014
Friday, October 31, 2014

Hi Grant

Thanks for also logging a help desk ticket.

Generally you need to use:

Project Suite Path|Project Name|Test Item Name (for a test item)

or

Project Suite Path|Project Name|Unit Name|Routine Name(for an individual test routine)

so most likely the issue is that the Test Item Name or Routine name is not correct.

Please send us a screenshot of the test complete test that you're trying to execute in the help desk ticket and we can assist you further.

Regards

Adam

Grant CauseGrant Cause
re: Adam S on Friday, October 31, 2014
Sunday, November 2, 2014

Test Server is undergoing maintenance so I cant get a screenshot for you right now. Here is what I am using for the path:

C:\Users\SMARTBEAR\Documents\TestComplete 10 Projects\Pulse Project\RegressionTests\PulseRegressionTests.pjs|BaseTests|Script|StartUpApp.scs

Heres the breakdown of the components in the path:

Project Suite Path C:\Users\SMARTBEAR\Documents\TestComplete 10 Projects\Pulse Project\RegressionTests\

Project Name PulseRegressionTests.pjs

Unit Name BaseTests

Routine Name(for an individual test routine) Script|StartUpApp.scs

 

The scs extension indicates it is a C# script in version 10 of TestComplete.

Grant CauseGrant Cause
re: Grant Cause on Sunday, November 2, 2014
Sunday, November 2, 2014

Ok got it working. My fault. I wasnt getting the format you required.

Here is what worked:

C:\Users\SMARTBEAR\Documents\TestComplete 10 Projects\PulseSuite\PulseSuite.pjs|BaseTests|StartApp|Test1

All good now. Thank you for your assistance it is greatly appreciated.

Adam SAdam S
re: Grant Cause on Sunday, November 2, 2014
Monday, November 3, 2014

You are most welcome.

Regards

Adam

Gangotri SikheriaGangotri Sikheria
re: Adam S on Monday, November 3, 2014
Friday, December 12, 2014
Hi Adam,

Is Spira Configuration support function parameter, because right now i am not able to run my spira test with function parameter in c#

my code is :

  [Test, SpiraTestCase(418)]
       [TestCaseSource(typeof(AdminModel), "UserValidation")]
          public void PublicAdminSpira(string userName, string password) 
          {
              var page = this.OpenPage<LoginPage>(this.AdminModel.LoginPagePath);
              page.Maximize();
              page.FillInForm(userName, password, false);
              page.Login();
              page.Logout();
            

          }

 i have pass two parameter value and run through nunit, than its not shows passed /failed status in spira test ID.

now if i am not user parameter and run through nunit than it shows status with spira test id as passed/failed for example-
 [Test, SpiraTestCase(418)]
    
          public void PublicAdminSpira() 
          {
              var page = this.OpenPage<LoginPage>(this.AdminModel.LoginPagePath);
              page.Maximize();
              page.FillInForm("username", "passwored", false);
              page.Login();
              page.Logout();
            

          }

please replay...
Thanks
Gangotri
Jim R.Jim R.
re: Gangotri Sikheria on Friday, December 12, 2014
Friday, December 12, 2014
Hi Gangotri

Could you please log this as a new thread.

Regards
Jim
Statistics
  • Started: 10/31/2014
  • Last Reply: 12/12/2014
  • Replies: 6
  • Views: 1049
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.