Exemplo n.º 1
0
        public override ObservableList <ExternalItemFieldBase> GetALMItemFields(BackgroundWorker bw, bool online, AlmDataContractsStd.Enums.ResourceType resourceType)
        {
            ResourceType resource = (ResourceType)resourceType;

            ConnectALMServer();
            fieldApi = new QTestApi.FieldApi(connObj.Configuration);
            ObservableList <ExternalItemFieldBase> fields = new ObservableList <ExternalItemFieldBase>();

            if (resource == ResourceType.ALL)
            {
                fields = GetALMItemFields();
            }
            else
            {
                string fieldInRestSyntax = QtestConnect.Instance.ConvertResourceType(resource);
                List <QTestApiModel.FieldResource> fieldsCollection = fieldApi.GetFields((long)Convert.ToInt32(ALMCore.DefaultAlmConfig.ALMProjectKey), fieldInRestSyntax);

                fields.Append(AddFieldsValues(fieldsCollection, resourceType.ToString()));
            }

            return(UpdatedAlmFields(fields));
        }
Exemplo n.º 2
0
 public override ObservableList <ExternalItemFieldBase> GetALMItemFields(BackgroundWorker bw, bool online, AlmDataContractsStd.Enums.ResourceType resourceType = AlmDataContractsStd.Enums.ResourceType.ALL)
 {
     return(UpdatedAlmFields(ImportFromQCRest.GetALMItemFields((ResourceType)resourceType)));
 }
Exemplo n.º 3
0
 public abstract ObservableList <ExternalItemFieldBase> GetALMItemFields(BackgroundWorker bw, bool online, AlmDataContractsStd.Enums.ResourceType resourceType = AlmDataContractsStd.Enums.ResourceType.ALL);
Exemplo n.º 4
0
 public override ObservableList <ExternalItemFieldBase> GetALMItemFields(BackgroundWorker bw, bool online, AlmDataContractsStd.Enums.ResourceType resourceType)
 {
     return(null);
 }