<< Back to previous view |
![]() |
[QB-1331] How Can I reach the Display Name and Description from New Prompt Bean Class
|
|
Status: | Resolved |
Project: | QuickBuild |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Task | Priority: | Major |
Reporter: | esya | Assigned To: | Robin Shen |
Resolution: | Won't Fix | Votes: | 0 |
Remaining Estimate: | Unknown | Time Spent: | Unknown |
Original Estimate: | Unknown |
Description |
I created a new Prompt Bean Class and I want to reach the Description and Display name of the Prompt settings from the new class.
|
Comments |
Comment by Robin Shen [ 01/Aug/12 12:32 AM ] |
Currently it is not possible to access this info from within the prompt bean class. Any reason you want to access such info? |
Comment by esya [ 01/Aug/12 02:10 AM ] |
I want to create a variable that takes some arguments and when the build runs prompt beans class will return choices dynamically then the selected choice will be added into build sequence.
If this is not an option, can I add a new prompt setting class into system that takes arguments and directly returns choices in the edit variable bean? I could not see any extension which lets adding new prompt settings. |
Comment by Robin Shen [ 01/Aug/12 11:55 PM ] |
Sorry I am still not able to understand this. Can you please describe this with an example? |
Comment by esya [ 03/Aug/12 09:02 PM ] |
For example I want to create a variable type that takes configuration name and type of build information and returns the build versions that match the criteria dynamically.
During the adding new variable, one build choice will be selected and stored in the system. I am able to do similar function with bean input. It shows the configurations in the system and type of build(successful, recommended..) and returns the available build versions choices but it happens during the build process which I do not want. I want it to be done during configuration preparation time. |
Comment by Robin Shen [ 04/Aug/12 12:24 AM ] |
Please refer to method "getTestCaseChoices" in TestSetting class of the example prompt bean. It gets current specified value of testsuite field and calculates the applicable test cases. In your case, you can filter the list of applicable builds with user specified value of configuration and build status. |
Comment by esya [ 06/Aug/12 04:51 PM ] |
I am sorry It seems like I could not explain it well.
I already did use the prompt bean(I checked test prompt bean too). When I run the configuration I get the configuration name and build status then I return the build version. My question is how can I do it during the variable creation and run the configuration without interruption. Thank you... |
Comment by Robin Shen [ 07/Aug/12 12:16 AM ] |
Now I understand. Unfortunately it is not possible, as variables do not have chance to run at definition time. I suggest to open a second tab to search for desired build with configuration and status to find out desired build, and then define the variable with that build. |