Source OS: WIN 2003 R2 (Standard x64)
Target OS: WIN XP SP3
I have some RPT (184.108.40.206) Performance Tests recorded using https protocol on FF12. All of these tests are running properly in source environment.
I have installed RPT 8.3 and applied FP1 (on a separate machine). On this machine when I
1) Copy the whole Workspace (from source env) and try to open in RPT 220.127.116.11
2) Export to Archive file (from source env) and import in RPT 18.104.22.168
RPT now tries to migrate the scripts to the latest version. Post that, I change the classpath to correct any external dependency.
Finally when I try to build the project, I am getting the following three errors all over the place:
a) The constructor For(IContainer, String, String, int, int, int, int, int, boolean) is undefined
b) The constructor HTTPRequest(String, String, String, boolean, String, IRequestHeader, int, int, boolean, HTTPPostData, IBasicAuthentication, IConnectionRecord, HTTPAction, String, String, String, boolean) is undefined
c) The constructor HTTPRequest(String, String, String, boolean, String, IRequestHeader, int, int, boolean, null, IBasicAuthentication, IConnectionRecord, HTTPAction, String, String, String, boolean) is undefined
Obvious conclusion being constructors dont exist any more. Is this expected, or am I missing something here.
Please let me know if any solutions already exists, otherwise I am going to scratch the plan of moving to 8.3 for now, and probably log a PMR for the same.
This topic has been locked.
5 replies Latest Post - 2013-03-15T06:30:18Z by BhadraBheemireddy
Pinned topic Problem in migrating Performance Tests from RPT 22.214.171.124 to 126.96.36.199
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-03-15T06:30:18Z at 2013-03-15T06:30:18Z by BhadraBheemireddy
Re: Problem in migrating Performance Tests from RPT 188.8.131.52 to 184.108.40.20613-01-10T10:27:42Z in response to vishalenduHas anyone faced this issue? It would be very helpful if someone can reply...
Otherwise, I probably will need to log a PMR for this.
petersda 110000QHU0374 PostsACCEPTED ANSWER
Re: Problem in migrating Performance Tests from RPT 220.127.116.11 to 18.104.22.16813-01-10T13:42:59Z in response to vishalenduThe problem is you have old generated java in your src directory. The easiest way to fix this is to run a test in that project. That will remove all the old generated java and the compiler errors will go away.
Your second option is to go into the src directory and manually remove all the generated java. However.... if you have custom code you want to be careful to not remove that.
A final way to work around this is to export test assets with dependency from your 22.214.171.124 workspace (do NOT export the src). Import your tests assets with dependencies into a brand new project and you will not have those compile errors.
Re: Problem in migrating Performance Tests from RPT 126.96.36.199 to 188.8.131.5213-01-15T06:47:52Z in response to petersdaThanks for the quick reply, I just exported/imported the project using "Test Assets with Dependencies". Since old src was not there in the exported file, just adding external dependency jars etc. seems to have fixed the issue. New code is generated on first execution.
One question however is, if I update from 8.2 to 8.3, is this an expected scenario. Shouldn't the process where the scripts are updated to the latest version take care of any old/depricated src code etc?
(I had expected that the Project->Clean or Project->Build would generate new src code and then compile the same.)
Note: before posting here, I had figured out that deleting the test related src files fixed the issue. But I was concerned as this didnt seem the way to go.
petersda 110000QHU0374 PostsACCEPTED ANSWER
Re: Problem in migrating Performance Tests from RPT 184.108.40.206 to 220.127.116.1113-01-15T13:02:20Z in response to vishalenduRemoving the old src does happen automatically at the first test/schedule invocation, but not before that. In reality those errors are harmless in the meantime since you are not running anything. I believe there is an RFE to take care of this src sooner, but as of yet this has not been done.
BhadraBheemireddy 270005J8WA13 PostsACCEPTED ANSWER
Re: Problem in migrating Performance Tests from RPT 18.104.22.168 to 22.214.171.12413-03-15T06:30:18Z in response to vishalenduYou can run scripts that contain custom code from previous releases and edit tests to make new calls to old or new custom code classes.
About this task
You can perform the following tasks without any additional steps:
Run a script that contains custom code that was created in a previous release.
Edit a test to make a new call to an old custom code class.
Add new custom code to a test that contains old custom code.
To edit a class in existing custom code so that it can call new TestExecutionServices methods, type cast the IKlog argument in the old custom code to the ITestExecutionServices interface.
it may helps to u