IBM Rational Functional Tester (RFT) throws the following error when running a script that uses an external Visual Studio library (Class Library) compiled with .Net Runtime > 2.0 .
Error:
exception_name = System.IO.FileNotFoundException
exception_message = Could not load file or assembly "***",
Version=x.y.z, Culture=neutral, PublicKeyToken=null or one of its
dependencies. The system cannot find the file specified.
This post targets to provide a solution to the above stated problem.
Suppose you have a Class Library built with .Net Runtime 4 , you would need to perform the following steps in order to be loaded via RFT Visual Studio IDE.
-
Close RFT as well as any application enabled by RFT.
-
Open the RFT installation/bin folder. For eg C:\Program Files (x86)\ibm\SDP\FunctionalTester\bin in my Win 7 64-bit machine
-
Open the file rational_ft.exe.config . You can use Notepad to open the file
-
Add the line
<supportedRuntime version="v4.0" />
in the list of supported runtimes. For instance your file should look like this after editing:
<?xml version="1.0"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" />
<supportedRuntime version="v2.0.50727" />
<supportedRuntime version="v1.1.4322" />
</startup>
<runtime>
</runtime>
</configuration>
-
Save and close the file.
-
Open the file rational_ftw.exe.config located in the same folder.
-
Repeat step 4 to add the .Net Runtime 4.0 in this file too.
-
Save the file.
-
Restart RFT and Playback your scripts.
RFT should be able to reference the .Net 4.0 compiled assemblies successfully.
Tags: 
external
studio
rational
compile
library
functional
.net
visual
reference
tester
playback
assembly
rft
load
class
filenotfoundexception
runtime