Quantcast
Channel: All Quality Center / ALM Practitioners Forum posts
Viewing all articles
Browse latest Browse all 14708

Re: State of button new folder in test plan QC 11

$
0
0

hamzaRezgui wrote:

Hello ,

Question 1: in test plan user  interface i want to test if  of the button NEW Folder if its enabled  or not .How can i doing this please .I use OTA and script Editor under QC 11

 

Question 2:How can i detect id the a floder is selecyted or a test is selected by the user


1. New Folder button enabling can be checked as below. Actionname can be also "TestPlanTree.NewFolder" (11.52) but the one below should work also:

 

If Actions.Action("act_new_folder").Enabled Then

'is enabled

End If

 

2. Code to check if folder or test is selected:

'common script

Dim isFolder
isFolder = false

'common script end

 

'Test Plan module script

Sub Test_MoveTo
isFolder = false
End Sub

Sub TestFolder_MoveTo
isFolder = true
End Sub

'Test Plan module script end

 

'usage

If isFolder Then

'Do folder specifics

End If


Viewing all articles
Browse latest Browse all 14708

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>