Ask a Question

Capture and storage of text for re-entry in a KeyWord test

Bill_H
Occasional Contributor

Capture and storage of text for re-entry in a KeyWord test

Hi all,  I am new to TestComplete and I am trying to find an easy way to capture text in a field (an ID) to re-use for a search later.  Using Record and Playback feature on a .Net Desktop application.  Any help would be appreciated.  Thanks.

7 REPLIES 7
SBegley
Staff

Hi @Bill_H 

 

I hope you are keeping well.

 

We have the following short video which outlines the steps involved to obtain the value (ID) from the screen and store that value against a variable which you could then re-use later in your test.

 

Here is a link to the video; https://support.smartbear.com/testcomplete/videos/how-to-get-a-value-from-on-screen-and-store-it-for...

We have the following documentation on this process; https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/statements/set-variable-va... 

 

Please let me know if this resolves your query or if you have any additional questions.

 

Thanks,

Shane

 

Bill_H
Occasional Contributor

Hi Shane,

 

Thank you for this information.  I tried this however, it didn't resolve my query - I think my query was not specific enough ( I didn't realize) but I am trying to get a value from a cell in a Grid/table. This method of Onscreen Object selects the whole grid.  

 

Any other information would be appreciated.

 

Thanks,

Bill

What versions of TestComplete and .Net are you using?

 

Are you able to use Object Spy to see one cell in your grid?


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
Bill_H
Occasional Contributor

Hi Marsha,

 

I am using 15.41.9.7 32 bit .... .Net v1.1.4322.

 

Using the object spy I only get the complete grid.

On this reference page, I see that .Net support starts with v2.0

https://support.smartbear.com/testcomplete/docs/app-testing/desktop/net/supported-technologies.html

 

I suggest checking with Support at this link to see if they have a workaround

https://support.smartbear.com/testcomplete/message/


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
Bill_H
Occasional Contributor

Mistake made on my part .... below is what is installed

Snag_16f698e.png

I am taking a guess at what kind of grid you have.  Look in these sections for requirements for working with the grids and make sure you've been through all the setup.

https://support.smartbear.com/testcomplete/docs/app-objects/specific-tasks/grids/ms-datagrid/index.h...

https://support.smartbear.com/testcomplete/docs/app-objects/specific-tasks/grids/ms-datagridview/ind...


Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
cancel
Showing results for 
Search instead for 
Did you mean: