Subscribe by Email


Showing posts with label Virtualization. Show all posts
Showing posts with label Virtualization. Show all posts

Sunday, April 21, 2013

What is a virtual memory?


- Virtual Memory is a memory management technique that is a compulsory requirement for the multi-tasking kernels. 
- With this technique, the architecture of a computer can be virtualized to different types of computer data storage such as disk drive storage and RAM i.e., the random access memory. 
- With this, programmers do not have to worry about designing applications that will suit this kind of storage. 
- The programs can be designed keeping in consideration only one kind of memory i.e., the virtual memory. 
- This memory behaves just like the usual memory but more than that. 
- It offers a direct as well as contiguous memory space for various operations. - Some of us might think that the programming the software might get difficult with the virtual memory. But this is not so.
- Instead the task becomes easy because the fragmentation of the main physical memory is hidden. 
- For achieving this, the burden of the management of the memory hierarchy is delegated to the kernel.
- This has another added advantage which is that the need for handling of overlays in an explicit way via program is eliminated.
- The need for the relocation of a program code or accessing the memory is obviated via relative addressing. 
- This lets the process to be executed in its own dedicated space. 
- The concept of the virtual memory in a more generalized form is called the memory virtualization.
- The modern computer architecture cannot do without the virtual memory. 
The only requirement for implementing the virtual memory is the hardware support that is provided through the memory management unit that is in-built in CPU. 
- For increasing the performance of these virtual memory implementations hardware support can be employed by the virtual machines and emulators. 
Computer systems with old operating systems such as DOS in mainframes  do not possess any functionality of the virtual memory. 
- The first computer that featured the virtual memory was the Apple Lisa that was designed in the year of 1980. 
- It appears that with the use of virtual memory as if every program has a sole access to it. 
- However, there were some older operating systems that had single address space Oss. 
- These operating systems used to process tasks in a single space. 
- This space is consisted of the virtual memory. 
- Very consistent response times are a requirement of the special purpose computer systems such as the embedded systems. 
- These systems do not prefer to use the virtual memory as it may decrease the determinism. 
- The unpredictable traps producing unwanted jitter while carrying out the I/O operations might be triggered by the virtual memory systems. 
- This happens because the cost of the embedded hardware is kept low. 
- The operations are included in the software rather than including them in the hardware. 
- This technique is termed as the bit banging. 
- The older programs needed to have logic for the management of both primary and secondary memory. 
- One such logic was that of the overlaying. 
- Therefore, virtual memory was introduced as a method for extending the primary memory and make this extension easy for the programmers.  
- In order to allow multi–tasking and multi–programming, the memory in the early systems was divided between many programs. 

Implementation of the virtual memory saw many problems. One among those problems was of the dynamic address translation that was difficult to be implemented and  quite expensive also. 


Wednesday, October 3, 2012

How would you export a Script from one PC to another in QTP? Can launch two instances of QTP on the same machine?


While working on a collaborative project in quick test professional it becomes necessary to import some scripts from one machine to another. But how this to be done will be discussed and also how two instances of quick test professional can be launched on the same machine.

Exporting a script from one PC to another

- If you would have noticed the quick test professional comes with a tab titled “export”. 
- For doing so just mark the code that you want to export, copy and paste it in a text file. 
- The copied code may consist of references repository items, part of tests, part of settings, parameters, environment variables and so on. 
- However, it is another fact that the export option is not directly available in the quality center’s test script lab.
- A suitable version of quick test professional needs to be installed. 
- Then, you need to connect it to the quality center project. 
- Next step would be to open the test via quick test professional. 
- Once you are done with these 3 basic steps you can now export the file via “export to zip file” feature of the quick test professional either in to the quick test professional data base or some other location and either on the same machine or on some different machine. 
- One may have a bulk of test automation quick test professional scripts on a local machine which might be required to be exported from local machine to  QC. 
- Exporting some times becomes necessary when there are too many scripts and it takes a whole lot of time to open each and every script and then save it in the quality center.
- Some third party tools are available which serve the purpose of uploading many quick test professional scripts at once from one PC to another PC.  
- There is one more method which makes use of the “generate script” function that comes in built with the quick test professional. 
- This function is available in the object identification section under test settings, tools and options tab. 
- Using this function of the quick test professional, a zip file of the scripts to be exported can be created. 
- The zip file of the specified scripts is created at the source computer itself. 
Later, this zip file can be easily exported to quick test professional on destined computer.

Now let us answer the second question of this article regarding the launch of two instances on the same machine. 
- The answer is no since the quick test professional only has the ability of working with the multiple instances of the AUT or application. 
- An example of this can be multiple windows of the internet explorer browser that can be handled by the quick test professional. 
- Therefore, at a time only a single instance of the quick test professional can be launched on the same machine. 
- To say, actually two instances cannot be launched on the same machine but yes you can go for virtualization option. 
- Today, there are many tools available for virtualization such as sandboxie, Altiris SVS and so on. 
- These two tools have been used for running two Mozilla Firefox profiles on the same PC and for testing some software in isolated PC environment but have not been put to use for launching two instances of the quick test professional on the same machine. 
- But the possibilities are that these two tools can be used for running multiple instances of quick test professional on the same machine. 


Facebook activity