SpiraTest and Testcomplete 10 not working

Friday, October 31, 2014
Avatar

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
Friday, October 31, 2014
Avatar
re: gcause 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

Monday, November 3, 2014
Avatar
re: inflectra.david Friday, October 31, 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.

Monday, November 3, 2014
Avatar
re: gcause 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.

Monday, November 3, 2014
Avatar
re: gcause Sunday, November 2, 2014

You are most welcome.

Regards

Adam

Friday, December 12, 2014
Avatar
re: inflectra.david Monday, November 3, 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
Friday, December 12, 2014
Avatar
inflectra.jimx
re: gangotri Friday, December 12, 2014
Hi Gangotri

Could you please log this as a new thread.

Regards
Jim

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Friday, October 31, 2014
  • Last Reply: Friday, December 12, 2014
  • Replies: 6
  • Views: 11731