<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1769054949521075757</id><updated>2024-09-28T04:41:14.054+03:00</updated><category term="QC"/><category term="QC DB"/><category term="QTP"/><category term="HP LR"/><category term="HP Loadrunner"/><category term="HP Service Virtualization"/><category term="Loadrunner"/><category term="Service Virtualization"/><category term="VUGEN"/><category term="ALM project import"/><category term="ALM project restore"/><category term="ALM upgrade"/><category term="Activate Browser"/><category term="Adding Reference"/><category term="Adding custom method"/><category term="Ajax TruClient"/><category term="C#"/><category term="Connectivity"/><category term="Disable Smart Identification"/><category term="Exporting big qc projects"/><category term="How to backup QC"/><category term="How to execute query with QTP"/><category term="How to export with sapi"/><category term="How to migrate QC"/><category term="How to scheduled backup QC project"/><category term="How to upgrade to ALM"/><category term="LR"/><category term="Migrate ALM 11 to ALM 12"/><category term="Oracle"/><category term="Programmatically"/><category term="Proxy configuration"/><category term="QC 11 to ALM 12 migration"/><category term="QC Defect Status Change"/><category term="QC Project Backup"/><category term="QC Reporting"/><category term="QC User Groups"/><category term="QC User Management"/><category term="QC User Teams"/><category term="QC big project restore"/><category term="QC migration"/><category term="QCCR1J17611"/><category term="QTP Smart Identification"/><category term="Quality Center"/><category term="Restore QC Project"/><category term="SQL"/><category term="SV"/><category term="Scheduled Backup"/><category term="Scripted Rule"/><category term="Server disconnected while performing ImportProject action"/><category term="Siteadmin"/><category term="Step by step ALM Upgrade"/><category term="System.Security.SecurityException"/><category term="Test Case"/><category term="Test Case Path"/><category term="Testcase path"/><category term="UFT"/><category term="UFT Extensibility"/><category term="Upgrade ALM"/><category term="Upgrade to ALM"/><category term="does not exist in the namespace"/><category term="server has been disconnected while performing import"/><title type='text'>Quality Testing With QTP &amp;amp; Loadrunner</title><subtitle type='html'>Best practices about test automation and performance testing</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>17</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-1760313187278932451</id><published>2015-05-06T16:05:00.002+03:00</published><updated>2018-08-31T12:01:25.896+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Activate Browser"/><category scheme="http://www.blogger.com/atom/ns#" term="Adding custom method"/><category scheme="http://www.blogger.com/atom/ns#" term="QTP"/><category scheme="http://www.blogger.com/atom/ns#" term="UFT"/><category scheme="http://www.blogger.com/atom/ns#" term="UFT Extensibility"/><title type='text'>Adding custom methods to an object</title><content type='html'>&lt;html&gt;
&lt;head&gt;

&lt;/head&gt;
&lt;body&gt;
During an automation project, generally you work on same web application. And during this project you see that making a procedure is same on all of the test cases (like ensuring the synchronization of a web page). You can make use of shared function library to develop faster/easier/maintainable test scripts (Also you can check Extensibility plugin).&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Adding custom methods to an object may be one of these. For example during the synchronization of the web page we want to make sure that the Browser object is activated. To accomplish this I&#39;ve added a method named &quot;Activate&quot; to the &quot;Browser&quot; object.&lt;br /&gt;
&lt;br /&gt;
The first thing to do is write a generic method that activates the browser:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #202020; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39;Activates the Browser and moves the mouse on the Browser&#39;s Page object&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Function&lt;/span&gt; &lt;span style=&quot;color: #447fcf;&quot;&gt;BrowserActivate&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Object&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
    &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Dim&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;hWnd&lt;/span&gt;
    &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Reporter.Filter&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;rfDisableAll&lt;/span&gt;
    &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;On&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Error&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Resume&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Next&lt;/span&gt;
     &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Environment.Value(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Browser&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)=&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Chrome&quot;&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Then&lt;/span&gt;
      &lt;span style=&quot;color: #d0d0d0;&quot;&gt;hWnd&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Window(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;nativeclass:=Chrome_WidgetWin_1&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;regexpwndtitle:= Google Chrome&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;).getroproperty(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;hwnd&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
     &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Else&lt;/span&gt;
      &lt;span style=&quot;color: #d0d0d0;&quot;&gt;hWnd&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Object&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;.GetROProperty(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;hwnd&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
     &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt;
        &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Window(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;hwnd:=&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;hWnd).Activate&lt;/span&gt; 
        &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Err.Number&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Then&lt;/span&gt;
            &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Window(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;hwnd:=&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Browser(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;hwnd:=&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;hWnd).Object.hWnd).Activate&lt;/span&gt;
            &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Err.Clear&lt;/span&gt;
        &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt;
    &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Err.Clear&lt;/span&gt;
    &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;On&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Error&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Goto&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;0&lt;/span&gt;
    
    &lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39;&#39;&amp;gt;&amp;gt;&amp;gt;This part is not mandotary, to move the mouse on a blank part of the page you can uncomment this part&lt;/span&gt;
 &lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39;Set obj=CreateObject(&quot;Mercury.DeviceReplay&quot;)&lt;/span&gt;
    &lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39;If Environment.Value(&quot;Browser&quot;)=&quot;Chrome&quot; Then&lt;/span&gt;
    &lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39; obj.MouseMove Window(&quot;hwnd:=&quot; &amp;amp; hWnd).GetROProperty(&quot;abs_x&quot;) + 10, Window(&quot;hwnd:=&quot; &amp;amp; hWnd).GetROProperty(&quot;abs_y&quot;) + 75&lt;/span&gt;
    &lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39;Else&lt;/span&gt;
 &lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39; obj.MouseMove Browser(&quot;hwnd:=&quot; &amp;amp; hWnd).Page(&quot;index:=0&quot;).GetROProperty(&quot;abs_x&quot;) + 5, Browser(&quot;hwnd:=&quot; &amp;amp; hWnd).Page(&quot;index:=0&quot;).GetROProperty(&quot;abs_y&quot;) + 5&lt;/span&gt;
 &lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39;End If&lt;/span&gt;
    &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Reporter.Filter&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;rfEnableAll&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Function&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
Second (just after the function declaration) we are registering this method to the Browser object.&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #202020; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39;Register the BrowserActivate Function as a method of the Browser object&lt;/span&gt;
&lt;span style=&quot;color: #d0d0d0;&quot;&gt;RegisterUserFunc&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Browser&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Activate&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;BrowserActivate&quot;&lt;/span&gt;
&lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39;Now the Browser object has Activate method&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
Now you can use the Activate method of the Browser object.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoXfCsOeJD7vlcWHP_0kIPdmT2uCvfeQefURMiB7cBMo2OaIzwrPIpkTvU6bRwgHN2Yd9HGYe1wwYEeaZ4t9fX_wJT3Zgg0jncW92BV3QbTkFCkPue8IN05zvNtVTrzqNZL7e-swDYCUmj/s1600/BrowserActivateMethod.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;227&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoXfCsOeJD7vlcWHP_0kIPdmT2uCvfeQefURMiB7cBMo2OaIzwrPIpkTvU6bRwgHN2Yd9HGYe1wwYEeaZ4t9fX_wJT3Zgg0jncW92BV3QbTkFCkPue8IN05zvNtVTrzqNZL7e-swDYCUmj/s1600/BrowserActivateMethod.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;/body&gt;</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/1760313187278932451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/1760313187278932451?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/1760313187278932451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/1760313187278932451'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2015/05/adding-custom-methods-to-object.html' title='Adding custom methods to an object'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhoXfCsOeJD7vlcWHP_0kIPdmT2uCvfeQefURMiB7cBMo2OaIzwrPIpkTvU6bRwgHN2Yd9HGYe1wwYEeaZ4t9fX_wJT3Zgg0jncW92BV3QbTkFCkPue8IN05zvNtVTrzqNZL7e-swDYCUmj/s72-c/BrowserActivateMethod.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-439763319445817507</id><published>2015-02-26T18:08:00.001+02:00</published><updated>2015-05-07T17:53:07.741+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="HP Service Virtualization"/><category scheme="http://www.blogger.com/atom/ns#" term="Service Virtualization"/><category scheme="http://www.blogger.com/atom/ns#" term="System.Security.SecurityException"/><title type='text'>Making external webservice call in C# rule</title><content type='html'>In a C# rule, you can also make external web service call. Before doing this first we have to make some configuration settings (like security and adding reference). If the security configuration is left as default you probably are going to get &quot;&lt;b&gt;&lt;i&gt;System.Security.SecurityException: Request for the permission of type &#39;System.Net.WebPermission&#39;&lt;/i&gt;&lt;/b&gt;&quot; error.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Security configuration for making external web service call.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;SV Server Side:&lt;/b&gt;&lt;br /&gt;
Add the following line into the file: &lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;C:\Program Files\HP\HP Service Virtualization Server\Server\bin\HP.SV.StandaloneServer.exe.config&lt;/i&gt;&lt;/span&gt; and restart SV Server.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;!-- secure mode C# scripting --&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Courier New, Courier, monospace; font-size: x-small;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;lt;add key=&quot;Simulator.Scripting.Sandbox&quot; value=&quot;false&quot;/&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
If this line exists with &lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;true &lt;/span&gt;&lt;/i&gt;value, change it to &lt;i&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;false&lt;/span&gt;&lt;/i&gt;.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;SV Designer Side:&lt;/b&gt;&lt;br /&gt;
AFAIK Nothing needed for the designer.&lt;br /&gt;
&lt;br /&gt;
By using following code template you can make external web service call from your C# rule.&lt;br /&gt;
Since this code template uses System.Xml namespace you have to follow &lt;a href=&quot;http://qualitesting.blogspot.com/2015/02/adding-net-reference.html&quot;&gt;these &lt;/a&gt;steps before running following code.&lt;br /&gt;
&lt;div&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #202020; overflow:auto;width:auto;border:solid gray;border-width:.1em .1em .1em .8em;padding:.2em .6em;&quot;&gt;&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;margin: 0; line-height: 125%&quot;&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: #447fcf; text-decoration: underline&quot;&gt;System&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: #447fcf; text-decoration: underline&quot;&gt;System.Net&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: #447fcf; text-decoration: underline&quot;&gt;System.IO&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: #447fcf; text-decoration: underline&quot;&gt;System.Xml&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: #447fcf; text-decoration: underline&quot;&gt;HP.SV.DotNetRuleApi&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;using&lt;/span&gt; &lt;span style=&quot;color: #447fcf; text-decoration: underline&quot;&gt;HP.SV.CSharp&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;;&lt;/span&gt; 

&lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;namespace&lt;/span&gt; &lt;span style=&quot;color: #447fcf; text-decoration: underline&quot;&gt;HP.SV&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;{&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #447fcf; text-decoration: underline&quot;&gt;CSharpRule&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;{&lt;/span&gt;
  &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;static&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #447fcf&quot;&gt;Execute&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;(HpsvRootObject&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;hpsv){&lt;/span&gt;
    &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;string&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;host&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13&quot;&gt;&amp;quot;&amp;lt;&amp;lt;&amp;lt;YourExternalHost&amp;gt;&amp;gt;&amp;gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;string&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;xml&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13&quot;&gt;&amp;quot;&amp;lt;?xml version=\&amp;quot;1.0\&amp;quot; encoding=\&amp;quot;ISO-8859-9\&amp;quot;?&amp;gt;&amp;lt;XML&amp;gt;Your xml request goes here&amp;lt;/XML&amp;gt;&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;string&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;url&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13&quot;&gt;&amp;quot;http://&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;+host+&lt;/span&gt;&lt;span style=&quot;color: #ed9d13&quot;&gt;&amp;quot;/EndpointURL&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;;&lt;/span&gt;

    &lt;span style=&quot;color: #d0d0d0&quot;&gt;System.Net.HttpWebRequest&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;request&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;(System.Net.HttpWebRequest)WebRequest.Create(url);&lt;/span&gt;
    &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;byte&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;[]&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;requestBytes&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;System.Text.Encoding.ASCII.GetBytes(xml);&lt;/span&gt;
    &lt;span style=&quot;color: #d0d0d0&quot;&gt;request.Method&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13&quot;&gt;&amp;quot;POST&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #d0d0d0&quot;&gt;request.ContentType&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13&quot;&gt;&amp;quot;text/xml;charset=utf-8&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #d0d0d0&quot;&gt;request.ContentLength&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;requestBytes.Length;&lt;/span&gt;
    &lt;span style=&quot;color: #d0d0d0&quot;&gt;Stream&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;requestStream&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;request.GetRequestStream();&lt;/span&gt;
    &lt;span style=&quot;color: #d0d0d0&quot;&gt;requestStream.Write(requestBytes,&lt;/span&gt; &lt;span style=&quot;color: #3677a9&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;requestBytes.Length);&lt;/span&gt;
    &lt;span style=&quot;color: #d0d0d0&quot;&gt;requestStream.Close();&lt;/span&gt;
    &lt;span style=&quot;color: #d0d0d0&quot;&gt;HttpWebResponse&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;response&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;request.GetResponse()&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;as&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;HttpWebResponse;&lt;/span&gt;
    &lt;span style=&quot;color: #d0d0d0&quot;&gt;XmlDocument&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;xmlDoc&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;XmlDocument();&lt;/span&gt;
    &lt;span style=&quot;color: #d0d0d0&quot;&gt;xmlDoc.Load(response.GetResponseStream());&lt;/span&gt;
    
    &lt;span style=&quot;color: #d0d0d0&quot;&gt;XmlNamespaceManager&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;nsmgr&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;new&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;XmlNamespaceManager(xmlDoc.NameTable);&lt;/span&gt;
    &lt;span style=&quot;color: #d0d0d0&quot;&gt;nsmgr.AddNamespace(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13&quot;&gt;&amp;quot;ns&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13&quot;&gt;&amp;quot;You can add namespaces if exists&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;);&lt;/span&gt;
 
    &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;string&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;out_version&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13&quot;&gt;&amp;quot;1.0&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;;&lt;/span&gt;
    &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;string&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;out_returnCode&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;xmlDoc.SelectSingleNode(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13&quot;&gt;&amp;quot;/XPATH/For/ReturnCode&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;nsmgr).InnerText;&lt;/span&gt;
    &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;string&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;out_detailCode&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;xmlDoc.SelectSingleNode(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13&quot;&gt;&amp;quot;/XPATH/For/DetailCode&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;nsmgr).InnerText;&lt;/span&gt;
    &lt;span style=&quot;color: #6ab825; font-weight: bold&quot;&gt;string&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;out_tid&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;xmlDoc.SelectSingleNode(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13&quot;&gt;&amp;quot;/XPATH/For/TID&amp;quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0&quot;&gt;nsmgr).InnerText;&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0&quot;&gt;}&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #d0d0d0&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/439763319445817507/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/439763319445817507?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/439763319445817507'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/439763319445817507'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2015/02/calling-another-webservice-in-c-rule.html' title='Making external webservice call in C# rule'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-1955036973618051961</id><published>2015-02-25T18:09:00.003+02:00</published><updated>2015-02-25T22:46:55.411+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Adding Reference"/><category scheme="http://www.blogger.com/atom/ns#" term="does not exist in the namespace"/><category scheme="http://www.blogger.com/atom/ns#" term="SV"/><title type='text'>Adding .Net Reference</title><content type='html'>You can write complicated C# codes in SV Designer. By default only System and System.Code references can be used while wirting your C# methods. Since you are mostly working with XML objects you are going to have to use System.Xml.XmlDocument reference.&lt;br /&gt;
&lt;br /&gt;
When you add &lt;b&gt;&lt;i&gt;using System.Xml;&lt;/i&gt;&lt;/b&gt; line at the top of your code you are going to get &quot;Xml does not exist in the namespace &#39;System&#39;&quot; error.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG64xOZXy_-UwL2h6qmZNEpoxchf4B66QevpNcsOjWhHhLqfqJ2SevJQxxcic7Sr_vjMZMpTXWdnvT9ETtVBHkw5NEhXBqvRw8iXR3E7Epu1euqG2ahhHn2Nze90ob6dw66DCA22ZsF1bo/s1600/3.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG64xOZXy_-UwL2h6qmZNEpoxchf4B66QevpNcsOjWhHhLqfqJ2SevJQxxcic7Sr_vjMZMpTXWdnvT9ETtVBHkw5NEhXBqvRw8iXR3E7Epu1euqG2ahhHn2Nze90ob6dw66DCA22ZsF1bo/s1600/3.jpg&quot; height=&quot;121&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
To resolve this error SV has to include System.Xml reference. Making this is pretty easy:&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;For the SV Designer:&lt;/b&gt;&lt;br /&gt;
Go to directory &lt;span style=&quot;font-size: x-small;&quot;&gt;[SVDesignerInstallationPath]\HP Service Virtualization Designer\Designer\bin\Config&lt;/span&gt; and change following lines of&amp;nbsp;&lt;i&gt;scripted-rule-context.xml&lt;/i&gt; file&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;property name=&quot;ReferenceAssemblies&quot; value=&quot;System,System.Core&quot; /&amp;gt;&lt;/span&gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;property name=&quot;ReferenceAssemblies&quot; value=&quot;System,System.Core,System.Xml&quot; /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;For the SV Server:&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
Go to directory&amp;nbsp;&lt;span style=&quot;font-size: x-small;&quot;&gt;[SVDesignerInstallationPath]\HP Service Virtualization Server\Server\bin\Config&lt;/span&gt;&amp;nbsp;and change following lines of&amp;nbsp;&lt;i&gt;scripted-rule-context.xml&lt;/i&gt;&amp;nbsp;file&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;property name=&quot;ReferenceAssemblies&quot; value=&quot;System,System.Core&quot; /&amp;gt;&lt;/span&gt;&lt;br /&gt;
to&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span style=&quot;font-size: x-small;&quot;&gt;&amp;lt;property name=&quot;ReferenceAssemblies&quot; value=&quot;System,System.Core,System.Xml&quot; /&amp;gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
And restart the SV Server.</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/1955036973618051961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/1955036973618051961?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/1955036973618051961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/1955036973618051961'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2015/02/adding-net-reference.html' title='Adding .Net Reference'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG64xOZXy_-UwL2h6qmZNEpoxchf4B66QevpNcsOjWhHhLqfqJ2SevJQxxcic7Sr_vjMZMpTXWdnvT9ETtVBHkw5NEhXBqvRw8iXR3E7Epu1euqG2ahhHn2Nze90ob6dw66DCA22ZsF1bo/s72-c/3.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-6192176024017552004</id><published>2015-02-25T17:47:00.001+02:00</published><updated>2015-02-25T17:53:33.006+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HP Service Virtualization"/><category scheme="http://www.blogger.com/atom/ns#" term="Scripted Rule"/><category scheme="http://www.blogger.com/atom/ns#" term="Service Virtualization"/><title type='text'>Enabling scripted rules</title><content type='html'>Because of heavy business schedule I wasn&#39;t able to submit new posts. Meanwhile I was mostly working on UFT and HP&#39;s Service Virtualization (SV).
After the business hours it would be better for me to write some posts before forgetting what I learned.
I am going to describe how to enable scripted rules in SV.
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
For some of the web services that needed to be virtualised, sometimes default rules and default functions may not be enough to implement desired output. For this reason there are scripted rules that you can do by programmatically for those you weren&#39;t able to implement by default functions. First you have to enable scripted rules funcionality from the SV Designer. 
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCWfEFHRSSHy4ODd3XkvmvAksfwtrpBiZEJe7ZBvOsai7h08Q-nrLu1xE0X6kD9AYcLt10gJRGneeTVysm_hypYeb5MtuZvMWqQ50JR9GxBHQtgMdYuUG9EqnhhYj4tzZhNk3Wd1uWpI59/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCWfEFHRSSHy4ODd3XkvmvAksfwtrpBiZEJe7ZBvOsai7h08Q-nrLu1xE0X6kD9AYcLt10gJRGneeTVysm_hypYeb5MtuZvMWqQ50JR9GxBHQtgMdYuUG9EqnhhYj4tzZhNk3Wd1uWpI59/s320/1.jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
Open the SV Designer and click Tools-&amp;gt;Options. Then select the Labs section and click the &quot;Enable Scripted rule&quot; checkbox that is in the Scripting section. By doing this you can write Javascript (and C#) codes in your rules.&lt;br /&gt;
&lt;br /&gt;
HP tells that this feature is in experimental phase, but according to my experience it works pretty smooth. In version 3.61 we were able to write javascript codes but that was insufficient in some cases. But with the version 3.62 now we are able to write C# code and it is very powerful and stable.&lt;br /&gt;
&lt;br /&gt;
When you enable the scripted rule feature you can create a scripted rule for a data model (as below screenshot). You can either create a javascript rule and C# rule (or both if you want).&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb-KfmJxqopZRitni5iDVFh2GdcqRBcl6cH6iuZR3t5zB_59yMThKzaFWSq5v917_swg-wx9Usq8AkcYaOcOLQMJao5S2pgOQ9N9Awjet8fGcTe5a78zbsiBpJh9D6jwOxPe9ggeTkq4lI/s1600/2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgb-KfmJxqopZRitni5iDVFh2GdcqRBcl6cH6iuZR3t5zB_59yMThKzaFWSq5v917_swg-wx9Usq8AkcYaOcOLQMJao5S2pgOQ9N9Awjet8fGcTe5a78zbsiBpJh9D6jwOxPe9ggeTkq4lI/s1600/2.jpg&quot; height=&quot;138&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Next, I am going to describe adding .Net referance to your C# rule.&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/6192176024017552004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/6192176024017552004?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/6192176024017552004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/6192176024017552004'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2015/02/enabling-scripted-rules.html' title='Enabling scripted rules'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgCWfEFHRSSHy4ODd3XkvmvAksfwtrpBiZEJe7ZBvOsai7h08Q-nrLu1xE0X6kD9AYcLt10gJRGneeTVysm_hypYeb5MtuZvMWqQ50JR9GxBHQtgMdYuUG9EqnhhYj4tzZhNk3Wd1uWpI59/s72-c/1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-5585763800520313642</id><published>2014-09-07T16:45:00.004+03:00</published><updated>2015-03-17T08:37:00.171+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ALM upgrade"/><category scheme="http://www.blogger.com/atom/ns#" term="How to migrate QC"/><category scheme="http://www.blogger.com/atom/ns#" term="How to upgrade to ALM"/><category scheme="http://www.blogger.com/atom/ns#" term="Migrate ALM 11 to ALM 12"/><category scheme="http://www.blogger.com/atom/ns#" term="QC 11 to ALM 12 migration"/><category scheme="http://www.blogger.com/atom/ns#" term="QC migration"/><category scheme="http://www.blogger.com/atom/ns#" term="Step by step ALM Upgrade"/><category scheme="http://www.blogger.com/atom/ns#" term="Upgrade ALM"/><category scheme="http://www.blogger.com/atom/ns#" term="Upgrade to ALM"/><title type='text'>Upgrading QC 11 to ALM 12.01</title><content type='html'>According to some QC admins upgrading and migrating to ALM may be very complicated. I am going to describe how we made this process in less than 3 hours for a project that is bigger than 40GB without any problem. No DBA needed for this operation :)&amp;nbsp;&lt;b&gt;Following the described procedures on this page is at your own risk!&lt;/b&gt; Do not blame me if something goes wrong :)&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
Step 1: We installed brand new Oracle DB server on Linux and new Windows App Server for the ALM for the new production environment. Also we needed an extra temporary Windows application server that is same version as existing QC11 App Server. This temporary server is not mandotary, this is just to make this process much safer.&lt;br /&gt;
&lt;br /&gt;
Step 2: Install QC11 application on the temporary application server that mentioned in Step 1. You can use out of box 30 days evaluation free licenses. No extra license needed for this process. Installing same patches on current production enviroment to this temporary server is suggested. The DB server for this temporary application server is going to be your new production server&#39;s DB as shown in the following screenshot.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh11SZbIBQn_w4X4ApIdTkmT0EmfmHXwyqCoptMSKH6lbYOr2EFSSH8HSm3Ez4BMqGOalD2ZP28eiMMMh415VS6rOlqnk8z9kpY4bAG82vgs1YUL9L3jnoZIT-yaLBKdjlQI8JY_ocQrK5R/s1600/ALMUpgrade_Pic01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh11SZbIBQn_w4X4ApIdTkmT0EmfmHXwyqCoptMSKH6lbYOr2EFSSH8HSm3Ez4BMqGOalD2ZP28eiMMMh415VS6rOlqnk8z9kpY4bAG82vgs1YUL9L3jnoZIT-yaLBKdjlQI8JY_ocQrK5R/s1600/ALMUpgrade_Pic01.jpg&quot; height=&quot;230&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Step 3: Open your current production environement&#39;s Siteadmin and Disable the project you want to upgrade and migrate from the Site Projects tab. In the Site Projects tab select Project Details tab and take note the &lt;b&gt;Project Directory&lt;/b&gt; property. Verifying and Repairing the project from the Maintain Project menu suggested.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Step 4: On the current production QC server open the project directory path and then open the ProjRep folder in that directory. You&#39;ll see &quot;000&quot; folder there. Cut-Paste this folder to somewhere else in the same drive (C:\TempALM_Rep\MyProj1).&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Step 5: From the current production environment&#39;s Siteadmin panel right click on the project and select Export Project option. Cut-Paste operation in Step 4 is going to decrease the time needed to export project. This process can take upto 1 hours according to your project&#39;s size. When the export operation finishes Cut-Paste the &quot;000&quot; folder to it&#39;s original location. The project should be still deactivated.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Step 6: Open you temporary QC Server&#39;s Siteadmin panel. Go to Site Projects tab and select Create Project. Select &quot;Create a project by importing data from exported project&quot; option. Do not forget that you are importing the project to your new production DB server now. This import process can take upto 1,5 hours according to your project&#39;s size.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv6RTjo_xskAyxZDUUYvO5nq0MDntj27wKLIvd_LFGy05xB1yXLz8aTMwdjVJ5DwHQy9GFZQnQ3aKA6Sji5qGrGb9ITrFbpH6XFG7owidANPNvry4w7RbZvJ7flP-VXu_tuLytUqSNs20A/s1600/ALMUpgrade_Pic02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjv6RTjo_xskAyxZDUUYvO5nq0MDntj27wKLIvd_LFGy05xB1yXLz8aTMwdjVJ5DwHQy9GFZQnQ3aKA6Sji5qGrGb9ITrFbpH6XFG7owidANPNvry4w7RbZvJ7flP-VXu_tuLytUqSNs20A/s1600/ALMUpgrade_Pic02.jpg&quot; height=&quot;211&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span id=&quot;goog_914238817&quot;&gt;&lt;/span&gt;&lt;span id=&quot;goog_914238818&quot;&gt;&lt;/span&gt;Step 7: From the temporary QC Server&#39;s Siteadmin right click on the imported project and select Remove Project option. This will remove the project from the PROJECTS table, not going to drop the project&#39;s DB Schema.&lt;br /&gt;
&lt;br /&gt;
Step 8: You can start copying repository folder&#39;s &quot;000&quot; directory from the existing production application server to new ALM application server&#39;s drive (to a temporary folder).&lt;br /&gt;
&lt;br /&gt;
Step 9: Open the ALM App Server&#39;s repository path. There should be LAB_PROJECT directory (if not you can create an empty project). Drill-down the LAB_PROJECT&#39;s repository folder, you are going to see &quot;dbid.xml&quot; file. In this file you can see you DB User&#39;s hashed password between the&amp;nbsp;DB_USER_PASS tags. Write down this value to somewhere.&lt;br /&gt;
&lt;br /&gt;
Step 10: From the temporary QC server Copy the project repository folder to new ALM Server&#39;s repository path. After the temporary project&#39;s repository copied drilldown to repository and you&#39;ll see &quot;ProjRep&quot; folder. Copy and overwrite the &quot;000&quot; directory inside ProjRep folder that you copied before on Step 8.&lt;br /&gt;
&lt;br /&gt;
Step 11:&lt;br /&gt;
a) Open the dbid.xml file on the ALM Server and check the DB_USER_PASS value. It should be same as the value that you checked on Step 9. If not change that value to same value as Step 9.&lt;br /&gt;
&lt;br /&gt;
b) Check&amp;nbsp;PHYSICAL_DIRECTORY value. It should be the path that you copied the repository to.&lt;br /&gt;
&lt;br /&gt;
Step 12: From the new ALM Server&#39;s Siteadmin panel select Restore Project. Select DBID.XML file and follow the instructions. This process shouldn&#39;t take more than 1 minutes.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1nz3Pvn7MhnqPI3Myx53Qr3Jnt_ToYKmbzFgrawxUlLhG0XvzIhwFWdxDTqD5eo0HJjAXBfCo8K16R5vef70HbobsYpDDOq6yO1GivO7ukNUw4frK-yz9vQZTFeWCbSF8XfrxVwBhnP80/s1600/ALMUpgrade_Pic03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi1nz3Pvn7MhnqPI3Myx53Qr3Jnt_ToYKmbzFgrawxUlLhG0XvzIhwFWdxDTqD5eo0HJjAXBfCo8K16R5vef70HbobsYpDDOq6yO1GivO7ukNUw4frK-yz9vQZTFeWCbSF8XfrxVwBhnP80/s1600/ALMUpgrade_Pic03.jpg&quot; height=&quot;81&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Step 13: After the restore project finishes, you should see the project in the Site Project&#39;s tab. Right click on the project and select Maintain Project -&amp;gt; Upgrade Project. This step may take upto 2-3 minutes.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
You can activate the project now from the new ALM server&#39;s siteadmin panel.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/5585763800520313642/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/5585763800520313642?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/5585763800520313642'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/5585763800520313642'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2014/09/upgrading-qc-11-to-alm-1201.html' title='Upgrading QC 11 to ALM 12.01'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh11SZbIBQn_w4X4ApIdTkmT0EmfmHXwyqCoptMSKH6lbYOr2EFSSH8HSm3Ez4BMqGOalD2ZP28eiMMMh415VS6rOlqnk8z9kpY4bAG82vgs1YUL9L3jnoZIT-yaLBKdjlQI8JY_ocQrK5R/s72-c/ALMUpgrade_Pic01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-2589427224300204811</id><published>2014-06-16T14:19:00.001+03:00</published><updated>2015-05-07T17:51:48.163+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Programmatically"/><category scheme="http://www.blogger.com/atom/ns#" term="Proxy configuration"/><category scheme="http://www.blogger.com/atom/ns#" term="QTP"/><title type='text'>Changing proxy configuration automatically</title><content type='html'>For our automation scripts we are testing various type of applications. Some of these applications needs proxy configuration to access the application page while for some of them proxy mustn&#39;t be configured.&lt;br /&gt;
To solve this we use a function named &quot;initAutomation&quot; that takes application name as a parameter. This function is being called at the beginning of the test script and checks the application name and then decides to configure proxy settings before the execution.&lt;br /&gt;
&lt;br /&gt;
Following piece of code accomplishes this functionality.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div style=&quot;background: #eeeedd; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;Function&lt;/span&gt; &lt;span style=&quot;color: #008b45;&quot;&gt;getVal&lt;/span&gt;(p_key)
  v_retVal = &lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;N/A&quot;&lt;/span&gt;
  &lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;Select&lt;/span&gt; &lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;Case&lt;/span&gt; p_key
    &lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;Case&lt;/span&gt; &lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;AutoConfigURL&quot;&lt;/span&gt; v_retVal = &lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;http://&amp;lt;&amp;lt;&amp;lt;autoconfigURL&amp;gt;&amp;gt;&amp;gt;&quot;&lt;/span&gt;
    &lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;Case&lt;/span&gt; &lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;QCDBNAME&quot;&lt;/span&gt; v_retVal = &lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;QCTEST&quot;&lt;/span&gt;
  &lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;Select&lt;/span&gt;
  getVal = v_retVal
&lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;Function&lt;/span&gt;

&lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;Function&lt;/span&gt; &lt;span style=&quot;color: #008b45;&quot;&gt;initAutomation&lt;/span&gt;(p_appName)
  &lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;If&lt;/span&gt; p_appName=&lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;APP1&quot;&lt;/span&gt; &lt;span style=&quot;color: darkmagenta;&quot;&gt;OR&lt;/span&gt; p_appName=&lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;APP2&quot;&lt;/span&gt; &lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;Then&lt;/span&gt;
    SystemUtil.Run &lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;cmd.exe&quot;&lt;/span&gt;, &lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;/D /C reg delete &quot;&quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings&quot;&quot; /v AutoConfigURL /f&quot;&lt;/span&gt;
  &lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;Else&lt;/span&gt;
    SystemUtil.Run &lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;cmd.exe&quot;&lt;/span&gt;, &lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;/D /C reg add &quot;&quot;HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings&quot;&quot; /v AutoConfigURL /t REG_SZ /d &quot;&quot;&quot;&lt;/span&gt; &amp;amp; getVal(&lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;AutoConfigURL&quot;&lt;/span&gt;)  &amp;amp; &lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;&quot;&quot; /f&quot;&lt;/span&gt;
  &lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;If&lt;/span&gt;
&lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;Function&lt;/span&gt;
&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/2589427224300204811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/2589427224300204811?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/2589427224300204811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/2589427224300204811'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2014/06/changing-proxy-configuration.html' title='Changing proxy configuration automatically'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-6315850202725038623</id><published>2014-06-16T13:24:00.002+03:00</published><updated>2014-06-16T14:04:14.198+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Disable Smart Identification"/><category scheme="http://www.blogger.com/atom/ns#" term="QTP Smart Identification"/><title type='text'>Disabling Smart Identification</title><content type='html'>&lt;br /&gt;
Sometimes the &quot;Smart Identification&quot; functionality may become a pain for the automation scripts especially if you have dozens of test scripts. I prefer not to use this functionality because of slow identification and sometimes QTP mis-identifies the objects. For me it is better to get an &quot;Object not found&quot; error instead of waiting for the smart identification to find correctly desired object.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;As far as i know there are 2 ways to disable smart identification from the QTP menus.&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;From the object repository. You can disable it by selecting for desired objects.&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1FCdzkMMRU38zNWwadCCTqBb9RnSgmLAbOgRlu2f3a0gryOyFsRFVtHWmSNY9fAOA4QT2RPysTUsvc3N3R4Mm8x_s8QfYkKr-pFxkciIB9zGnCPeLZvPOPucEjR76InX6TuHZygie_8Tk/s1600/SmartIdentification_00.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1FCdzkMMRU38zNWwadCCTqBb9RnSgmLAbOgRlu2f3a0gryOyFsRFVtHWmSNY9fAOA4QT2RPysTUsvc3N3R4Mm8x_s8QfYkKr-pFxkciIB9zGnCPeLZvPOPucEjR76InX6TuHZygie_8Tk/s1600/SmartIdentification_00.jpg&quot; height=&quot;225&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;From the File -&amp;gt; Settings -&amp;gt; Run menu. You can disable it for all objects.&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU4s14pa5zLB1S_UajeBnEmUvClh07Waz1pTZLWvoufRjJUyx1jHApt5bivbMuMVu_O8zbBhurLZ5VM39qGu-NOTLMz72Qn2-05RKMNVMqGsQcPrWl6Icg6jGp5GXNDX8B0SOxs7KP6bX5/s1600/SmartIdentification.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhU4s14pa5zLB1S_UajeBnEmUvClh07Waz1pTZLWvoufRjJUyx1jHApt5bivbMuMVu_O8zbBhurLZ5VM39qGu-NOTLMz72Qn2-05RKMNVMqGsQcPrWl6Icg6jGp5GXNDX8B0SOxs7KP6bX5/s1600/SmartIdentification.jpg&quot; height=&quot;253&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
For a testset that contains dozen of automation scripts disabling smart identification may consume lots of time to configure in either two ways. The third and the best way for me is disabling it by programmatically. All my automation test scripts call a function named &quot;initAutomation&quot; function at the very beginning of the scripts. This function is defined in the shared function library that is also linked with the test scripts. Within this function i am preparing the environment for automation to run. For instance you may change some registiry records (for proxy configuration), prepare test parameters, close opened applications, etc...&lt;br /&gt;
&lt;br /&gt;
Adding following lines into that function disables smart identification for all automation scripts.&lt;/div&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #eeeedd; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;Set&lt;/span&gt; qtApp = CreateObject(&lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;QuickTest.Application&quot;&lt;/span&gt;)
qtApp.Test.Settings.Run.OnError = &lt;span style=&quot;color: #cd5555;&quot;&gt;&quot;Stop&quot;&lt;/span&gt;
qtApp.Test.Settings.Run.DisableSmartIdentification = &lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;True&lt;/span&gt;
&lt;span style=&quot;color: darkmagenta; font-weight: bold;&quot;&gt;Set&lt;/span&gt; &lt;span style=&quot;line-height: 125%;&quot;&gt;qtApp &lt;/span&gt;&lt;span style=&quot;line-height: 125%;&quot;&gt;= &lt;/span&gt;&lt;span style=&quot;color: darkmagenta; font-weight: bold; line-height: 125%;&quot;&gt;Nothing&lt;/span&gt;&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/6315850202725038623/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/6315850202725038623?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/6315850202725038623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/6315850202725038623'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2014/06/disabling-smart-identification.html' title='Disabling Smart Identification'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1FCdzkMMRU38zNWwadCCTqBb9RnSgmLAbOgRlu2f3a0gryOyFsRFVtHWmSNY9fAOA4QT2RPysTUsvc3N3R4Mm8x_s8QfYkKr-pFxkciIB9zGnCPeLZvPOPucEjR76InX6TuHZygie_8Tk/s72-c/SmartIdentification_00.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-1736151619804947138</id><published>2013-06-20T15:32:00.000+03:00</published><updated>2015-05-07T17:49:50.548+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Exporting big qc projects"/><category scheme="http://www.blogger.com/atom/ns#" term="How to export with sapi"/><category scheme="http://www.blogger.com/atom/ns#" term="QC"/><category scheme="http://www.blogger.com/atom/ns#" term="QCCR1J17611"/><category scheme="http://www.blogger.com/atom/ns#" term="Siteadmin"/><title type='text'>Exporting QC Projects bigger than 4GB</title><content type='html'>Exporting projects those are bigger than 4GB from siteadmin is a known limitation of QC 11.00. Fixing this limitation is being traced under enhancement request: QCCR1J17611. Until HP publishes a fix for this limitation you can use following steps for exporting big QC projects. I&#39;ve described &lt;a href=&quot;http://qualitesting.blogspot.com/2013/01/how-to-restore-qc-project-that-is.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt; how to restore these backups.&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;First of all we need to reduce the project size. You can add following lines in &lt;a href=&quot;http://qualitesting.blogspot.com/2013/01/how-to-make-scheduled-backup-qc-project.html&quot; target=&quot;_blank&quot;&gt;this&lt;/a&gt; script just before exporting the project. &lt;b&gt;Caution: Be carefull while moving the repository files the project must be deactivated. &lt;/b&gt;Otherwise smart repository builder job will link the rep files to invalid objects.&lt;br /&gt;&lt;br /&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #202020; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39;Temporary move the repository file&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;fso&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CreateObject(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Scripting.FileSystemObject&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;fso.MoveFolder&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_repDirectory&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;\000&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_tempPath&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_date&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;_&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_project&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;sa.ExportProject&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domain,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_project,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_fileName&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;This piece of code is going to cut and paste the repository folder to temporary folder. After export process finishes put back the rep folder to it&#39;s original directory. &lt;b&gt;Do not activate the project until you put back the repository folder to it&#39;s original location.&lt;/b&gt;&amp;nbsp;Otherwise smart repositoy orginizer job will start to work and going to update the smart_repository_logical_file and smart_repository_physical_file tables. It will be safe to check the&amp;nbsp;SMART_REPOSITORY_LOGICAL_FILE and&amp;nbsp;SMART_REPOSITORY_PHYSICAL_FILE table data still shows the correct files.&lt;br /&gt;&lt;br /&gt;&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #202020; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39;Move back the repository file to its original place&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;fso.MoveFolder&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_tempPath&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_date&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;_&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_project,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_repDirectory&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;\000&quot;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&#39;&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;sa.ActivateProject&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domain,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_project&lt;/span&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;br /&gt;
&lt;li&gt;Of course you&#39;ve to define v_tempPath (whereever you have available on network or on disk) and v_repDirectory (the repository path of the project) in the beginning of the script.&lt;/li&gt;
&lt;li&gt;You can get the repository folder backup with the following batch commands. I am assuming you are using &lt;a href=&quot;http://www.7-zip.org/&quot; target=&quot;_blank&quot;&gt;7-zip&lt;/a&gt; command line version.&lt;br /&gt;&lt;br /&gt;


&lt;!-- HTML generated using hilite.me --&gt;&lt;div style=&quot;background: #202020; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;hr=%&lt;/span&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;time&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;:~&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;%&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;%hr:~0,1%&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;equ&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot; &quot;&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;hr=&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;%hr:~&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;%&lt;/span&gt;
&lt;span style=&quot;color: #ed9d13;&quot;&gt;7za.exe&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;a&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-t7z&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;YourProjectName_%date:~-&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;%%date:~-&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;10&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;%%date:~-&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;7&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;%_%hr%%&lt;/span&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;time&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;:~&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;%%&lt;/span&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;time&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;:~&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;6&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;%&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;.7&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;z&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;YourRepositoryDirectory\YourProjectName\ProjRep&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/1736151619804947138/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/1736151619804947138?isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/1736151619804947138'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/1736151619804947138'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2013/06/exporting-qc-projects-bigger-than-4gb.html' title='Exporting QC Projects bigger than 4GB'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-3109631358671750866</id><published>2013-06-04T17:12:00.001+03:00</published><updated>2013-07-08T15:26:48.670+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="QC"/><category scheme="http://www.blogger.com/atom/ns#" term="QC DB"/><category scheme="http://www.blogger.com/atom/ns#" term="QC Defect Status Change"/><category scheme="http://www.blogger.com/atom/ns#" term="QC Reporting"/><title type='text'>Getting defect time report for status change actions</title><content type='html'>In the analysis module of the QC there are bunch of report types that you can measure what is going on about the defects for your project. But some reports are missing. I&#39;ll describe one of the most important one.
&lt;br /&gt;
If you want to see how much time spent for fixing a defect you have to check it&#39;s history section from the GUI. There is no way - at least i couldn&#39;t find - for taking this information from the predefined reports for all (or a group of) defects. Here is the SQL for how many hours passed for changing a defect&#39;s status (&lt;b&gt;Closed &lt;/b&gt;and &lt;b&gt;Rejected&amp;amp;Closed&lt;/b&gt; statuses are assumed to be final statuses for a defect). You can use these SQLs in the Analysis section by creating Excel Report or you may want to use them directly as a SQL statement via TOAD or you can embed them in an excel sheet.&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;
&lt;div style=&quot;background: #202020; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;TO_NUMBER(AAA.BUG_ID)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ID,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;AAA.AU_TIME&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;STARTDT,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BBB.AU_TIME&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ENDDT,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ROUND(((BBB.AU_TIME&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;AAA.AU_TIME)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;TIME_ELAPSED_HOURS,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BBB.AP_OLD_VALUE&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;||&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;&amp;gt;&#39;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;||&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BBB.AP_NEW_VALUE&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ACTION,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;TO_CHAR(CCC.BG_DETECTION_DATE,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;yyyy-mm&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;TERM,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CCC.BG_SEVERITY&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt;   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ROWNUM&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ROW_ID,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;AA.*&lt;/span&gt;
        &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt;   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_ENTITY_ID&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BUG_ID,&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_TIME,&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B.AP_OLD_VALUE,&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B.AP_NEW_VALUE&lt;/span&gt;
                &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt;   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;YOUR_PROJECT_SCHEMA&amp;gt;&amp;gt;&amp;gt;.AUDIT_LOG&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A,&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;YOUR_PROJECT_SCHEMA&amp;gt;&amp;gt;&amp;gt;.AUDIT_PROPERTIES&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B&lt;/span&gt;
                &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;WHERE&lt;/span&gt;  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_ACTION_ID&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B.AP_ACTION_ID&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AND&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_ENTITY_TYPE&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;BUG&#39;&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AND&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B.AP_FIELD_NAME&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;BG_STATUS&#39;&lt;/span&gt;
                &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;ORDER&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;BY&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_ENTITY_ID,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_TIME)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;AA)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;AAA,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ROWNUM&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ROW_ID,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;AA.*&lt;/span&gt;
        &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt;   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_ENTITY_ID&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BUG_ID,&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_TIME,&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B.AP_OLD_VALUE,&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B.AP_NEW_VALUE&lt;/span&gt;
                &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt;   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;YOUR_PROJECT_SCHEMA&amp;gt;&amp;gt;&amp;gt;.AUDIT_LOG&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A,&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;YOUR_PROJECT_SCHEMA&amp;gt;&amp;gt;&amp;gt;.AUDIT_PROPERTIES&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B&lt;/span&gt;
                &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;WHERE&lt;/span&gt;  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_ACTION_ID&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B.AP_ACTION_ID&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AND&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_ENTITY_TYPE&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;BUG&#39;&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AND&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B.AP_FIELD_NAME&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;BG_STATUS&#39;&lt;/span&gt;
                &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;ORDER&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;BY&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_ENTITY_ID,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_TIME)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;AA)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BBB,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;YOUR_PROJECT_SCHEMA&amp;gt;&amp;gt;&amp;gt;.BUG&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CCC&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;WHERE&lt;/span&gt;  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;AAA.BUG_ID&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BBB.BUG_ID&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AND&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(AAA.ROW_ID&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BBB.ROW_ID&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AND&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CCC.BG_BUG_ID&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BBB.BUG_ID&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;UNION&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;ALL&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;TO_NUMBER(CC.BG_BUG_ID)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ID,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;DD.AU_TIME&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;STARTDT,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;SYSDATE&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ENDDT,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ROUND(((SYSDATE&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;DD.AU_TIME)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;24&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;),&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;TIME_ELAPSED_HOURS,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CONCAT(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;&amp;gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CC.BG_STATUS)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ACTION,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;TO_CHAR(CC.BG_DETECTION_DATE,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;yyyy-mm&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;TERM,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CC.BG_SEVERITY&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;YOUR_PROJECT_SCHEMA&amp;gt;&amp;gt;&amp;gt;.AUDIT_PROPERTIES&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BB,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;MAX&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;(AU_ACTION_ID)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;AU_ACTION_ID,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BUG_ID&lt;/span&gt;
        &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt;   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_ENTITY_ID&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BUG_ID,&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_ACTION,&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_ACTION_ID,&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_TIME,&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B.AP_OLD_VALUE,&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B.AP_NEW_VALUE&lt;/span&gt;
                &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;YOUR_PROJECT_SCHEMA&amp;gt;&amp;gt;&amp;gt;.AUDIT_LOG&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A,&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;YOUR_PROJECT_SCHEMA&amp;gt;&amp;gt;&amp;gt;.AUDIT_PROPERTIES&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B&lt;/span&gt;
                &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;WHERE&lt;/span&gt;  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_ACTION_ID&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B.AP_ACTION_ID&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AND&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_ENTITY_TYPE&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;BUG&#39;&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AND&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;B.AP_FIELD_NAME&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;BG_STATUS&#39;&lt;/span&gt;
                &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;ORDER&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;BY&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_ENTITY_ID,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;A.AU_TIME)&lt;/span&gt;
        &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;GROUP&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;BY&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BUG_ID)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;AA,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;YOUR_PROJECT_SCHEMA&amp;gt;&amp;gt;&amp;gt;.BUG&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CC,&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;YOUR_PROJECT_SCHEMA&amp;gt;&amp;gt;&amp;gt;.AUDIT_LOG&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;DD&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;WHERE&lt;/span&gt;  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;AA.AU_ACTION_ID&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BB.AP_ACTION_ID&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AND&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;AA.BUG_ID&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CC.BG_BUG_ID&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AND&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CC.BG_STATUS&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;NOT&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;IN&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;Closed&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;Rejected&amp;amp;Closed&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AND&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;DD.AU_ACTION_ID&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;AA.AU_ACTION_ID&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AND&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;DD.AU_ENTITY_TYPE&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;BUG&#39;&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AND&lt;/span&gt;
       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;BB.AP_FIELD_NAME&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;BG_STATUS&#39;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
This SQL will output the status change actions for all defects for the action that is shown in the ACTION column. For example if the ACTION column is New&amp;gt;Open this means TIME_ELAPSED_HOURS column shows how many hours passed until the corresponding defect status changed to &quot;Open&quot; from &quot;New&quot;.&lt;br /&gt;
It is a good idea to create a View by using this SQL.&lt;br /&gt;
&lt;br /&gt;
To get overall report and transpose from this SQL you can use following statement:&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #202020; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ID AS BUG_ID,&lt;/span&gt;
   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SUM&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;New&amp;gt;Open&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;New&amp;gt;Open&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;
   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SUM&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Open&amp;gt;Fixed&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Open&amp;gt;Fixed&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;
   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SUM&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Open&amp;gt;Rejected&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Open&amp;gt;Rejected&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;
   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SUM&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Fixed&amp;gt;Closed&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Fixed&amp;gt;Closed&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;
   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SUM&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Rejected&amp;gt;Rejecte&amp;amp;Closed&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Rejected&amp;gt;Rejecte&amp;amp;Closed&quot;&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ID,&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;NVL(DECODE(action,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;New&amp;gt;Open&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;time_elapsed_hours),&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
     &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;New&amp;gt;Open&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;NVL(DECODE(action,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;Open&amp;gt;Fixed&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;time_elapsed_hours),&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
     &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Open&amp;gt;Fixed&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;NVL(DECODE(action,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;Open&amp;gt;Rejected&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;time_elapsed_hours),&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
     &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Open&amp;gt;Rejected&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;NVL(DECODE(action,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;Fixed&amp;gt;Closed&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;time_elapsed_hours),&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
     &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Fixed&amp;gt;Closed&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;NVL(DECODE(action, &lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;Rejected&amp;gt;Rejected&amp;amp;Closed&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;time_elapsed_hours),&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
     &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Rejected&amp;gt;Rejected&amp;amp;Closed&quot;&lt;/span&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;        &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ID,&lt;/span&gt;
                 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SUM&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;(time_elapsed_hours)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;time_elapsed_hours,&lt;/span&gt;
                 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;action,&lt;/span&gt;
                 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;term,&lt;/span&gt;
                 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bg_severity&lt;/span&gt;
              &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt;   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;*&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;MY_VIEW_CREATED_FROM_ABOVE_SQL&amp;gt;&amp;gt;&amp;gt;)&lt;/span&gt; 
                &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;GROUP&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;BY&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ID,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;action,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;term,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bg_severity))&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;GROUP&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;BY&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ID&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;ORDER&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;BY&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ID&lt;/span&gt;
&lt;/pre&gt;
&lt;/pre&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/3109631358671750866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/3109631358671750866?isPopup=true' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/3109631358671750866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/3109631358671750866'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2013/06/getting-defect-time-report-for-status.html' title='Getting defect time report for status change actions'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-4549941648819477715</id><published>2013-01-30T00:10:00.000+02:00</published><updated>2015-05-07T17:51:01.318+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to execute query with QTP"/><category scheme="http://www.blogger.com/atom/ns#" term="Oracle"/><category scheme="http://www.blogger.com/atom/ns#" term="QTP"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><title type='text'>QTP Integration with Oracle DB</title><content type='html'>You can connect to Oracle database and execute SQL statements by following steps:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Oracle client has to be installed on QTP (or UFT) host.&lt;/li&gt;
&lt;li&gt;Assuming the tnsnames.ora file contains the desired database information.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
Using following two functions can help you to execute SQL queries.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background: #202020; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Function&lt;/span&gt; &lt;span style=&quot;color: #447fcf;&quot;&gt;executeQuery&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;(p_db,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;p_sql)&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Reporter.ReportEvent&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;micPass,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;executeQuery&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;The SQL query: &#39;&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;p_sql&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;&#39; is going to be executed on: &#39;&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;p_db&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;&#39;.&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;getVal(p_db)=&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;N/A&quot;&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Then&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Reporter.ReportEvent&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;micFail,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;executeQuery&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;DB connection information is not available.&quot;&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;executeQuery&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ExitAction&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt;
 
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;localConn&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CreateObject(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;ADODB.Connection&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;localRs&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CreateObject(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;ADODB.Recordset&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;localErr&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CreateObject(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;ADODB.Error&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;

 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;On&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Error&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Resume&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Next&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;localConn.open&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;getVal(p_db)&lt;/span&gt;
 
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Global_DBErr&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;For&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Each&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;localErr&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;In&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;localConn.Errors&lt;/span&gt;
  &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Err.Number&amp;lt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;then&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Global_DBErr&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Global_DBErr&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Err.Number&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;vbCr&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt;  &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot; &quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Err.Description&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Reporter.ReportEvent&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;micFail,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Step 1&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;DB connection failed: &quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Global_DBErr&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ExitAction&lt;/span&gt;
  &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;end&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;if&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Next&lt;/span&gt;
 
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;On&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Error&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Resume&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Next&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;localRs.open&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;p_sql,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;localConn&lt;/span&gt;
 
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;For&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Each&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Local_Err&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;In&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;localConn.Errors&lt;/span&gt;
  &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Err.Number&amp;lt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;then&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Global_DBErr&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Global_DBErr&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Err.Number&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;vbCr&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt;  &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot; &quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Err.Description&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Reporter.ReportEvent&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;micFail,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Step 1&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;SQL Execution Failed: &quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Global_DBErr&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;ExitAction&lt;/span&gt;
  &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;if&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Next&lt;/span&gt;
 
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;localRs.eof&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;then&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_retVal&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;else&lt;/span&gt;  
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_retVal&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;localRs(&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;).value&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;end&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;if&lt;/span&gt;

 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;localConn&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Nothing&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;localRs&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Nothing&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;localErr&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Nothing&lt;/span&gt;

 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Reporter.ReportEvent&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;micPass,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;executeQuery&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Query result: [&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_retVal&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;]&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;executeQuery&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_retVal&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Function&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #202020; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Function&lt;/span&gt; &lt;span style=&quot;color: #447fcf;&quot;&gt;getVal&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;(p_key)&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_retVal&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;N/A&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Select&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Case&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;p_key&lt;/span&gt;
  &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Case&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;DB1&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_retVal&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Provider=MSDAORA.1;Password=DB_PASWORD1;User ID=LOGIN_USER1;Data Source=DB1;Persist Security Info=True&quot;&lt;/span&gt;
  &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Case&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;DB2&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_retVal&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Provider=MSDAORA.1;Password=DB_PASWORD2;User ID=LOGIN_USER2;Data Source=DB2;Persist Security Info=True&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Select&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;getVal&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_retVal&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Function&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
How you make use of these functions is as following:&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;v_sysdateFromDB =&amp;nbsp;executeQuery(Parameter(&lt;span style=&quot;color: maroon;&quot;&gt;&quot;p_db&quot;&lt;/span&gt;),&amp;nbsp;&lt;span style=&quot;color: maroon;&quot;&gt;&quot;select sysdate from dual&quot;&lt;/span&gt;)</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/4549941648819477715/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/4549941648819477715?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/4549941648819477715'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/4549941648819477715'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2013/01/qtp-integration-with-oracle-db.html' title='QTP Integration with Oracle DB'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-6488937829880297441</id><published>2013-01-23T09:20:00.000+02:00</published><updated>2014-06-11T10:50:40.535+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ALM project import"/><category scheme="http://www.blogger.com/atom/ns#" term="ALM project restore"/><category scheme="http://www.blogger.com/atom/ns#" term="QC big project restore"/><category scheme="http://www.blogger.com/atom/ns#" term="Restore QC Project"/><category scheme="http://www.blogger.com/atom/ns#" term="Server disconnected while performing ImportProject action"/><category scheme="http://www.blogger.com/atom/ns#" term="server has been disconnected while performing import"/><title type='text'>How to restore a QC project that is bigger than 4GB</title><content type='html'>HP officially does not support importing qcp files for the projects whose size is bigger than 4GB and at the same time size of the qcp file must be smaller than 2GB. You probably going to get &lt;i&gt;&quot;Server disconnected while performing ImportProject action&quot;&lt;/i&gt; error message while importing the project from siteadmin panel.&lt;br /&gt;
&lt;a href=&quot;https://www.blogger.com/blogger.g?blogID=1769054949521075757&quot; name=&quot;more&quot;&gt;&lt;/a&gt;Detailed information can be found in this&amp;nbsp;&lt;a href=&quot;http://support.openview.hp.com/selfsolve/document/KM1025768&quot; target=&quot;_blank&quot;&gt;document&lt;/a&gt; (KM1025768).&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCl0ymH_T6hcPI6GwP_3z9K_nkuE66-wdqk9xMCmvz30rMVup40AHqRX9g_9tFNc_Cw3mOnszFAOFs1eTZ55_kyeweDDc_UXwAnCtTZIfgVoU15CKu3pg5SAfCbRnx421j0zE1Djlf5juC/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCl0ymH_T6hcPI6GwP_3z9K_nkuE66-wdqk9xMCmvz30rMVup40AHqRX9g_9tFNc_Cw3mOnszFAOFs1eTZ55_kyeweDDc_UXwAnCtTZIfgVoU15CKu3pg5SAfCbRnx421j0zE1Djlf5juC/s320/1.jpg&quot; height=&quot;320&quot; width=&quot;303&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
There is a workaround solution for the projects whose database files is bigger than 2GB. I&#39;ll describe the walkthrough. First of all you have to have an application that handles zip files (like 7zip or Winzip).&lt;br /&gt;
&lt;br /&gt;
Steps to recover from big qcp files:&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;Backup your original qcp file to somewhere else.&lt;/li&gt;
&lt;li&gt;Change the extension of the project&#39;s backup file to zip extension (let&#39;s call this &lt;b&gt;backup.zip&lt;/b&gt;).&lt;/li&gt;
&lt;li&gt;Extract backup.zip to backup folder.&amp;nbsp;&lt;/li&gt;
&lt;li&gt;In the backup folder cut-paste the&amp;nbsp;&lt;b&gt;ProjRep&lt;/b&gt; (let&#39;s call this folder &lt;b&gt;backup_rep&lt;/b&gt;)&lt;b&gt;&amp;nbsp;&lt;/b&gt;folder to somewhere else. ProjRep folder is a very huge file (in my case bigger than 6GB). There will be only xml files and TABLES folder in the backup folder (about 40MB - 50MB in my case).&lt;/li&gt;
&lt;li&gt;From the siteadmin panel create an empty dummy project. And export this project to &lt;b&gt;dummy.qcp&amp;nbsp;&lt;/b&gt;(To learn about export process you can check &lt;a href=&quot;http://qualitesting.blogspot.com/2013/01/how-to-make-scheduled-backup-qc-project.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Change the extension of dummy.qcp to zip.&lt;/li&gt;
&lt;li&gt;Extract the dummy.zip to dummy folder.&lt;/li&gt;
&lt;li&gt;In the dummy folder you&#39;ll see &lt;b&gt;ProjRep &lt;/b&gt;folder. Cut and paste this ProjRep folder into the backup folder.&lt;/li&gt;
&lt;li&gt;Zip the backup folder and then rename the backup.zip file to backup.qcp. Check the backup.qcp file size. It should be less than 2GB.&lt;/li&gt;
&lt;li&gt;From the siteadmin create a project from a qcp file. And use backup.qcp while import process. Do not forget to uncheck &quot;Activate project when restore completed&quot;.&lt;/li&gt;
&lt;li&gt;When the project creation completed go to the project directory via remote desktop connection. You can see the project directory from the Siteadmin Panel - Site Projects.&lt;/li&gt;
&lt;li&gt;Replace the ProjRep folder with the folder&amp;nbsp;backup_rep (the folder in the step 4).&lt;/li&gt;
&lt;li&gt;Activate the project from the siteadmin.&lt;/li&gt;
&lt;/ul&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/6488937829880297441/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/6488937829880297441?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/6488937829880297441'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/6488937829880297441'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2013/01/how-to-restore-qc-project-that-is.html' title='How to restore a QC project that is bigger than 4GB'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiCl0ymH_T6hcPI6GwP_3z9K_nkuE66-wdqk9xMCmvz30rMVup40AHqRX9g_9tFNc_Cw3mOnszFAOFs1eTZ55_kyeweDDc_UXwAnCtTZIfgVoU15CKu3pg5SAfCbRnx421j0zE1Djlf5juC/s72-c/1.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-1192600804056377566</id><published>2013-01-22T22:47:00.001+02:00</published><updated>2015-05-07T17:46:27.582+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="How to backup QC"/><category scheme="http://www.blogger.com/atom/ns#" term="How to scheduled backup QC project"/><category scheme="http://www.blogger.com/atom/ns#" term="QC"/><category scheme="http://www.blogger.com/atom/ns#" term="QC Project Backup"/><category scheme="http://www.blogger.com/atom/ns#" term="Scheduled Backup"/><title type='text'>How to make scheduled backup of a QC project</title><content type='html'>The Quality Center&#39;s site admin supports backing up and restoring the projects as following the below screenshot procedure. &lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;The output file will be a &lt;b&gt;.qcp&lt;/b&gt; extension file.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis5MoV4Fss9kpfN5qBGkykHEQXEhuPMdsAFedFdqKWDJWd7vaHOujYye2nYlxd-krqwlBpfoAO91C0TSDt4olq-So6EeVh8zJJQJwxte27UreEF0-XoXiRcKKs0c7KcGqk4C5TrB7kg5IW/s1600/1.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;294&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis5MoV4Fss9kpfN5qBGkykHEQXEhuPMdsAFedFdqKWDJWd7vaHOujYye2nYlxd-krqwlBpfoAO91C0TSDt4olq-So6EeVh8zJJQJwxte27UreEF0-XoXiRcKKs0c7KcGqk4C5TrB7kg5IW/s320/1.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
Restoring a .qcp file that is smaller than 2GB is a straight forward process. As below screenshot just selecting Create Project and then checking the last option will be enough. In the &lt;a href=&quot;http://qualitesting.blogspot.com/2013/01/how-to-restore-qc-project-that-is.html&quot; target=&quot;_blank&quot;&gt;next entry&lt;/a&gt; i am going to describe how to restore a qcp project file that is bigger than 4GB.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBHqluaNe8aghQ4vkmuo8GkZn8r4RfUOo3pmxALZBeZUdjQm92ZBCsh4HMqhsDUuoMZ-rM7aJImRwWob7EVxyRtZn2e-ZsTYq3bLW9C9zU8lO90byCePVemXbEsvl1ScQZaCpEAoloMbdT/s1600/2.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgBHqluaNe8aghQ4vkmuo8GkZn8r4RfUOo3pmxALZBeZUdjQm92ZBCsh4HMqhsDUuoMZ-rM7aJImRwWob7EVxyRtZn2e-ZsTYq3bLW9C9zU8lO90byCePVemXbEsvl1ScQZaCpEAoloMbdT/s320/2.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
If you are managing an important QC project, making this backup process as a scheduled job is a good option rather than backing up database scheme and file system. You can use following VB code and define a scheduled job on Windows Task Manager that triggers this script. To make sure that this code runs on your host first you have to open the siteadmin and qc application to install the client components like OTAClient and SAClient.&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
By using this script you can define the domains and projects those you want to back up. Before starting the backup process the script opens a defect on a different project (SUPPORT:QC_BackupProject). When the job completes the defect will be Fixed and Closed and then the alarm mail will be sent. The script must be copied on the backup server and a scheduled task must be defined by using Windows Task Manager.&amp;nbsp;&lt;/div&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #202020; background: black; border-width: .1em .1em .1em .8em; border: solid gray; color: white; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Dim&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_qcURL,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;sa,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_username,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_pasword&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Dim&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domain,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_project,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_date,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_fileName,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bugId,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_summary&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Dim&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_projectList,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domainProject,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domainProjectArray&lt;/span&gt;

&lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_qcURL&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;http://&amp;lt;hostname&amp;gt;:8080/qcbin&quot;&lt;/span&gt;
&lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_projectList&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;DOMAIN:PROJECT_I;&lt;/span&gt;&lt;span style=&quot;color: #ed9d13; line-height: 125%;&quot;&gt;DOMAIN:PROJECT_II&lt;/span&gt;&lt;span style=&quot;color: #ed9d13; line-height: 125%;&quot;&gt;;&lt;/span&gt;&lt;span style=&quot;color: #ed9d13; line-height: 125%;&quot;&gt;DOMAIN:PROJECT_III&lt;/span&gt;&lt;span style=&quot;color: #ed9d13; line-height: 125%;&quot;&gt;&quot;&lt;/span&gt;

&lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_username&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;site_admin_user&quot;&lt;/span&gt;
&lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_password&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;site_admin_password&quot;&lt;/span&gt;

&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;For&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;each&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domainProject&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;split(v_projectList,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;;&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;

 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domainProjectArray&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;split(v_domainProject,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;:&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domain&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domainProjectArray(&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_project&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domainProjectArray(&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;

 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_year&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Year(Now)&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_month&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Month(Now)&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_day&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Day(Now)&lt;/span&gt; 
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_hour&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Hour(Now)&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_minute&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Minute(Now)&lt;/span&gt; 
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_second&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Second(Now)&lt;/span&gt;

 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_month&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Then&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_month&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_month&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_day&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Then&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_day&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_day&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_hour&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Then&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_hour&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_hour&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_minute&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Then&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_minute&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_minute&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_second&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Then&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_second&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_second&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt;

 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_date&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_year&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_month&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_day&lt;/span&gt;  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_hour&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_minute&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_second&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_fileName&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;D:\DO_NOT_REMOVE\QCBACKUPS\&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_date&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;_&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_project&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;.qcp&quot;&lt;/span&gt;

 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_summary&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;For project &amp;lt;&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domainProject&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;&amp;gt; backup started: &quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_date&lt;/span&gt;

 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bugId&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;openDefect&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(v_summary)&lt;/span&gt;

 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;sa&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CreateObject(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;SAClient.SaApi&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;sa.Login&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_qcURL,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_username,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_password&lt;/span&gt;
 
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;sa.SendAllQualifiedNow&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;SUPPORT&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;QC_BackupProject&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;sa.SendMessageToProjectConnectedUsers&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domain,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_project,&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;This project is going to be deactivated due to maintenence.&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;sa.DisconnectProject&lt;/span&gt;  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domain,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_project&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;sa.DeactivateProject&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domain,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_project&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;sa.ExportProject&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domain,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_project,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_fileName&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;sa.ActivateProject&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_domain,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_project&lt;/span&gt;

 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;fs&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;CreateObject(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Scripting.FileSystemObject&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;f&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;fs.GetFile(v_fileName)&lt;/span&gt;

 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;fixAndCloseDefect&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bugId,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_fileName&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;: &quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;round((f.Size/&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;1024&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)/&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;1024&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot; MB&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;sa.SendAllQualifiedNow&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;SUPPORT&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;QC_BackupProject&quot;&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Next&lt;/span&gt;
&lt;span style=&quot;color: #d0d0d0;&quot;&gt;sa.Logout&lt;/span&gt;


&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Function&lt;/span&gt;  &lt;span style=&quot;color: #447fcf;&quot;&gt;openDefect&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;(p_summary)&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_detectionDate&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Day(Now)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;.&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Month(Now)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;.&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Year(Now)&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Day(Now)&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;10&lt;/span&gt;  &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Then&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_detectionDate&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Day(Now)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;.&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Month(Now)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;.&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Year(Now)&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Month(Now)&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;10&lt;/span&gt;  &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Then&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_detectionDate&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Day(Now)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;.0&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Month(Now)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;.&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Year(Now)&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Month(Now)&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;And&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Day(Now)&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;10&lt;/span&gt;  &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Then&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_detectionDate&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;0&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Day(Now)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;.0&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Month(Now)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;.&quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;Year(Now)&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;If&lt;/span&gt;

 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tdc&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;createobject(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;TDApiOle80.TDConnection&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tdc.InitConnectionEx&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;http://&amp;lt;hostname&amp;gt;:8080/qcbin&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tdc.Login&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #ed9d13; line-height: 125%;&quot;&gt;mehmet.kahraman&lt;/span&gt;&lt;span style=&quot;color: #ed9d13; line-height: 125%;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0; line-height: 125%;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13; line-height: 125%;&quot;&gt;&quot;pass&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tdc.Connect&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;SUPPORT&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;QC_BackupProject&quot;&lt;/span&gt;
 
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bfact&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tdc.BugFactory&lt;/span&gt;
 
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;mybug&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bfact.AddItem&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(null)&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;mybug.Summary&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;p_summary&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;mybug.Status&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Open&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;mybug.Field(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;BG_SEVERITY&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;2-Medium&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;mybug.DetectedBy&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;mehmet.kahraman&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;mybug.Field(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;BG_DETECTION_DATE&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;v_detectionDate&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;mybug.Post()&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bugId&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;mybug.ID&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tdc.Logout&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tdc.Disconnect&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;openDefect&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bugId&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Function&lt;/span&gt;

&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Function&lt;/span&gt; &lt;span style=&quot;color: #447fcf;&quot;&gt;fixAndCloseDefect&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;(p_bugId,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;p_comment)&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tdc&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;createobject(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;TDApiOle80.TDConnection&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tdc.InitConnectionEx&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;http://&amp;lt;hostname&amp;gt;:8080/qcbin&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tdc.Login&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;mehmet.kahraman&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;pass&quot;&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tdc.Connect&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;SUPPORT&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;QC_BackupProject&quot;&lt;/span&gt;
 
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bfact&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tdc.BugFactory&lt;/span&gt;
    &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bgfilter&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bfact.Filter&lt;/span&gt;

    &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bgfilter.Filter(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;BG_BUG_ID&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;p_bugId&lt;/span&gt;
    &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bglist&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bgfilter.NewList&lt;/span&gt;

 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;For&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Each&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;theBug&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;In&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bglist&lt;/span&gt;
  &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Set&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bg&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bfact.Item(theBug.ID)&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bg.Field(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;BG_STATUS&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Closed&quot;&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bg.Field(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;BG_DEV_COMMENTS&quot;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;Backup completed on &amp;lt;backup_host&amp;gt;: &quot;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;amp;&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;p_comment&lt;/span&gt;
  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;bg.Post()&lt;/span&gt;
 &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Next&lt;/span&gt;

 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tdc.Logout&lt;/span&gt;
 &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tdc.Disconnect&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;End&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;Function&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
To manage the old backup files you can define another job for the following script (deletes qcp files those are older than 10 days). To accomplish this you have to put this piece of code in a batch file and define another scheduled job that calls this batch file. &lt;b&gt;forfiles.exe&lt;/b&gt;&amp;nbsp;executable file must be in the same directory with the batch file.&lt;br /&gt;
&lt;br /&gt;
Sometimes the qcp file may not be downloaded to the client that runs siteadmin panel. For this case you&#39;ve to check the QC app server for the qcp file. It should be located on this path: &amp;lt;&amp;lt;&amp;lt;InstallationPath&amp;gt;&amp;gt;&amp;gt;\HP\ALM\repository\export\export&amp;lt;&amp;lt;&amp;lt;timestamp&amp;gt;&amp;gt;&amp;gt;.qcp&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #202020; background: black; border-width: .1em .1em .1em .8em; border: solid gray; color: white; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;forfiles.exe&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;/p&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;D:\DO_NOT_REMOVE\QCBACKUPS&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;/m&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;*.qcp&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;/d&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;10&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;/c&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&quot;cmd /c del @file&quot;&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/1192600804056377566/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/1192600804056377566?isPopup=true' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/1192600804056377566'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/1192600804056377566'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2013/01/how-to-make-scheduled-backup-qc-project.html' title='How to make scheduled backup of a QC project'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEis5MoV4Fss9kpfN5qBGkykHEQXEhuPMdsAFedFdqKWDJWd7vaHOujYye2nYlxd-krqwlBpfoAO91C0TSDt4olq-So6EeVh8zJJQJwxte27UreEF0-XoXiRcKKs0c7KcGqk4C5TrB7kg5IW/s72-c/1.jpg" height="72" width="72"/><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-3148501623718020851</id><published>2012-11-13T13:40:00.001+02:00</published><updated>2015-05-07T17:48:44.860+03:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="QC DB"/><category scheme="http://www.blogger.com/atom/ns#" term="QC User Groups"/><category scheme="http://www.blogger.com/atom/ns#" term="QC User Management"/><category scheme="http://www.blogger.com/atom/ns#" term="QC User Teams"/><title type='text'>A Workaround Solution For QC Reporting According To User Groups</title><content type='html'>Sometimes QC&#39;s group functionality for the users may not sufficient for reporting. For example you may want to report some user actions accoriding to their team/department/divison. &lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;To accomplish this type of report you have to create a group for evey divison/department/team. Also QC&#39;s group functionality is not effective for hierarchical teams.&lt;br /&gt;
&lt;br /&gt;
You can use the siteadmin&#39;s user description area as a workaround solution for hierarchical team membering.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-9d1Ufdy5Ev5Ckr6WMGqy0VIYJ2XH5P2CRM8XhD-Q1m1xAVih2HVX6Dy6P5wRRfoQqUhL9yb4sYk0HaNPXyp1bry9vfoA1ZQbzaxgnznBOE-Rk-Pet9dDqQZ3IctyzY_PVgHzDPpfloxr/s1600/QCUserDescription.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-9d1Ufdy5Ev5Ckr6WMGqy0VIYJ2XH5P2CRM8XhD-Q1m1xAVih2HVX6Dy6P5wRRfoQqUhL9yb4sYk0HaNPXyp1bry9vfoA1ZQbzaxgnznBOE-Rk-Pet9dDqQZ3IctyzY_PVgHzDPpfloxr/s400/QCUserDescription.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
As you can see above screenshot you can writedown the user&#39;s hierarchical position into user description area from the siteadmin.&lt;br /&gt;
&lt;br /&gt;
By using following view you can select his/her team/department/divison.&lt;br /&gt;
&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #202020; background: black; border-width: .1em .1em .1em .8em; border: solid gray; color: white; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;table&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0px;&quot;&gt;&lt;/pre&gt;
&lt;/td&gt;&lt;td&gt;&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;OR&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;REPLACE&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FORCE&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;VIEW&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0; font-size: 15px; line-height: 18px;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;YOUR_SCHEMA_NAME&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9; line-height: 125%;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0; line-height: 125%;&quot;&gt;GET_USER_HIERARCHY&lt;/span&gt;
&lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;USER_NAME,&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;DIRECTORATE,&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;DEPARTMENT,&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;TEAM,&lt;/span&gt;
   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;ROLE&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;US_IS_ACTIVE&lt;/span&gt;
&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AS&lt;/span&gt;
     &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;user_name,&lt;/span&gt;
            &lt;span style=&quot;color: #d0d0d0;&quot;&gt;directorate,&lt;/span&gt;
            &lt;span style=&quot;color: #d0d0d0;&quot;&gt;department,&lt;/span&gt;
            &lt;span style=&quot;color: #d0d0d0;&quot;&gt;team,&lt;/span&gt;
            &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;role&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;
            &lt;span style=&quot;color: #d0d0d0;&quot;&gt;us_is_active&lt;/span&gt;
       &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;LOWER&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(user_name)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;user_name,&lt;/span&gt;
                    &lt;span style=&quot;color: #d0d0d0;&quot;&gt;TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;description,&lt;/span&gt;
                    &lt;span style=&quot;color: #d0d0d0;&quot;&gt;SUBSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
                       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;directorate,&lt;/span&gt;
                    &lt;span style=&quot;color: #d0d0d0;&quot;&gt;SUBSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;  &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
                       &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AS&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;department,&lt;/span&gt;
                    &lt;span style=&quot;color: #d0d0d0;&quot;&gt;SUBSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;  &lt;span style=&quot;color: #3677a9;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt;  &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt;
                       &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AS&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;team,&lt;/span&gt;
                    &lt;span style=&quot;color: #d0d0d0;&quot;&gt;SUBSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;  &lt;span style=&quot;color: #3677a9;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;  &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;))&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;+&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;LENGTH&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description))&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;-&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;INSTR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(TO_CHAR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(description),&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;/&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;))&lt;/span&gt;
                       &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;AS&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;role&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt;
                    &lt;span style=&quot;color: #d0d0d0;&quot;&gt;us_is_active&lt;/span&gt;
               &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;qcsiteadmin_db_alm&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;users)&lt;/span&gt;
   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;ORDER&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;BY&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;4&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;5&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;br /&gt;
The query and the result will be similar to the following screenshot.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1zHARknL0iZG-cKKl9Me-Zn8pz6l2F3jz5xa-D3m_2KQlopDdtuvuy1T_a72Uy_7IbBOaYVs51HMFwDqTd8pOnnU1Uw1ukCxh5EPXsco4vtf2Em5NpdWsxdhZeFA4G1wpGNNq2vVylc-D/s1600/QCUserDescriptionSelect.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;153&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj1zHARknL0iZG-cKKl9Me-Zn8pz6l2F3jz5xa-D3m_2KQlopDdtuvuy1T_a72Uy_7IbBOaYVs51HMFwDqTd8pOnnU1Uw1ukCxh5EPXsco4vtf2Em5NpdWsxdhZeFA4G1wpGNNq2vVylc-D/s400/QCUserDescriptionSelect.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
You can also query the users according to their directorate/department/team values. Hence this will make an easier way to list all the users those are in the specific department and you can query their actions.</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/3148501623718020851/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/3148501623718020851?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/3148501623718020851'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/3148501623718020851'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2012/11/a-workaroun-solution-for-qc-user-groups.html' title='A Workaround Solution For QC Reporting According To User Groups'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj-9d1Ufdy5Ev5Ckr6WMGqy0VIYJ2XH5P2CRM8XhD-Q1m1xAVih2HVX6Dy6P5wRRfoQqUhL9yb4sYk0HaNPXyp1bry9vfoA1ZQbzaxgnznBOE-Rk-Pet9dDqQZ3IctyzY_PVgHzDPpfloxr/s72-c/QCUserDescription.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-8147918383129630701</id><published>2012-11-12T17:15:00.002+02:00</published><updated>2013-01-23T18:49:53.471+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="QC DB"/><category scheme="http://www.blogger.com/atom/ns#" term="Quality Center"/><category scheme="http://www.blogger.com/atom/ns#" term="Test Case"/><category scheme="http://www.blogger.com/atom/ns#" term="Test Case Path"/><category scheme="http://www.blogger.com/atom/ns#" term="Testcase path"/><title type='text'>How to get testcase path from QC DB</title><content type='html'>Sometimes you may need to report testcases those are in a specific folder with some custom format. This can be done from the analysis view of the dashboard easily. But sometimes getting the testcases from the DB with some SQLs may be the way you might prefer. &lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;When querying from the DB you have to use some complicated SQLs to accomplish this.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
The function that i am sharing is a simple util function that will make this easier. To do this first you have to have the create function previlage on the DB side. Then you can create the GetTestCasePath function with this PlSQL.&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-size: x-small;&quot;&gt;Note: The &lt;b&gt;t_crs &lt;/b&gt;is a ref cursor that is declared any pkg spec of your util package. It is declared like this:&amp;nbsp;&lt;i&gt;type t_crs is ref cursor;&lt;/i&gt;&lt;/span&gt;&lt;br /&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #202020; background: black; border-width: .1em .1em .1em .8em; border: solid gray; color: white; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;CREATE&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;OR&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;REPLACE&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FUNCTION&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;YOUR_QC_SCHEME&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;GetTestCasePath&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;p_db_name&lt;/span&gt;    &lt;span style=&quot;color: #d0d0d0;&quot;&gt;VARCHAR2,&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;p_test_id&lt;/span&gt;    &lt;span style=&quot;color: #d0d0d0;&quot;&gt;NUMBER)&lt;/span&gt;
   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;RETURN&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;VARCHAR2&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;IS&lt;/span&gt;
   &lt;span style=&quot;color: #24909d;&quot;&gt;PATH&lt;/span&gt;     &lt;span style=&quot;color: #d0d0d0;&quot;&gt;VARCHAR2&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;500&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;);&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;sqlStr&lt;/span&gt;   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;VARCHAR2&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;9999&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;);&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tc&lt;/span&gt;       &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;YOUR_QC_SCHEME&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;kpi_pkg&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;t_crs;&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;BEGIN&lt;/span&gt;
   &lt;span style=&quot;color: #24909d;&quot;&gt;PATH&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;:=&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;;&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;sqlStr&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;:=&lt;/span&gt;
      &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;SELECT listagg (al_description, &#39;&#39;\&#39;&#39;) WITHIN GROUP (ORDER BY aa.aaa DESC) PATH&lt;/span&gt;
&lt;span style=&quot;color: #ed9d13;&quot;&gt;  FROM (    SELECT al_item_id, LEVEL aaa, al_description&lt;/span&gt;
&lt;span style=&quot;color: #ed9d13;&quot;&gt;              FROM &#39;&lt;/span&gt;
      &lt;span style=&quot;color: #d0d0d0;&quot;&gt;||&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;p_db_name&lt;/span&gt;
      &lt;span style=&quot;color: #d0d0d0;&quot;&gt;||&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;.ALL_LISTS&lt;/span&gt;
&lt;span style=&quot;color: #ed9d13;&quot;&gt;        START WITH al_item_id = (select ts_subject from &#39;&lt;/span&gt;
      &lt;span style=&quot;color: #d0d0d0;&quot;&gt;||&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;p_db_name&lt;/span&gt;
      &lt;span style=&quot;color: #d0d0d0;&quot;&gt;||&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;.TEST where ts_test_id=&#39;&lt;/span&gt;
      &lt;span style=&quot;color: #d0d0d0;&quot;&gt;||&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;p_test_id&lt;/span&gt;
      &lt;span style=&quot;color: #d0d0d0;&quot;&gt;||&lt;/span&gt; &lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;)&lt;/span&gt;
&lt;span style=&quot;color: #ed9d13;&quot;&gt;        CONNECT BY PRIOR al_father_id = al_item_id) aa&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;;&lt;/span&gt;

   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;OPEN&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tc&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FOR&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;sqlStr;&lt;/span&gt;

   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;LOOP&lt;/span&gt;
      &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;EXIT&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;WHEN&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tc&lt;/span&gt;&lt;span style=&quot;color: #24909d;&quot;&gt;%NOTFOUND&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;;&lt;/span&gt;

      &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FETCH&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tc&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;INTO&lt;/span&gt; &lt;span style=&quot;color: #24909d;&quot;&gt;PATH&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;;&lt;/span&gt;
   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;END&lt;/span&gt; &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;LOOP&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;;&lt;/span&gt;

   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;CLOSE&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;tc;&lt;/span&gt;

   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;RETURN&lt;/span&gt; &lt;span style=&quot;color: #24909d;&quot;&gt;PATH&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;EXCEPTION&lt;/span&gt;
   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;WHEN&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;NO_DATA_FOUND&lt;/span&gt;
   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;THEN&lt;/span&gt;
      &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;NULL&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;;&lt;/span&gt;
   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;WHEN&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;OTHERS&lt;/span&gt;
   &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;THEN&lt;/span&gt;
      &lt;span style=&quot;color: #999999; font-style: italic;&quot;&gt;-- Consider logging the error and then re-raise&lt;/span&gt;
      &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;RAISE&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;END&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;GetTestCasePath;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4JGLvBPDQKpYYk6kBP5SEK7vBbM_Nrr-hxCq9xVuN4kdFb0_eKkqmDRvbh5LXh3Zg7zKk2k1owfwHyWqOxUZpG_JWhw_RYQG62LHFfqIgfKbjNQyRVSkBBtK3myXPfa7qCv9GQn2QylvC/s1600/TestPlanS01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;72&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4JGLvBPDQKpYYk6kBP5SEK7vBbM_Nrr-hxCq9xVuN4kdFb0_eKkqmDRvbh5LXh3Zg7zKk2k1owfwHyWqOxUZpG_JWhw_RYQG62LHFfqIgfKbjNQyRVSkBBtK3myXPfa7qCv9GQn2QylvC/s400/TestPlanS01.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For the testcase above getting path is something like this:&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background: #202020; background: black; border-width: .1em .1em .1em .8em; border: solid gray; color: white; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;&amp;lt;&amp;lt;&amp;lt;YOUR_QC_SCHEMA_NAME&amp;gt;&amp;gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;color: #3677a9;&quot;&gt;.&lt;/span&gt;
   &lt;span style=&quot;color: #d0d0d0;&quot;&gt;GETTESTCASEPATH&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #ed9d13;&quot;&gt;&#39;&amp;lt;&amp;lt;&amp;lt;YOUR_QC_SCHEMA_NAME&amp;gt;&amp;gt;&amp;gt;&#39;&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #3677a9;&quot;&gt;15396&lt;/span&gt;&lt;span style=&quot;color: #d0d0d0;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;TestCasePath&lt;/span&gt;
  &lt;span style=&quot;color: #6ab825; font-weight: bold;&quot;&gt;FROM&lt;/span&gt; &lt;span style=&quot;color: #d0d0d0;&quot;&gt;DUAL&lt;/span&gt; 
&lt;/pre&gt;
&lt;/div&gt;
&lt;br /&gt;
And the output will be like this:&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;float: left; margin-right: 1em; text-align: left;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD2kySa8-xLot0rCGc78RDDvFLKIdeh5jjErTsyY9REKR6JosgI5b5wh8gU8qZe4E8Ua5tot-hMSB4PD4ZfPyjB9NUtUxUAImYFulwX99IFFIJcc87hB1KnOJQFj4hX53xvbQ6nhbmodh9/s1600/TestPlanS02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;111&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgD2kySa8-xLot0rCGc78RDDvFLKIdeh5jjErTsyY9REKR6JosgI5b5wh8gU8qZe4E8Ua5tot-hMSB4PD4ZfPyjB9NUtUxUAImYFulwX99IFFIJcc87hB1KnOJQFj4hX53xvbQ6nhbmodh9/s400/TestPlanS02.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/8147918383129630701/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/8147918383129630701?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/8147918383129630701'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/8147918383129630701'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2012/11/how-to-get-testcase-path-from-qc-db.html' title='How to get testcase path from QC DB'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4JGLvBPDQKpYYk6kBP5SEK7vBbM_Nrr-hxCq9xVuN4kdFb0_eKkqmDRvbh5LXh3Zg7zKk2k1owfwHyWqOxUZpG_JWhw_RYQG62LHFfqIgfKbjNQyRVSkBBtK3myXPfa7qCv9GQn2QylvC/s72-c/TestPlanS01.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-1998948899057110540</id><published>2012-09-21T11:01:00.002+03:00</published><updated>2013-01-23T18:50:15.429+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Ajax TruClient"/><category scheme="http://www.blogger.com/atom/ns#" term="HP Loadrunner"/><category scheme="http://www.blogger.com/atom/ns#" term="HP LR"/><category scheme="http://www.blogger.com/atom/ns#" term="VUGEN"/><title type='text'>Is Ajax TruClient a lifesaver?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Most of the time I prefer HTTP/HTML scripting protocol. Because it offers you to know all the details about requests and responses during replay and the actual load test. &lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;But it&#39;s handicap is the correlation part for complex applications. For example i had to write a LR script for a GWT application. I wasn&#39;t able to complete all the scenario despite i followed&amp;nbsp;&lt;a href=&quot;http://h30499.www3.hp.com/t5/LoadRunner-Support-Forum/GWT-and-Loadrunner-integration/td-p/5576417#.UFwbO7LiYf4&quot; target=&quot;_blank&quot;&gt;these&lt;/a&gt;&amp;nbsp;steps. There were a huge encoded block in the recorded scenario script and it wasn&#39;t a static part. I think the encoded part was identifiying some javascript codes or the state of the webpage.&lt;br /&gt;
While i was thinking that it is impossible to create a loadrunner script for that scenario &lt;a href=&quot;http://support.openview.hp.com/selfsolve/document/KM1017957/binary/LoadRunner11.00_AjaxTruClient_TipsTricks.pdf&quot; target=&quot;_blank&quot;&gt;Ajax TruClient&lt;/a&gt; came and rescued me. This add-on creates some sort of GUI based script like UFT (was known as QTP). The add-on does not involves the responses you get and the requests (that you have to modify before requesting) but just the clicks and javascript actions.&lt;br /&gt;
Hence it was very easy to create a loadrunner script for theapplication that i struggled. Parametrization is very easy for this type of scenario. The most important thing you must know is ofcourse the C languge (for writing some user defined functions) and JavaScript. The add-on gives you to opportunity to combine C and JS functions.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Lessons learned:&lt;/b&gt;&lt;br /&gt;
If you are working to much on a scenario, there should be another protocol that will make easier. So try Protocol Adiviser if you&#39;re struggling.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;color: #999999;&quot;&gt;To open the protocol adviser&lt;br /&gt;
- Open the VuGen&lt;br /&gt;
- Navigate to File -&amp;gt; Protocol adviser -&amp;gt; Analyze Application&lt;br /&gt;
- Protocol Adviser dialog box shown&lt;br /&gt;
- Select the application type and other application details and press &quot;OK&quot; button.&lt;br /&gt;
- Perform major user actions on the application.&lt;br /&gt;
- Stop Analyzing&lt;br /&gt;
- Protocol adviser will show you the result automatically&lt;/span&gt;&lt;/blockquote&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/1998948899057110540/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/1998948899057110540?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/1998948899057110540'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/1998948899057110540'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2012/09/is-ajax-truclient-lifesaver.html' title='Is Ajax TruClient a lifesaver?'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-8330072517703270339</id><published>2012-07-23T14:12:00.000+03:00</published><updated>2013-01-23T18:50:37.183+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Connectivity"/><category scheme="http://www.blogger.com/atom/ns#" term="Loadrunner"/><category scheme="http://www.blogger.com/atom/ns#" term="QC"/><category scheme="http://www.blogger.com/atom/ns#" term="VUGEN"/><title type='text'>VUGEN - QC Connectivity</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
As you know manual test cases are stored in the Quality Center (QC) application. There is no restriction about the Loadrunner script files. &lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;You can store them anywhere you want. But my suggestion is storing them in the QC servers and make their backup into your drive. By this way you can reach the scripts from any computer that has access to the QC servers. Also management of the test library will be better by this way, you are going to know which cases are &lt;u&gt;&lt;i&gt;LR scriptted&lt;/i&gt;&lt;/u&gt; and which not.&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
To accomplish this first thing you have to do is connecting the Vugen with QC. Follow the steps described below:&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUfQZ7Ks2CjWXghk5idEs4u0sjA6dPdukd-ZTi4lXomAZcmXS_yTfH5TYrLNdRF1tx-3HH2guzYuiOKdpZBTLTjSa3cyRCiMJZ6BEUU-Jiz98cIdmpa_J7XRvYphYRUe-JmBI2e4YqWirr/s1600/SS02.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;248&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUfQZ7Ks2CjWXghk5idEs4u0sjA6dPdukd-ZTi4lXomAZcmXS_yTfH5TYrLNdRF1tx-3HH2guzYuiOKdpZBTLTjSa3cyRCiMJZ6BEUU-Jiz98cIdmpa_J7XRvYphYRUe-JmBI2e4YqWirr/s400/SS02.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;From the Vugen application select Tools-&amp;gt;HP ALM Connection&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVZZj0ER-78q_tzvFou9912OnEFhosTC7kTmwD_JPsEy6zPwcaoHn8eBvvACOjjoUipUec0mX62fl9vKEzNn_SGRtooJpSHEgMMHerfEeyIm9ti3SYlh_qomwiFR_CjfFTmaie7fJkyrh3/s1600/SS03.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;149&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVZZj0ER-78q_tzvFou9912OnEFhosTC7kTmwD_JPsEy6zPwcaoHn8eBvvACOjjoUipUec0mX62fl9vKEzNn_SGRtooJpSHEgMMHerfEeyIm9ti3SYlh_qomwiFR_CjfFTmaie7fJkyrh3/s320/SS03.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Enter QC server address&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBW4JiuG5RI4xKsg5D8uphFE9AHjDLS02g1Hu9d5L8B7Fnhoq87efbbS3Zj3Yu82G3FtXnZvN_6m34nAfizl3pcuId-WUSVM8Zf4ttPXTdRc-QDkSwfqmy6zvM324BLCCIDZ2qRE2hHeMh/s1600/SS04.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBW4JiuG5RI4xKsg5D8uphFE9AHjDLS02g1Hu9d5L8B7Fnhoq87efbbS3Zj3Yu82G3FtXnZvN_6m34nAfizl3pcuId-WUSVM8Zf4ttPXTdRc-QDkSwfqmy6zvM324BLCCIDZ2qRE2hHeMh/s320/SS04.jpg&quot; width=&quot;273&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Enter username/password and select Domain and Project that you want to use&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVgYkPcOkuvI-WciTFhmM_ik_MBYmv6IpvsMzfwc-6XJfYq5dovjrsq9_hFPjQWBj5hcIkXg-Pwll4M7ZT-VcjDj_GHj6EDUPLY-mTgHteOG6PAmXZi5fr0nnl4ae6LMiw3qQgy2kWntwc/s1600/SS05.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;218&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVgYkPcOkuvI-WciTFhmM_ik_MBYmv6IpvsMzfwc-6XJfYq5dovjrsq9_hFPjQWBj5hcIkXg-Pwll4M7ZT-VcjDj_GHj6EDUPLY-mTgHteOG6PAmXZi5fr0nnl4ae6LMiw3qQgy2kWntwc/s320/SS05.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;When you click File-&amp;gt;Open you should be able to see TestPlan button on the file chooser&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&amp;nbsp;If you are having troubes about Vugen - QC connectivity visit following page and follow the steps described there then retry again: http://&amp;lt;Your_QC_Server&amp;gt;:8080/qcbin/CommonMode_index.html&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://qualitesting.blogspot.com/feeds/8330072517703270339/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/1769054949521075757/8330072517703270339?isPopup=true' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/8330072517703270339'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/8330072517703270339'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2012/07/vugen-qc-connectivity.html' title='VUGEN - QC Connectivity'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUfQZ7Ks2CjWXghk5idEs4u0sjA6dPdukd-ZTi4lXomAZcmXS_yTfH5TYrLNdRF1tx-3HH2guzYuiOKdpZBTLTjSa3cyRCiMJZ6BEUU-Jiz98cIdmpa_J7XRvYphYRUe-JmBI2e4YqWirr/s72-c/SS02.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1769054949521075757.post-7561815634209894030</id><published>2012-07-22T01:07:00.002+03:00</published><updated>2013-01-23T18:51:18.887+02:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="HP Loadrunner"/><category scheme="http://www.blogger.com/atom/ns#" term="HP LR"/><category scheme="http://www.blogger.com/atom/ns#" term="Loadrunner"/><category scheme="http://www.blogger.com/atom/ns#" term="LR"/><title type='text'>Introduction to Loadrunner (for beginners)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Loadrunner (mostly known as LR) is a kind of software that helps you test your applications from the perspective of performance, stress and load. &lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;The software consists of 3 main applications:&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Vugen: With this application you record, parametrize and verify your scripts (does not require license).&lt;/li&gt;
&lt;li&gt;Controller: By using Controller you create Load Test Scenarios by making use of the scripts you&#39;ve already created (license is required).&lt;/li&gt;
&lt;li&gt;Analysis: After running the load test you need to anayse the results. By using Analysis tool you can check the run result reports (does not require license).&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
What you do with LR is basically like following:&lt;br /&gt;
This is just a brief explanation, details of each step will be posted when i am available.&lt;/div&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Create your manual testcases and scenarios (from QC is optional).&lt;br /&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEvh379fQn9HAKqDJfvooq-SCP7mL62-J9RU2FdWHFNNVkW5Os6zhbGqOFnKbnloSy8YDUc4BOWmQhyiE-clwRLNMn34b4NuPnHfS29lp2cizQIazn0y6oGuAybjqN8izGuYRBPA0KwgIp/s1600/SS01.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;195&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEvh379fQn9HAKqDJfvooq-SCP7mL62-J9RU2FdWHFNNVkW5Os6zhbGqOFnKbnloSy8YDUc4BOWmQhyiE-clwRLNMn34b4NuPnHfS29lp2cizQIazn0y6oGuAybjqN8izGuYRBPA0KwgIp/s400/SS01.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Right click on design step and select Generate Script -&amp;gt; Vugen&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;Optionally convert them to LR scripts.&lt;/li&gt;
&lt;li&gt;Open the test script by using Vugen (Vugen -QC connectivity described &lt;a href=&quot;http://qualitesting.blogspot.com/2012/07/vugen-qc-connectivity.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;).&lt;/li&gt;
&lt;li&gt;Click Record button. For the recording options generally i am using following settings.&lt;br /&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRc02ooGCTTJ4LCHzpkc4WIwuj9ndXl8B2nNRxPvs10j9q_aGxGwm5tEFpVbVV6tohYTS7HjlRWjHzvanj6T1YYfpN5G54o8_oDcg__LXEyoj8cYDVE9sL6-OvlJUZM7GCqxd2FK0UAqT8/s1600/SS06.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;305&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRc02ooGCTTJ4LCHzpkc4WIwuj9ndXl8B2nNRxPvs10j9q_aGxGwm5tEFpVbVV6tohYTS7HjlRWjHzvanj6T1YYfpN5G54o8_oDcg__LXEyoj8cYDVE9sL6-OvlJUZM7GCqxd2FK0UAqT8/s400/SS06.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;My preferred recording options for HTML/HTTP protocol&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;/li&gt;
&lt;li&gt;While recording do not forget to add &lt;i&gt;&quot;Start Transaction&quot;&lt;/i&gt; and &lt;i&gt;&quot;End Transaction&quot;&lt;/i&gt;&amp;nbsp;flags. The transaction markers are very important while running the real test. Because LR Controller is going to measure elapsed times of the transactions. If you do not set them correctly you won&#39;t be able to render the results correctly.
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2LyzZw2WN6y16lYQad11N6TnLvnhfQh1TSOZEe0q5kMpXimUYr_WFhgrHQX8vvuMxwalGaGTy-WH8rtKOlmNFcGRcrqtyXqEjfrJWTlrLQmfEhYlf8ChElIpc5EaBsdzqSVX7fLLCOSyX/s1600/SS07.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;266&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg2LyzZw2WN6y16lYQad11N6TnLvnhfQh1TSOZEe0q5kMpXimUYr_WFhgrHQX8vvuMxwalGaGTy-WH8rtKOlmNFcGRcrqtyXqEjfrJWTlrLQmfEhYlf8ChElIpc5EaBsdzqSVX7fLLCOSyX/s400/SS07.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Label the user actions by using Start-End Transaction&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;span style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;/span&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGg5JXLujjTC6c-FDkQit2IE0WY74narISAyhuMmJ8kOSmN2Q6m9Ot00QhLyvMKxwEdNP_J6t-pINXLUdZM3N5_O1kaM6CoB-ZWXhyZJC_Zu3c05HPEfyB2tzwTsAemvL79EjVVNTJ7Ilj/s1600/SS09.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;238&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiGg5JXLujjTC6c-FDkQit2IE0WY74narISAyhuMmJ8kOSmN2Q6m9Ot00QhLyvMKxwEdNP_J6t-pINXLUdZM3N5_O1kaM6CoB-ZWXhyZJC_Zu3c05HPEfyB2tzwTsAemvL79EjVVNTJ7Ilj/s400/SS09.jpg&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;A small part of the generated script&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;li&gt;After recording of the scenario finishes you have to verify it by pressing F5. After execution of the script you recorded completes successfully. You can progress to the LR Controller part. If the replay fails you need to open the &lt;i&gt;Tree View&amp;nbsp;&lt;/i&gt;and compare the recorded and replayed requests and responses. And try to find on which request the problem is.&lt;/li&gt;
&lt;li&gt;When everything is OK about the LR Script open the &lt;i&gt;LR Controller&lt;/i&gt; application and create new scenario by selecting &lt;i&gt;Manual Scenario&lt;/i&gt; and adding the script that you saved with Vugen.&lt;/li&gt;
&lt;li&gt;In the Design tab of the Controller you can set number of users, their ramp up and ramp down setings and how much time you want to run the test, etc...&lt;/li&gt;
&lt;li&gt;When the load test completes you can open the result with Analysis and check the execution time of each transactions and impact of the quantity of the virtual users to the transaction times.&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/7561815634209894030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1769054949521075757/posts/default/7561815634209894030'/><link rel='alternate' type='text/html' href='http://qualitesting.blogspot.com/2012/07/introduction-to-loadrunner.html' title='Introduction to Loadrunner (for beginners)'/><author><name>Mehmet</name><uri>http://www.blogger.com/profile/01533376970886210170</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEvh379fQn9HAKqDJfvooq-SCP7mL62-J9RU2FdWHFNNVkW5Os6zhbGqOFnKbnloSy8YDUc4BOWmQhyiE-clwRLNMn34b4NuPnHfS29lp2cizQIazn0y6oGuAybjqN8izGuYRBPA0KwgIp/s72-c/SS01.jpg" height="72" width="72"/></entry></feed>