Posts: 9
Threads: 6
Joined: Mar 2012
Reputation:
0
06-14-2012, 12:29 PM
[/u]Hi,
While executing a newly developed bussiness component from QTP.The method QCUtil.CurrentTest.name shlod not return any value.It should be "".
But I am getting some value which is randomly picking the name of the bussiness process from the test plan.
But I want this value to be "".
Please help me out to resolve this issue.
-Regards,
Leema Mishra
..
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
06-14-2012, 01:55 PM
Hi,
Could u please post ur code so that we can have a look at the problem.
Regards,
Sankalp
Posts: 9
Threads: 6
Joined: Mar 2012
Reputation:
0
06-14-2012, 02:45 PM
(This post was last modified: 06-14-2012, 02:47 PM by leema.)
hi Sankalp,
If I create a blank scripted component and save it in the bussiness component TAB of QC.Just write the line of code as
msgbox QcUtil.Currenttest.name
then save it again.Try to run it then some junk value is getting captured by this method.
Purpose of Doing the same:
This is part of the work around while facing issues with the existing framework.
Initially I was thinking it is the problem in the exsting function library which is helping to create the result.
e.f.if we execute bussiness component from QTP,the result should be appeared as <BussinessComponent_Componentname_Datetme>
If it is from Test Plan then the result displayed as <Bussiness process_Bussinessprocess name_Datetime>
If from Testlab,it will ceate a testset folder in the log result and then
<Bussiness process_Bussinessprocess name_Datetime>
For this reason I have used this line of code in the function library.Previously it was working fine(from last 1 year).But i reinstalled QTP,QC again but this line of code is giving some junk value due to which the result is populating but the naming convenion of the file is taking that junk value.
This space is not enough to past the entire function library.
Please help me out for resolving the issue.
-Regards,
Leema Mishra
Posts: 426
Threads: 4
Joined: Aug 2011
Reputation:
0
06-14-2012, 04:02 PM
Hi,
I can help u in getting the script name from lab & test plan..since I had not worked on business components.
Let me know if this is ur requirement
Regards,
Sankalp