Page 1 of 1

How do I build ths Form Adaptor?

Posted: Sat Sep 26, 2015 6:52 pm
by stapes
In the User Manul - Code Examples, I am looking at the first example, Using Repository.

In that code, is the following comment:

http://www.ranorex.com/support/user-gui ... html#c3199

// Using Ranorex.Form adapter represented by 'MyApp'
// 'MyApp' is used as a folder within the repository;
// the 'Self' property returns an object of type Ranorex.Form

How is MyApp created please?

Re: How do I build ths Form Adaptor?

Posted: Mon Sep 28, 2015 8:09 am
by odklizec
Hi,

This MyApp folder represents the topmost folder of an app, dialog or context menu you add to repository. Other type of folders are Rooted and Simple folder. These are typically created manually during reorganizing repository.

Please check this part of user guide about repository folders...
http://www.ranorex.com/support/user-gui ... html#c3120

Re: How do I build ths Form Adaptor?

Posted: Mon Sep 28, 2015 10:55 am
by stapes
Thank you. I renamed my Application Folder in the Repository to AgileMobileApp.

Then I tried to use the Code Sample "Using Repository in Code", and get compile errors:

Ranorex.MobileApp Contains no methods for Activate, Active, Maximize, Minimize, restore, Close, Buttons, GenderOption, CategoryList.


also The type or namespace name 'ranorex' could not be found (are you missing a using directive or an assembly reference?) (CS0246) - C:\Users\stephen.staple\Documents\Ranorex\RanorexStudio Projects\AgileMobileApp\AgileMobileApp\UsingRepository.cs:85,11

Do you think you could only put code samples in your manual that are complete and compile and work?

Re: How do I build ths Form Adaptor?

Posted: Mon Sep 28, 2015 11:20 am
by odklizec
Hi,

It seems to me that you are trying to use entire sample, but it's just a sample! Some methods used in this sample are just examples, not always available methods.

To find out what methods are available in your app, you should use Code Completion feature. Basically, once you start typing, after each entered dot you should get the list of available methods, properties or variables.