Software Testing

BPT ALM 11 Change BPTWrapperTest and DataTable issues

By Test Guild
  • Share:
Join the Guild for FREE

Honestly, performance for BPT test in QTP/QC 10 stinks! Because of this HP changed the way they implemented BPT in ALM/QC11. In QC 10 every single component that is in a BPT test has to be downloaded separately and run. If you have a script that contains many components the performance of the test becomes incredibly slow.

What is the BPTWrapperTest

In ALM/QC 11 there is a new feature named “BPTWrapperTest” that takes a BPT test, downloads all its components, and generates a single QTP “BPT Wrapper” test to run. This change helps avoid the BPT performance issue seen in QC10. Due to this change, some DataTable functionality may break when running BPT in ALM11.

BPT Issue:

Two sheets are created for each component – a Global and a Local that is the same name as the component. So when the BPTWrapperTest runs the name of the component for the data table is changed from something like YouComponentName to YourComponent [COMPONENT_SCRIPT]

 To Resolve:

  • Fix the statement Environment(“TestName”) to Environment(“ActionName”)
  • For DataTable issues fix the statement DataTable.Value(“ColA”) to either
    • DataTable.Value(“ColA”, Enviroment(“ActionName”))
    • DataTable.LocalSheet.GetParameter(“ColA”)
    • DataTable.LocalSheet.GetParameter(“ColA”)ValueByRow(x)

 

This sucks is there a way to turn off the new BPT Wrapper feature?

Yes – to turn off the new BPT Wrapper option change the following registry key:

On the machine where you are running your tests:

  • Click on Start run and type regedit
  • Go to HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\TestDirector\BPT
  • Change the following registry key value to:
  • “UseBPTWrapperTest”=”N”
  • If the registry value is not present add a new String Value and name it: UseBPTWrapperTest

  • Set the value to: N

 

* FYI some of the Info in this article was taken from HP Document ID KM1108518

  1. Joe – I’ve had similar issues with HP testing tools, but ALM QC11 has been especially a challenge for me. Issues with the library, environment, etc.. I was on a web site that mentioned QC and its alternatives and I found http://breakfreefromhp.com/ – I checked out this product called “ALMComplete” and I was satisfied. Honestly, it hurts to read reviews when people are frustrated about certain testing tools. I have felt that pain for many years. I just wanted to pass this information along if you were still having issues with QC. I like your blog and read it a lot.

    – JakeT

  2. Jake Thompson » Thanks Jake for the link and your comments. Although no tool is perfect overall I’m still happy with HP’s tool set. Glad you like my blog. Cheers~Joe

  3. No problem Joe! I wanted to offer up other ideas .. I know there is a wide spectrum of tools out there. Keep the great blog posts coming!

    Jake

  4. Is there a way to use a datatable stored in Quality Center for BPT instead of the local datasheets for each component. I have already created a number of BPT components to see if this is a methodology that will work for us but I am not sure i like the Output/Input method for variables. On one script we previously stored about 20 values that were then used later on. Using BPT I think i need to keep passing these values through each component until I need them instead of storing them once in our global datasheet and accessing them whenever i like. Is there a cleaner way to do this with BPT then just pasing them from component to component?

  5. Joe, I just upgraded to QC11 and QTP11 installed all required addins, I am experiencing the issue with BPTWrapperTest. Checked in Registry but BPT folder is not available. can you suggest solution for this?

  6. Joe, Thanks for your valubale info. I googled for long time to resolve this issue. I found the solution here.

    Once again Thanks. Keep up good work.

  7. Hi Joe,

    Thanks a lot it works wonders for me in XP…But in windows 7 I don’t find any option called Mercury Interactive in Registry…So I have added registry entries manually but still I’m unable to turn off BPT Wrapper test..
    Thanks in advance,
    Balaji

  8. Balaji » Hi Balaji – Sorry not sure why it’s not working for win7 – I think it should. You might have to contact HP for fix.

  9. Joe, I can’t locate the “BPT” folder to update the registry entry from the give path. Do i have to install any add-ins to see BPT folder as given below. Thanks in advance.

    Click on Start run and type regedit
    Go to HKEY_LOCAL_MACHINE\SOFTWARE\Mercury Interactive\TestDirector\BPT
    Change the following registry key value to:
    “UseBPTWrapperTest”=”N”
    If the registry value is not present add a new String Value and name it: UseBPTWrapperTest

  10. Hello Joe, I wanted to know about the performance of BPT with QC 11. Its faster than QC 10.

    But will the execution speed be the same as a normal QTP test being executed from QC 11 ? Or it will be slower ?

  11. Hi Joe,

    I am getting a below error while executing QTP scripts from ALM/QC11 with QTP11 in Test Lab mode. if I execute the same scripts they are working fine.

    “Action was not found Line (278) Load and RunAction”
    “C:\Users\\AppData\Local\Temp\Td_80\Quality Centre\d6c1e0b4\Componenets\531\COMPONENT_SCRIPT\”

  12. Gururaj » Do you have the HP Quality Center Connectivity and QuickTest Professional Add-ins installed? If you create a new QTP script connect to ALM save the test in ALM than copy the code for the script that is failing in the new script does it work?

  13. Hi Joe,
    Thanks a lot for the info. We just migrated to ALM11 and we are facing an issue with Last Run result for BPT tests. It doesnt get saved once test run is complete.

    Is there a way to resolve this?

  14. Hi, I am working in QC and QTP 11 with business components. I have number of consolidated scripts. When i try to run every single consolidated script from QC, often the script opens as consolidated in test QTP and runs well. but at some times some consolidated scripts opens as BPTWrapper test and it runs as Iteration. (No end, continously runs) Can you please help me on this

  15. Hi Joe,

    I was missing the solution for Windows 7 64 bit on this page. If the BPT folder or Mercury Interactive folders do not exist, then people look at the wrong location in the registry. Win32 and Win64 use the registry differently.

    •32-bits programs executed in WOW64 modus, access to keys and values are stored in sub registry key:
    HKEY_LOCAL_MACHINE\Software\WOW6432node

    There you will find your folder to, create the BPT folder in which you can create the UseBPTWrapperTest string value with value N.

    Patrick

  16. Wohoooo! Thanks Joe! I tried this and tested my test scripts and it solved the issue. :)

    Keep up the good work!

    rtUser

  17. I am getting the following error “Action not Found” when i run BPT components from ALM 11.52. These BPT components are upgraded from QC 10/QTP10 to ALM 11.52 and used the asset upgrade tool to upgrade the components. Test runs without any issue if I run it directly from QTP 11. So I tested it on new ALM 11.52 by creating new Scripted component in QTP 11 and copy pasted the old code. This new component works fine when I run it from ALM 11.52. I have 100s of components and I cannot do this for all the components. Any help to solve this issue will be greately appreciated.

    Action was not found.
    Line (221): “LoadAndRunAction “C:\WINDOWS\TEMP\TD_80\Quality

  18. Thats odd – when i look at the HP KB there is an older article (KM1392411) that says this issue is due to a known problem with the 1st version of the Asset Upgrade Tool. It also says that this behavior was resolved in new versions which doesn’t make sense since you are having the same issue. I would contact HO and confirm that this is still not a bug. The fix was that all components meed to be marked as “Reusable

  19. Hi I trying to execute from Test lab a SAP BPT component created using Flow analyser i am getting the below issue. Reuest you to kindly let me know how to resolve this issue

    LoadAndRunAction “C:\Users\\AppData\Local\Temp\TD_80\Quality Center\5e7974c5\components\41\COMPONENT_SCRIPT\”,
    “FB03-Display_Document_Initial_Screen”, oneIteration , o1ParamtersDescription , o1p108_(iO1, 0) , o1p109_(iO1, 0) , o1p110_(iO1, 0)”.

  20. How to mark business component “Reusable”? I did not find it way to do it in UI or API? Also I did not find any database field in database which can be used as “Reusable”

  21. Hi,
    I upgraded from QC/QTP 10 to the new ALM/QC 11.52 and UFT 11.53. Everything works fine except for this one issue. I execute my scripts through ALM and I have a BPT component that creates an account and then closes the browser, then next component is a sleep(wait) component for about 60sec and then a new browser is suppose to open. The issue is that it never wakes up from the sleep mode, until I kill the execution. Can this be resolved?

Comments are closed.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

What is Behavior Driven Development (An Introduction)

Posted on 03/21/2024

Love it or hate it—Behavior Driven Development is still widely used. And unfortunately ...

What is ETL Testing Tutorial Guide

Posted on 03/14/2024

What is ETL Testing Let's get right into it! An ETL test is ...

Open Test Architecture How to Update a Test Plan Field (OTA)

Posted on 11/15/2022

I originally wrote this post in 2012 but I still get email asking ...

Become an Automation Guild '25 sponsor (limited spots left) - Reach out now >>