History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-1331
Type: Task Task
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: Robin Shen
Reporter: esya
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

How Can I reach the Display Name and Description from New Prompt Bean Class

Created: 01/Aug/12 12:01 AM   Updated: 07/Aug/12 12:16 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
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.



 All   Comments   Work Log   Change History      Sort Order:
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?

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.

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?

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.

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.

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...

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.

Change by Robin Shen [07/Aug/12 12:16 AM]
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Won't Fix [ 2 ]