cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve a data from webpage and store into a variable in Keyword test

SOLVED
Highlighted
New Contributor

How to retrieve a data from webpage and store into a variable in Keyword test

I have a web application where I need to get some value from the webpage and store it into a variable. In the later part i have to use the same variable at another desktop application as an input data.

I am only using the Keyword testing way of automating my script.

Can somebody help me with this.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Hero

Re: How to retrieve a data from webpage and store into a variable in Keyword test

https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/statements/set-variable-va...

 

https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/test-actions/on-screen-act...


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

3 REPLIES 3
Highlighted
Staff

Re: How to retrieve a data from webpage and store into a variable in Keyword test

use the set variable value operation and select an object property to store. Reuse later on by parameterizing the (whichever) operation value to refer to that variable later on when you need it. 

Best,
Justin Kim
Highlighted
New Contributor

Re: How to retrieve a data from webpage and store into a variable in Keyword test

thanks for your reply.

Could you please provide some document reference on how to do the same thing.

Highlighted
Community Hero

Re: How to retrieve a data from webpage and store into a variable in Keyword test

https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/statements/set-variable-va...

 

https://support.smartbear.com/testcomplete/docs/keyword-testing/reference/test-actions/on-screen-act...


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

View solution in original post

New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors