I will not post all the, if anyone want all the source code and applications, can be secret I
Here I post how to automatically build a almconfig XML file when I run it for the first time
Private Static voidCreatealmconfigfile () {almconnect AC1=NewAlmconnect (); Ac1. URL=Properties.Resources.ALM_SERVER_URL; Ac1. Id=Properties.Resources.USERNAME; Ac1. PWD=Properties.Resources.PASSWORD; Ac1. Domain=Properties.Resources.ALM_DOMAIN; Ac1. Project=Properties.Resources.ALM_PROJECT; Ac1. Testsetinfo=NewTestsetdata (); Ac1. Testsetinfo.folderpath=@"root\smoketests\productandpricing"; Ac1. Testsetinfo.testsetname= DateTime.Now.ToString ("dd-mmm-yyyy HHmm") +"Trialrun"; Ac1. Testsetinfo.status="Open"; Ac1. Testsetinfo.attachment=@"C:\ATResult\Attachment\Report.txt"; Console.WriteLine ("Created:"+config_file_name); Console.WriteLine ("-=-AML Config-=-"); Console.WriteLine ("ALM URL:"+AC1. URL); Console.WriteLine ("ALM Domain:"+AC1. Domain); Console.WriteLine ("ALM Project:"+AC1. Project); stringXmlText = XMLUtils.XMLUtils.SerializedToXML (typeof(Almconnect), AC1); System.IO.File.WriteAllText (@ABPATH+Config_file_name, XmlText); }
Establishing an XML config file to connect to ALM