Unplanned
Last Updated: 19 Feb 2019 08:08 by ADMIN
Ruth
Created on: 19 Feb 2019 07:31
Type: Bug Report
0
After Test Studio update, assembly files of the API tests are not rebuilt

Both the embedded API and Test studio compiled, but the assemblies in API bin folder are not rebuilt. The tests are failing with the following error: 

Could not load file or assembly 'Telerik.ApiTesting.Framework, Version=2018.3.927.1751, Culture=neutral, PublicKeyToken=5a31053920bb0a73' or one of its dependencies. The system cannot find the file specified.

In order to fix it, we had to manually delete the files in the Embedded API bin files.

Check log below.

Overall Result: Fail

------------------------------------------------------------
'14/02/2019 12:50:56' - Executing test: 'Space_AreaAvailability', path: 'SmokeTest\Space\Space_AreaAvailability.tstest.'
'14/02/2019 12:50:56' - Using .Net Runtime version: '4.0.30319.42000' for test execution. Build version is '2019.1.212.0'.
'14/02/2019 12:50:56' - Starting execution....
'14/02/2019 12:51:01' - Detected custom code in test. Locating test assembly: CAPlusSmokeTest.dll.
'14/02/2019 12:51:01' - Assembly Found: C:\Shireburn\Testing\Shireburn.Testing\CAPlus\TestStudio\CAPlusSmokeTest\bin\CAPlusSmokeTest.dll
'14/02/2019 12:51:01' - Loading code class: 'CAPlusSmokeTest.Space_AreaAvailability'.
------------------------------------------------------------
Overall Result: Fail
------------------------------------------------------------
'14/02/2019 12:51:01' - Detected custom code in test. Locating test assembly: CAPlusSmokeTest.dll.
'14/02/2019 12:51:01' - Assembly Found: C:\Shireburn\Testing\Shireburn.Testing\CAPlus\TestStudio\CAPlusSmokeTest\bin\CAPlusSmokeTest.dll
'14/02/2019 12:51:01' - Loading code class: 'CAPlusSmokeTest.SetCookie'.
------------------------------------------------------------
------------------------------------------------------------
'14/02/2019 12:51:01' - Enabling Html Popup Tracker. Test expecting Popups.
'14/02/2019 12:51:01' - Using 'Chrome' version '72.0.3626.109' as default browser. 
'14/02/2019 12:51:01' - Using 'http://<valid url name>.com' as base url.
'14/02/2019 12:51:01' - LOG: Executing API Test as Step: '.\User Session Token', arguments: 'test --verbose-variables -p "C:\Shireburn\Testing\Shireburn.Testing\CAPlus\TestStudio\CAPlusSmokeTest\ApiTests" -t ".\User Session Token" -v "base-url="XXXXXXXXXX"'" -v "username="XXXXXXXXXX"'" -v "password=XXXXXXXXXX"'
'14/02/2019 12:51:02' - LOG: 12:51:02.659 [INFO]  Project compile started.
'14/02/2019 12:51:02' - LOG: 12:51:02.676 [INFO]  Project compile completed.
'14/02/2019 12:51:02' - LOG: 12:51:02.725 [INFO]  [START]   Test Case 'User Session Token' [.\User Session Token]
'14/02/2019 12:51:02' - LOG: 12:51:02.742 [ERROR] Could not load file or assembly 'Telerik.ApiTesting.Framework, Version=2018.3.927.1751, Culture=neutral, PublicKeyToken=5a31053920bb0a73' or one of its dependencies. The system cannot find the file specified.
'14/02/2019 12:51:02' - LOG: 12:51:02.745 [ERROR] [FAILED]  Test Case 'User Session Token' [28 ms] [.\User Session Token]
'14/02/2019 12:51:02' - LOG: 12:51:02.750 Finished.
'14/02/2019 12:51:02' - 'Fail' : 1. Execute API test 'User Session Token'
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
API test execution failed.
Test error log:
12:51:02.745 [ERROR] [FAILED]  Test Case 'User Session Token' [28 ms] [.\User Session Token]

------------------------------------------------------------
'14/02/2019 12:51:02' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'14/02/2019 12:51:02' - Overall Result: Fail
'14/02/2019 12:51:02' - Duration: [0 min: 1 sec: 397 msec]
------------------------------------------------------------

0 comments